Skip to content

Instantly share code, notes, and snippets.

View afelicioni's full-sized avatar
👔
Focused on @aws ☁️

Alessio Felicioni afelicioni

👔
Focused on @aws ☁️
View GitHub Profile
@afelicioni
afelicioni / gist:ae2f084880589fbb4b61
Created November 17, 2015 19:06
Broken Blocky over final level at UC3Mx: IT.1.1x Introduction to Programming with Java - Part 1: Starting to Code with Java
while (notDone()) {
if (isPathLeft()) {
turnLeft();
if (isPathForward()) {
moveForward();
} else {
turnLeft();
turnLeft();
}
} else {
@afelicioni
afelicioni / gist:871aba56e0e247e52519
Created November 26, 2015 18:53
lookup province
=VLOOKUP(A10; province.$A$1:province.$B$5; 2; 0)
@afelicioni
afelicioni / DI.m3u
Created January 3, 2016 12:12 — forked from sim642/DI.m3u
Digitally Imported premium streams
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi
@afelicioni
afelicioni / .htaccess
Created January 11, 2016 19:11
second level domain trick
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
#RewriteCond %{HTTP_HOST} !www.dns.it
#RewriteCond %{HTTP_HOST} (.*).dns.it
#RewriteRule ^(.*)$ %1/$1
RewriteCond %{HTTP_HOST} whois.dns.it
RewriteCond %{REQUEST_URI} !_whois/
@afelicioni
afelicioni / gist:46ee56a56959e4b237e8
Created February 7, 2016 13:52
VirtualBox Guest Additions on ubuntu 14.04
sudo apt-get install virtualbox-guest-dkms
@afelicioni
afelicioni / freeswitch.list
Created February 7, 2016 14:49
freeswitch ubuntu 12.04 x86 /etc/apt/sources.list.d/freeswitch.list
deb http://files.freeswitch.org/repo/deb/debian/ wheezy main
@afelicioni
afelicioni / file.sh
Created February 9, 2016 16:23
lock test
lockdir=/var/tmp/it_totalizer_chiamate
pidfile=/var/tmp/it_totalizer_chiamate/pid
if ( mkdir ${lockdir} ) 2> /dev/null; then
echo $$ > $pidfile
trap 'rm -rf "$lockdir"; exit $?' INT TERM EXIT
sleep 10
rm -rf "$lockdir"
@afelicioni
afelicioni / gist:e97ae51ff04d4e0b5b16
Created February 12, 2016 14:49
legacy binary node ubuntu issue fix
sudo apt-get install nodejs-legacy
@afelicioni
afelicioni / gist:ced515ffc11caf2d3c15
Created February 25, 2016 23:34
gammu huawei fix
ReceiveFrequency = 60
StatusFrequency = 60
CommTimeout = 60
SendTimeout = 60
LoopSleep = 10
CheckSecurity = 0
@afelicioni
afelicioni / file.css
Created February 27, 2016 16:46
CSS blink class
@keyframes blink {
50% { opacity:0.0 }
}
@-webkit-keyframes blink {
50% { opacity:0.0 }
}
@-moz-keyframes blink {
50% { opacity:0.0 }
}
@-ms-keyframes blink {