$ go run $(ls -1 *.go | grep -v _test.go)
OR
$ go run !(*_test).go
| // Simple example of client. | |
| // Client prints received messages to stdout and sends from stdin. | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <signal.h> | |
| #include <unistd.h> | |
| #include <sys/select.h> | |
| #include <netinet/in.h> |
| //DNS Query Program on Linux | |
| //Author : Silver Moon (m00n.silv3r@gmail.com) | |
| //Dated : 29/4/2009 | |
| //Header Files | |
| #include<stdio.h> //printf | |
| #include<string.h> //strlen | |
| #include<stdlib.h> //malloc | |
| #include<sys/socket.h> //you know what this is for | |
| #include<arpa/inet.h> //inet_addr , inet_ntoa , ntohs etc |
| const std = @import("std"); | |
| const os = std.os; | |
| const log = std.log; | |
| const time = std.time; | |
| const MAX_EVENT = 5; | |
| const READ_BUFSIZE = 64 * 1024; | |
| const WRITE_BUFSIZE = 64 * 1024; | |
| fn createSignalfd() !os.fd_t { |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netdb.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| #include <sys/epoll.h> | |
| #include <errno.h> |
| <html> | |
| <head> | |
| <script src="/terminal.js/dist/terminal.js"></script> | |
| <style> | |
| #terminal { | |
| background: #000000; | |
| color: #ffffff; | |
| display: inline-block; | |
| padding: 10px; | |
| } |
| # Main CMakeFile.txt | |
| # Minimal version of CMake | |
| cmake_minimum_required (VERSION 2.6) | |
| # Build type | |
| if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | |
| message(STATUS "Setting build type to 'Debug' as none was specified.") | |
| set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE) | |
| # Set the possible values of build type for cmake-gui |
| ; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/1st.assignment/shell_bind_tcp.asm | |
| global _start | |
| section .text | |
| _start: | |
| ; syscalls (/usr/include/asm/unistd_32.h) | |
| ; socketcall numbers (/usr/include/linux/net.h) |
| # Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
| # Forked from jeroen@massar.ch - http://jeroen.massar.ch | |
| # Preparation: you need to install and configure fcgiwrap and set it to listen at fcgiwrap.socket. | |
| # An example tutorial: https://www.howtoforge.com/serving-cgi-scripts-with-nginx-on-centos-6.0-p2 | |
| # A useful hint: add -f as a parameter to fcgiwrap to redirect the cgi errors to your nginx error log. | |
| server { | |
| listen 80; | |
| server_name git.example.com; | |