Skip to content

Instantly share code, notes, and snippets.

Avatar

Colin Nederkoorn sud0n1m

View GitHub Profile
@kylerush
kylerush / s3-maxcdn-deploy.py
Created Jan 22, 2013
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.
View s3-maxcdn-deploy.py
#!/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 Mar 22, 2020
Dropzone Destination for filing images to a Jekyll uploads folder and returning Markdown links to relative paths
View Dropzone Image Filer.dropzone.rb
#!/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 Sep 11, 2012
Caddy -> Pump data into Customer.io from CSV
View caddy.sh
#!/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
View campfire-emoji.txt
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
@FiXato
FiXato / weather_grabber.rb
Created Mar 16, 2010
Fetches weather info from Google Weather API and Weather Underground API.
View weather_grabber.rb
#!/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(" ")