This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Renew Let's Encrypt Certificates | |
/usr/syno/sbin/syno-letsencrypt renew-all | |
# Disable Firewall | |
/usr/syno/bin/synofirewall --disable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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).") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |