This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
#cgo pkg-config: libiptc xtables | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <xtables.h> | |
#include <libiptc/libiptc.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
"unsafe" | |
) | |
/* | |
#cgo pkg-config: libnetfilter_log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
docker image prune -f --filter "until=$(date --date '14 days ago' +'%Y-%m-%d')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build linux | |
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"syscall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# New build started | |
/var/lib/jenkins/jobs/citest/branches/master/builds/ CREATE,ISDIR 28 | |
# log modified | |
/var/lib/jenkins/jobs/citest/branches/master/builds/28/ MODIFY log | |
# The last log update | |
/var/lib/jenkins/jobs/citest/branches/master/builds/28/ CLOSE_WRITE,CLOSE log | |
# a build stage finished |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
cat <<EOF | radclient 192.168.56.150 auth testing123 | |
User-Name="81901234567@apn1", | |
NAS-IP-Address=127.0.0.1, | |
NAS-Identifier="NAS1", | |
NAS-Port-Type=Virtual, | |
Service-Type=Framed-User, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dropbox | |
import ( | |
"log" | |
"net/http" | |
"github.com/dropbox/dropbox-sdk-go-unofficial/dropbox" | |
"github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// #include <arpa/inet.h> | |
import "C" | |
import ( | |
"encoding/binary" | |
"fmt" | |
"net" | |
"unsafe" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build: linux,cgo | |
package main | |
/* | |
#cgo pkg-config: libbcc | |
#include <bcc/bpf_common.h> | |
#include <bcc/libbpf.h> | |
*/ | |
import "C" |