Skip to content

Instantly share code, notes, and snippets.

View samueljarosinski's full-sized avatar

Samuel Jarosiński samueljarosinski

View GitHub Profile
import csv
import glob
import os
import shutil
import sys
import urllib.request
if len(sys.argv) != 2:
print('Usage: ' + sys.argv[0] + ' [path to project]')
sys.exit()
@samueljarosinski
samueljarosinski / detect.sh
Created February 13, 2014 01:21 — forked from kissarat/detect.sh
The script beeps when internet connection becomes available.
#!/bin/sh
modprobe pcspkr
while true
do ping -c 4 google.com 2> /dev/null
if [ $? -eq 0 ]
then beep
break
fi
sleep 5