Skip to content

Instantly share code, notes, and snippets.

View sud0n1m's full-sized avatar

Colin Nederkoorn sud0n1m

View GitHub Profile
@kylerush
kylerush / s3-maxcdn-deploy.py
Created January 22, 2013 18:09
Git, S3 and MaxCDN Python deploy script. The script gets the changed file between the two latest Git commits, uploads the changed files to S3 and then purges the paths from MaxCDN using the API.
#!/usr/bin/env python
#install the follow first:
#sudo easy_install pip
#sudo pip install -U boto
#sudo pip install configparser
@ttscoff
ttscoff / Dropzone Image Filer.dropzone.rb
Last active March 22, 2020 10:31
Dropzone Destination for filing images to a Jekyll uploads folder and returning Markdown links to relative paths
#!/usr/bin/ruby
# Dropzone Destination Info
# Name: Jekyll Image Filer
# Description: Files images in a Jekyll repo
# Handles: NSFilenamesPboardType
# Creator: Brett Terpstra
# URL: http://brettterpstra.com
# IconURL: http://brettterpstra.com/destinations/icons/jekyllfiler.png
# OptionsNIB: ChooseFolder
@sud0n1m
sud0n1m / caddy.sh
Created September 11, 2012 00:43
Caddy -> Pump data into Customer.io from CSV
#!/bin/bash
echo "Caddy v 0.1 from Customer.io"
ENDPOINT="https://app.customer.io/api/v1/customers/"
SITEID="YOUR SITE ID"
APIKEY="YOUR API KEY"
INPUT=users.csv
OLDIFS=$IFS
@sud0n1m
sud0n1m / campfire-emoji.txt
Created June 13, 2011 22:14 — forked from bryanl/campfire-emoji.txt
campfire emoji
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
@FiXato
FiXato / weather_grabber.rb
Created March 16, 2010 18:37
Fetches weather info from Google Weather API and Weather Underground API.
#!/usr/bin/env ruby
# Fetches weather info from Google Weather API and Weather Underground API.
# Syntax:
# ./weather_grabber.rb [location]
#
# (c) 2010 Filip H.F. "FiXato" Slagter
# Licensed under Creative Commons Attribution-Share Alike 3.0 Unported License, http://creativecommons.org/licenses/by-sa/3.0/
['rubygems','nokogiri','open-uri','yaml', 'iconv'].each {|lib| require lib}
if ARGV.size > 0
location = ARGV.join(" ")