Skip to content

Instantly share code, notes, and snippets.

@andrewl3wis
andrewl3wis / gist:8587691
Created January 23, 2014 22:02
Address blocks for all of Ukraine
2.56.0.0/14 5.1.0.0/19 5.22.156.0/22 5.34.176.0/21 5.45.206.0/23 5.53.112.0/21 5.56.24.0/21 5.57.64.0/21 5.58.0.0/16 5.83.16.0/21 5.104.32.0/19 5.105.0.0/16 5.149.120.0/21 5.149.208.0/20 5.153.128.0/18 5.180.0.0/14 5.199.232.0/21 5.207.0.0/16 5.248.0.0/16 5.255.160.0/19 23.234.84.216/29 23.234.114.96/27 23.234.118.64/27 31.3.24.0/21 31.3.192.0/20 31.6.96.0/19 31.12.128.0/17 31.24.208.0/21 31.28.160.0/19 31.28.224.0/19 31.31.96.0/19 31.40.16.0/21 31.40.104.0/21 31.40.128.0/17 31.41.8.0/21 31.41.48.0/21 31.41.64.0/20 31.41.88.0/21 31.41.104.0/21 31.41.112.0/21 31.41.128.0/21 31.41.216.0/21 31.42.48.0/20 31.42.64.0/20 31.42.112.0/20 31.42.160.0/19 31.43.0.0/17 31.43.128.0/18 31.43.224.0/19 31.44.188.0/24 31.128.64.0/18 31.128.160.0/19 31.128.224.0/19 31.129.64.0/18 31.129.160.0/19 31.129.224.0/19 31.131.16.0/20 31.131.32.0/21 31.131.64.0/20 31.131.96.0/19 31.131.128.0/20 31.133.32.0/19 31.133.64.0/19 31.133.112.0/21 31.134.64.0/19 31.134.104.0/21 31.134.112.0/20 31.134.208.0/21 31.135.96.0/19 31.135.128.0/19 31.
@andrewl3wis
andrewl3wis / youtube-livestream.sh
Created January 24, 2014 02:59
Quick and Dirty Script to stream Youtube on Raspberry Pi
#!/bin/bash
stream=$(youtube-dl -g $1)
omxplayer $stream -o hdmi
#!/bin/bash
scanvar=$(cat ukraineip.txt)
zmap -p $1 $scanvar -o $2
#!ipxe
set boot-url http://192.168.110.1/
:start
menu iPXE Boot Menu
item Windows-Install Install Windows
item shell shell
item --key x exit Exit iPXE and continue BIOS boot
choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel
set menu-timeout 0
@andrewl3wis
andrewl3wis / csgo-do-deploy
Last active December 20, 2016 07:41
Very quick and dirty script to deploy a Dust2 competitive rules CSGO server on a Digital Ocean Droplet using User Data
#!/bin/bash
sudo apt-get update
sudo apt-get install -y lib32gcc1
useradd -m steam
su -c "wget https://gist.githubusercontent.com/Punkbob/1fefc8e139fd92c61a13/raw/c6b9074e92a00c7c0bd24ac6c4f630ced9edeee0/csgo-userspace" - steam
su -c "chmod +x csgo-userspace" - steam
su -c "./csgo-userspace" - steam
@andrewl3wis
andrewl3wis / d-proxy
Last active August 29, 2015 14:18
Quick and dirty proxy
server {
listen 443 ssl spdy;
server_name west.d-proxy.backupot.com;
ssl_certificate /etc/nginx/certs/nginx.crt;
ssl_certificate_key /etc/nginx/certs/nginx.key;
ssl_client_certificate /etc/nginx/certs/root_CA.pem;
ssl_verify_client on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;