Skip to content

Instantly share code, notes, and snippets.

Francesco Maida fmaida

Block or report user

Report or block fmaida

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fmaida /
Last active Feb 18, 2019
Come calcolare gli orari di alba e tramonto per Venezia con una semplice ed efficace libreria python chiamata "suntime". Potete cambiare la città semplicemente modificando i dati di longitudine e latitudine.
from dateutil import tz
# Occhio che la librerie suntime
# va prima installata nel proprio
# computer con il comando:
# " pip install suntime "
from suntime import Sun
# Latitudine e longitudine di Venezia
latitudine = 45.4398
fmaida / cactus-dark.css
Last active Oct 19, 2018
Dark cactus theme v1.15 for Add this custom CSS code to your page if you are using the "Cactus" theme on and you want to invert the colors on screen.
View cactus-dark.css
nav.main-nav a,
nav.main-nav a.cta,
#post-list a:hover,
#post-list li:hover .dates,
p a {
color: #5babf0;
fmaida / start
Created Sep 7, 2016
The bin/start file I'm actually using on webfaction to start a ghost blog server
View start
procs=$(/home/fmaida/webapps/cesco_it_privato/bin/node /home/fmaida/webapps/cesco_it_privato/ghost/node_modules/forever/bin/forever list | grep -F /home/fmaida/webapps/cesco_it_privato/bin/node)
if [ -z "$procs" ]; then
cd /home/fmaida/webapps/cesco_it_privato/ghost
NODE_ENV=production /home/fmaida/webapps/cesco_it_privato/bin/node /home/fmaida/webapps/cesco_it_privato/ghost/node_modules/forever/bin/forever start -l ~/logs/user/cesco_it_privato-forever.log -o ~/logs/user/cesco_it_privato-stdout.log -e ~/logs/user/cesco_it_privato-stderr.log -a --sourceDir /home/fmaida/webapps/cesco_it_privato/ghost index.js
You can’t perform that action at this time.