Skip to content

Instantly share code, notes, and snippets.

View H2so4's full-sized avatar

OkezieE H2so4

  • Salesforce
  • Remote
View GitHub Profile
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
@H2so4
H2so4 / docker-compose.yml
Last active January 15, 2016 23:27
docker monitoring compose
influxsrv:
image: tutum/influxdb:0.8.8
name: influxsrv
volumes:
- ./data:/data
ports:
- "8083:8083"
- "8086:8086"
expose:
- "8090"
@H2so4
H2so4 / preseed-fragment.seed
Created September 29, 2015 20:09 — forked from lorin/preseed-fragment.seed
Automated partitioning with Ubuntu preseed
# 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
@H2so4
H2so4 / lxc_web_panel_install.sh
Last active November 26, 2015 16:10
Installer for LXC-Web-Panel with fix for displaying IP address in UI
#!/bin/bash
echo ' _ __ _______ __ __ _ _____ _ '
echo '| | \ \ / / ____| \ \ / / | | | __ \ | |'
echo '| | \ V / | \ \ /\ / /__| |__ | |__) |_ _ _ __ ___| |'
echo "| | > <| | \ \/ \/ / _ \ '_ \ | ___/ _\` | '_ \ / _ \ |"
echo '| |____ / . \ |____ \ /\ / __/ |_) | | | | (_| | | | | __/ |'
echo '|______/_/ \_\_____| \/ \/ \___|_.__/ |_| \__,_|_| |_|\___|_|'
echo -e '\n\nAutomatic installer\n'
if [[ "$UID" -ne "0" ]];then
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

Keybase proof

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: