Skip to content

Instantly share code, notes, and snippets.

@fny
fny / list.md
Created January 28, 2022 01:40 — forked from ih2502mk/list.md
Quantopian Lectures Saved
# Get Sublime Text to use your rvm ruby without hardcoding a `$USER`.
#
# Include the configurations below the commend in the appropriate file listed below:
#
# - OS X ST2: ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build
# - OS X ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build
# - Linux ST2: ~/.config/sublime-text-2/Packages/Ruby/Ruby.sublime-build
# - Linux ST3: ~/.config/sublime-text-3/Packages/User/Ruby.sublime-build
{
@fny
fny / Gemfile
Created April 30, 2012 02:21 — forked from rafaelss/Gemfile
rack static site
source "http://rubygems.org"
gem 'rack-contrib', :git => 'git://github.com/rack/rack-contrib.git'
gem 'rack-rewrite'
@fny
fny / dabblet.css
Created April 15, 2012 05:48 — forked from dgmid/dabblet.css
Animated HTML5 / CSS3 image caption - Example 6
/**
* Animated HTML5 / CSS3 image caption - Example 6
*/
/* page styles */
body{
background: #fff;
min-height:100%;
}
@fny
fny / gist:2361272
Created April 11, 2012 18:39 — forked from eriwen/gist:187610
Pythonic site monitor
#!/usr/bin/env python
# sample usage: checksites.py eriwen.com nixtutor.com yoursite.org
import pickle, os, sys, logging
from httplib import HTTPConnection, socket
from smtplib import SMTP
def email_alert(message, status):
fromaddr = 'you@gmail.com'
@fny
fny / drop
Created February 25, 2012 04:53
Simple shell script to copy a file to a Dropbox public folder and get its URL. Needs socat and xclip.
#!/bin/sh
#
# Simple shell script to copy a file to the Dropbox
# public folder and get its URL.
#
# The URL of the last file copied also stays on the
# X clipboard.
#
# Symlink the script as dropmv to move the file to the
# public folder instead of copying it.
@fny
fny / pinboard-full.js
Created February 25, 2012 03:26 — forked from BenWard/pinboard-full.js
A smarter bookmarklet for Pinboard.in; wraps selected text in <blockquote> tags, keeps variables out of the global scope, supports filling tags from rel="tag" markup in the page, and titles from hAtom entry titles.
(function() {
// Change `silent` to true to invoke the promptless, self-closing
// version of the bookmarklet.
var silent = false;
var url = location.href;
var title = document.title;
// Look for a single hAtom entry on the page, and iff one is found, extract
// the entry-title in place of the document title: