Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
file='ips.txt'
max=`curl -s 'https://en.greatfire.org/search/ip-addresses' | grep 'page=' | grep 'last' | sed 's/.*\([0-9]\{3,4\}\).*/\1/'`
for i in $(seq 0 $max); do
echo 'Starting Download '$i
@lub
lub / leagueoflegends
Last active August 29, 2015 14:02 — forked from anonymous/leagueoflegends
Launch League of Legends, wait until it is patched, run tuxlol -> success
#!/bin/sh
# --- README ---
# adjust paths and launch command (replace playonlinux if needed)
# get tuxlol https://bitbucket.org/Xargoth/tuxlol/downloads
# get mono: apt-get install mono-runtime libmono-system-core4.0-cil
playonlinux --run "League of Legends"
until ps aux | grep -v grep | grep LolClient
@lub
lub / ocscreenshot
Last active November 2, 2015 07:07
#!/bin/bash
usr=ocusername
passwd=ocpassword
server=ocserver.com
file=/tmp/screenshot_`date +%s`.png
name=$(basename $file)
if [ $1 = "fullscreen" ]; then