Skip to content

Instantly share code, notes, and snippets.

Avatar

Massimo Galbusera maxgalbu

  • hotelscan.com
  • Switzerland
View GitHub Profile
@maxgalbu
maxgalbu / SassMeister-input-HTML.html
Created Dec 22, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<nav>
<a href="#" class="selected">Projects</a>
</nav>
View bootstrap-datetimepicker.css
/*!
* Datetimepicker for Bootstrap v3
* https://github.com/Eonasdan/bootstrap-datetimepicker/
* Copyright 2012 Stefan Petre
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
.bootstrap-datetimepicker-widget {
top: 0;
@maxgalbu
maxgalbu / Switch_Node.php
Last active Dec 31, 2019
Switch tag for Twig, updated from https://github.com/fabpot/Twig/pull/185 to work with Twig >= 1.12
View Switch_Node.php
<?php
//To be added under Twig/Node/Switch.php
/*
* This file is part of Twig.
*
* (c) 2009 Fabien Potencier
* (c) 2009 Armin Ronacher
*
View monitor.php
<?php
/**
* A script that can be called from cron to automatically email the content
* of a PHP error log file to a developer or webmaster.
*
* Author: James Caws
* Website: http://www.jamescaws.com
*
* It uses the freely available PHPMailer class available from
@maxgalbu
maxgalbu / node.sh
Last active Dec 18, 2015 — forked from jmtagarro/node.sh
removing repeating whitespaces put the PID in 2nd position, not 6th
View node.sh
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
# Creamos un fichero PID para monit
SCRIPT="$(basename $0)"