I hereby claim:
- I am h2so4 on github.
- I am okezie (https://keybase.io/okezie) on keybase.
- I have a public key ASDIn2osCi7P-vOVQAfJZKN9hy54XigPaTnm8FjZ8Z-higo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
source /etc/lsb-release | |
if [[ "${DISTRIB_CODENAME}" == "xenial" ]]; then | |
kernel_version="4.4.0-1052" | |
elif [[ "${DISTRIB_CODENAME}" == "trusty" ]]; then | |
kernel_version="4.4.0-1016" | |
else | |
echo "!!! YOU MUST UPGRADE TO <= TRUSTY" | |
fi | |
apt-get -y autoremove ; apt-get update; apt-get -y install linux-aws linux-image-${kernel_version}-aws |
#!/bin/bash | |
echo ' _ __ _______ __ __ _ _____ _ ' | |
echo '| | \ \ / / ____| \ \ / / | | | __ \ | |' | |
echo '| | \ V / | \ \ /\ / /__| |__ | |__) |_ _ _ __ ___| |' | |
echo "| | > <| | \ \/ \/ / _ \ '_ \ | ___/ _\` | '_ \ / _ \ |" | |
echo '| |____ / . \ |____ \ /\ / __/ |_) | | | | (_| | | | | __/ |' | |
echo '|______/_/ \_\_____| \/ \/ \___|_.__/ |_| \__,_|_| |_|\___|_|' | |
echo -e '\n\nAutomatic installer\n' | |
if [[ "$UID" -ne "0" ]];then |
# Use LVM for partitioning | |
d-i partman-auto/method string lvm | |
# If one of the disks that are going to be automatically partitioned | |
# contains an old LVM configuration, the user will normally receive a | |
# warning. Preseed this away | |
d-i partman-lvm/device_remove_lvm boolean true | |
# And the same goes for the confirmation to write the lvm partitions. | |
d-i partman-lvm/confirm boolean true |
influxsrv: | |
image: tutum/influxdb:0.8.8 | |
name: influxsrv | |
volumes: | |
- ./data:/data | |
ports: | |
- "8083:8083" | |
- "8086:8086" | |
expose: | |
- "8090" |
import time | |
import socket | |
import base64 | |
src = '192.168.1.2' # ip of remote | |
mac = '00-AB-11-11-11-11' # mac of remote | |
remote = 'python remote' # remote name | |
dst = '192.168.1.3' # ip of tv | |
app = 'python' # iphone..iapp.samsung |
cat > client.json <<'EOF' | |
{ | |
"client": { | |
"name": "sensu-server.dom.tld", | |
"address": "10.0.0.1", | |
"subscriptions": [ "test" ] | |
} | |
} | |
EOF |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> |
aptitude install -y build-essential | |
wget "http://downloads.sourceforge.net/project/e1000/ixgbevf stable/2.11.3/ixgbevf-2.11.3.tar.gz" | |
tar -zxf ./ixgbevf-* | |
cd ixgbevf*/src | |
make install | |
modprobe ixgbevf | |
sudo update-initramfs -c -k all | |
echo "options ixgbevf InterruptThrottleRate=1,1,1,1,1,1,1,1" > /etc/modprobe.d/ixgbevf.conf |
import os | |
import os.path | |
import re | |
import time | |
import json | |
# script to create an ssh tunnel from a public server back to a private (firewalled/NATted) machine; a poor man's VPN, basically | |
# how it works: | |
# private machine run this script at regular intervals, which attempts to ssh into public server; if successful, it |