Skip to content

Instantly share code, notes, and snippets.

View dsibilly's full-sized avatar

Duane Sibilly dsibilly

View GitHub Profile
@jeresig
jeresig / .vimrc
Created May 4, 2011 16:46
VIM Config
au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery
set nocompatible
set autoindent
set tabstop=2
set showmatch
set vb t_vb=
set ruler
set nohls
set incsearch
syntax on
@fwielstra
fwielstra / api.js
Created June 14, 2011 14:46
An example NodeJS / Mongoose / Express application based on their respective tutorials
/* The API controller
Exports 3 methods:
* post - Creates a new thread
* list - Returns a list of threads
* show - Displays a thread and its posts
*/
var Thread = require('../models/thread.js');
var Post = require('../models/post.js');
@dsibilly
dsibilly / imgur_downloader.py
Last active October 3, 2015 06:37
Threaded Imgur Album Download Script
#!/usr/bin/env python
# Imgur Album Downloader
# Version 20121015-01
#
# THIS SCRIPT NO LONGER WORKS AGAINST THE CURRENT IMGUR WEBSITE
# DO NOT USE! THIS GIST IS HERE FOR POSTERITY ONLY!
#
# Now with multithreading!
# Just paste the URL of an Imgur album/gallery/subdomain
# at the prompt, and away you go!
extension Int {
func bottlesOfBeer() {
let bottles = "\(self) bottle" + (self == 1 ? "" : "s")
let what = " of beer on the wall"
println("\(bottles + what), \(bottles) of beer.")
print("Take one down, pass it around, ")
if self == 1 {
println("no more bottles\(what).")
@dsibilly
dsibilly / destinyCodes.js
Last active August 29, 2015 14:06
Automatically redeem known codes for Bungie's Destiny
/**
* destinyCodes.js
* Automatically redeem known codes for Bungie's Destiny
* Duane Sibilly <[email protected]>
*
* USAGE: Login to your account on bungie.net, and navigate to the code
* redemption page at http://www.bungie.net/en/User/coderedemption. Open your
* browser's JavaScript console (Chrome: Ctrl-Shift-J), and paste the contents
* of this file into the console. Hit enter. You can safely ignore the alert
* message that pops up for any codes you've already redeemed.
@sebastian13
sebastian13 / synology-commands.sh
Created August 30, 2019 18:14
Collection of useful terminal commands for Synology DS.
# Renew Let's Encrypt Certificates
/usr/syno/sbin/syno-letsencrypt renew-all
# Disable Firewall
/usr/syno/bin/synofirewall --disable