Skip to content

Instantly share code, notes, and snippets.

View saltcod's full-sized avatar

Terry Sutton saltcod

View GitHub Profile
@saltcod
saltcod / 0_reuse_code.js
Created March 24, 2017 16:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@saltcod
saltcod / README.md
Last active August 29, 2015 14:10 — forked from timothyandrew/README.md

Introduction

  • This script lets you set up and use a temporary DigitalOcean droplet to download torrent files.
  • Once downloaded, they can be streamed down to your local machine.
  • This uses transmission-cli for the torrent client, and nginx to serve files.

Setup on Local Machine

  • This assumes that you have a DigitalOcean account and tugboat set up, as well as seedbox-setup.sh present in the current directory.
@saltcod
saltcod / wp
Created February 14, 2013 14:58 — forked from brichards/wp
#!/bin/bash
#
# WP Commandline Local Install, by Brian Richards (@rzen)
#
# Creates a new directory, downloads WordPress, creates a database, sets up wp-config,
# optionally empties wp-content, and deletes other misc files. This compliments my local
# dev setup, outlined here: http://rzen.net/development/local-develoment-in-osx/
#
# Credit:
# Based on WPBuildr (https://github.com/AaronHolbrook/wpbuildr/). Props to Aaron Holbrook
Terry I made this in the big glass dish. 10 x 13 CAVENDISH are the best hashbrowns OK.
Fish fillets, Boil with onions for 15-20 mins .
Hashbrowns one bag.
Sour cream 500ml
cream of mushroom soup or I used cream of chicken soup.
Make dressing, 2 cups. Bread crumbs, onion , savoury
Cup of onion diced.
@saltcod
saltcod / functions.php
Created March 27, 2012 17:57 — forked from anonymous/functions.php
functions page
<?php
/* Uncomment to put site in maintenance mode */
function wpr_maintenance_mode() {<br />
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {<br />
wp_die('Doing a small upgrade, please come back in about an hour!');<br />
}<br />
}<br />
add_action('get_header', 'wpr_maintenance_mode');
window.addEventListener "DOMContentLoaded", ->
body = $ "body"
canvas = $ "#canvas"
chalkboard = $ "#chalkboard"
close = $ "#close"
ledge = $ "#ledge"
lightswitch = $ "#lightswitch"
output = $ "#output"
shade = $ "#shade"
share = $ "#share"