Skip to content

Instantly share code, notes, and snippets.

Matteo Scotuzzi scotu

Block or report user

Report or block scotu

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
scotu /
Last active Jul 26, 2016 — forked from ThaWeatherman/
No-external-dependency email sending function through Mailgun's REST api for python
# -*- coding: utf-8 -*-
Copyright 2016 Sean Beck, Matteo Scotuzzi
MIT license
A simple script that provides a function to send an email via Mailgun with no
external dependencies.
This requires obtaining an API key from Mailgun. Make also sure to setup the defaults in the

Keybase proof

I hereby claim:

  • I am scotu on github.
  • I am matteo ( on keybase.
  • I have a public key whose fingerprint is E986 3043 9891 545B 6A16 A320 8BFE 4CEC E98E 1A57

To claim this, I am signing this object:

scotu /
Created Aug 25, 2014
Wrapper to make sure a command is run only once at a time
# taken from
SCRIPTNAME=`basename $0`
if [ -f ${PIDFILE} ]; then
#verify if the process is actually still running under this pid
scotu / ffbookmark.js
Created Jun 19, 2014
Friendfeed fixed bookmarklet code
View ffbookmark.js
(function(){function A(){function a(){var a=document.getElementById("ff__shadow"),b=document.getElementById("ff__foreground");if(!a||!b)clearInterval(n);else if(h!=b.offsetWidth||k!=b.offsetHeight)h=b.offsetWidth,k=b.offsetHeight,"px","px"}if(!document.getElementById("ff__container")){var b;window.getSelection?b=""+window.getSelection():document.selection&&(b=document.selection.createRange().text);for(var c=0,e=window.ff__reshare?[]:document.getElementsByTagName("img"),
d=0;d<e.length;d++){var f=e[d];if(!(f.width<t||f.height<t)){c++;var l=q(f,"mouseover",u(B,f));r.push({element:f,,listener:l})}}var g=m();"ff__container";"absolute";"px";"0";"auto";;d=m(g);"ff__shadow";"black";"absolute";;"0";"0";C(d,.3);d=m(g);"ff__foreground";"white";
scotu / sitemap_generator.rb
Created Nov 23, 2011
Jekyll sitemap generator (source: ) [Exclude not working as expected by me, need to investigate]
View sitemap_generator.rb
# Sitemap.xml Generator is a Jekyll plugin that generates a sitemap.xml file by
# traversing all of the available posts and pages.
# How To Use:
# 1.) Copy source file into your _plugins folder within your Jekyll project.
# 2.) Change MY_URL to reflect your domain name.
# 3.) Change SITEMAP_FILE_NAME if you want your sitemap to be called something
# other than sitemap.xml.
# 4.) Change the PAGES_INCLUDE_POSTS list to include any pages that are looping
scotu / lessjs.rb
Created Nov 23, 2011 — forked from andyfowler/lessjs.rb
Jekyll plugin to render less.js files during generation.
View lessjs.rb
module Jekyll
# Expects a lessc: key in your _config.yml file with the path to a local less.js/bin/lessc
# Less.js will require node.js to be installed
class LessJsGenerator < Generator
safe true
priority :low
def generate(site)
src_root = site.config['source']
scotu / solarized.css
Created Oct 8, 2011 — forked from tdreyno/solarized.css
Solarized Light Pygments CSS
View solarized.css
.highlight { background-color: #ffffcc }
.highlight .c { color: #586E75 } /* Comment */
.highlight .err { color: #93A1A1 } /* Error */
.highlight .g { color: #93A1A1 } /* Generic */
.highlight .k { color: #859900 } /* Keyword */
.highlight .l { color: #93A1A1 } /* Literal */
.highlight .n { color: #93A1A1 } /* Name */
.highlight .o { color: #859900 } /* Operator */
.highlight .x { color: #CB4B16 } /* Other */
.highlight .p { color: #93A1A1 } /* Punctuation */
scotu / trelloholodeck.xml
Created Sep 23, 2011
Trello Holodeck for Google+ Hangouts
View trelloholodeck.xml
<?xml version="1.0" encoding="UTF-8" ?>
<ModulePrefs title="Trello Holodeck">
<Require feature="rpc"/>
<Content type="html">
<script src="//"></script>
<!-- Your application code --><script type="text/javascript">;</script>
<iframe style="width:100%;height:100%;border:0;" src="">So sorry, seams like your browser does not support iFrames needed for this gadget...</iframe>
View jekyll.thor
require 'fileutils'
class Jekyll < Thor
include FileUtils
method_options :format => :optional
desc "draft NAME", "Create draft `NAME` in _drafts"
def draft(name)
format = options[:format] || "markdown"
slug = name.downcase.gsub(/ +/,'-').gsub(/[^-\w]/,'').sub(/-+$/,'')
scotu / less_converter.rb
Created Aug 23, 2011 — forked from jasongraham/less_converter.rb
A Jekyll plugin to convert a .less file to .css, updated for less gem version 2
View less_converter.rb
module Jekyll
# Compiled LESS CSS into CSS. You must specify an empty YAML front matter
# at the beginning of the file.
# .less -> .css
class LessConverter < Converter
safe true
priority :low
pygments_prefix "\n"
pygments_suffix "\n"
You can’t perform that action at this time.