Skip to content

Instantly share code, notes, and snippets.

Avatar

Francesco Maida fmaida

View GitHub Profile
@fmaida
fmaida / dark-minos.min.css
Last active Apr 25, 2020
This will render your minos theme ( https://github.com/carsonip/hugo-theme-minos ) in dark colors, just remember to add customCSS = ["dark-minos.min.css"] under [parameters] in your config.toml file. You can use either the scss file and compile it, or directly the .min.css file
View dark-minos.min.css
body{background-color:#24292e;color:#eee}#logo,.main-nav-link,a.article-title,p,#page-nav a,.archive-article-title,#main-nav-toggle,.article-entry,.article-toc li a,.tag-cloud a,.article-footer a:hover{color:#eee}a.article-title:hover,a.article-date:hover,a.archive-article-title:hover,#footer a:hover,#page-nav>a:hover,.tag-cloud a:hover,a:hover{border-bottom-color:#eee}.article-entry a{border-bottom:none}.article-entry a:hover{border-bottom:1px dotted #00b6e5}#page-nav .current{background-color:#00b6e5}a,.article-entry a,.article-more-link a,#footer-info a{color:#00b6e5}.article-nav-link-wrap{text-shadow:0 1px #222;color:#00b6e5;text-align:center}.article-nav-link-wrap:hover{color:#eee}#header{background-color:#14191e;border-bottom:1px solid #222}div.highlight,pre,.article-entry code{background-color:#14191e !important;scrollbar-color:#00b6e5 #14191e}.article,.article-date{border-bottom:1px solid #14191e}.archives{border-left:1px solid #14191e}.archive-article-inner:hover{border-left-color:#00b6e5}.article-me
@fmaida
fmaida / albatramonto.py
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.
View albatramonto.py
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
fmaida / cactus-dark.css
Last active Mar 30, 2020
Dark cactus theme v1.21 for micro.blog. Add this custom CSS code to your page if you are using the "Cactus" theme on micro.blog and you want to invert the colors on screen.
View cactus-dark.css
nav.main-nav a,
nav.main-nav a.cta,
a,
strong,
#title,
#post-list a:hover,
#post-list li:hover .dates,
#title:hover,
a, p a, #post-list.archive.readmore a {
color: #00b6e5; /* #5babf0; */
@fmaida
fmaida / start
Created Sep 7, 2016
The bin/start file I'm actually using on webfaction to start a ghost blog server
View start
#!/bin/sh
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
fi