This file contains hidden or 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
/* | |
* This file is part of the MicroPython project, http://micropython.org/ | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
This file contains hidden or 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
hostname: centos-2gb-nbg1-1 | |
instance-id: 3449213 | |
local-ipv4: '' | |
network-config: | |
config: | |
- mac_address: 96:00:00:33:00:b1 | |
name: eth0 | |
subnets: | |
- dns_nameservers: | |
- 213.133.100.100 |
This file contains hidden or 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 | |
set -e | |
TEMPLATE=${TEMPLATE:-dev-template} | |
JAIL_USER=${JAIL_USER:-user} | |
init() { | |
iocage create -r LATEST -n $TEMPLATE ip4_addr="lo1|10.1.0.1/24" | |
iocage exec $TEMPLATE /bin/sh -e <<EOM |
This file contains hidden or 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
import base64,binascii,json | |
from libnacl import CryptError | |
from libnacl.public import SecretKey,PublicKey,Box | |
from chalice import Chalice | |
app = Chalice(app_name='t1') | |
server_key = { | |
"priv": "d995cb203b1b11406a1cfe1fa9d27a1117dbb216d8a8c9452239520a07537103", |
This file contains hidden or 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
; nasm -o ps.o -f elf64 ps.S | |
; ld -o ps ps.o | |
BITS 64 | |
section .data | |
arg0: | |
db "/bin/ps", 0 | |
arg1: |
This file contains hidden or 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
clear_tmp_enable="YES" | |
syslogd_flags="-ss" | |
sendmail_enable="NONE" | |
hostname="jailv6" | |
keymap="uk.kbd" | |
sshd_enable="YES" | |
sshd_flags="-o PermitRootLogin=prohibit-password -o ListenAddress=2001:470:1d41:1::35:1" | |
ntpdate_enable="YES" | |
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable | |
dumpdev="AUTO" |
This file contains hidden or 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-Item -Path "C:\Program Files\VMBoot" -ItemType Directory -Force | |
@" | |
`$ts = (Get-Date).toString("yyyyMMdd-HHmmss") | |
`$logfile = "C:\log-vmboot-`$ts.txt" | |
`$server = "http://169.254.1.1:8080" | |
`$name = `$env:computername | |
`$if = Get-WmiObject win32_networkadapterconfiguration | where -property ipenabled |
This file contains hidden or 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 ( | |
"encoding/gob" | |
"encoding/hex" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"log" | |
"os" |
This file contains hidden or 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
// Globals | |
const actors = []; | |
const player = null; | |
const vec3 = Memory.alloc(12); | |
const sprintmod = 500.0; | |
// Get method references |
This file contains hidden or 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 | |
IFACE=${1?Usage: $0 <iface>} | |
tcpdump -i $IFACE -x -l 'icmp[icmptype] == 8' 2>/dev/null | awk ' | |
/0x0020/ { packet = $4$5$6$7$8$9 } | |
/0x0030/ { packet = packet$2$3 | |
if (gsub("00+$","",packet) > 0) { | |
print packet | |
system("pkill tcpdump") |