Reverse DNS scan
nmap -sL 192.168.1.0/24
Ping scan (skip port scan)
nmap -sn 192.168.1.0/24
// Dollars to notebooks | |
var valueMap = { | |
5: 6, | |
10: 13, | |
1: 1 | |
}; | |
// How much money you are allowed | |
var money = 17; |
#!/bin/bash | |
VM_NAME=$1 | |
INSTALL_HOST=$2 | |
virsh destroy $VM_NAME | |
virsh undefine $VM_NAME | |
virt-install \ | |
--network bridge:br0 \ |
#!/bin/bash | |
# | |
# TODO Figure out how to get an unattended install | |
# | |
VM_NAME=$1 | |
virsh destroy $VM_NAME | |
virsh undefine $VM_NAME |
#!/bin/bash | |
# | |
# I like to run this like | |
# cat serverfile | xargs ./panes.sh name-of-pane | |
# | |
NAME=$1 | |
shift | |
if [ $# == 0 ] |
# Mount an nfs via an iface hotplug | |
IP_ADDR=0.0.0.0 | |
NFS_MOUNT=/media | |
MOUNT=/nfs-share | |
mkdir -p $MOUNT | |
mount -t nfs -o nolock $IP_ADDR:/$NFS_MOUNT $MOUNT | |
#!/bin/bash | |
# | |
# Randomly change wallpaper. | |
# | |
# Pass the directory to serve files from as the first arg | |
# | |
PICDIR=$1 |
1) Plug it in | |
2) ifconfig -a (note the new usb[0-9]+ interface) | |
3) on each computer | |
ip link set up usb0 | |
ip addr add 10.10.10.[0-9] dev usb0 | |
ip route add 10.10.0.0/16 dev usb0 | |
4) ping to verify |
package chat | |
import "net/http" | |
import "sync" | |
import "html/template" | |
import "time" | |
import "strings" | |
type chatpost struct{ | |
text string | |
when time.Time |