Skip to content

Instantly share code, notes, and snippets.

@sheedy
sheedy / nginx.conf
Last active August 28, 2015 22:41 — forked from sansmischevia/nginx.conf
nginx http proxy to s3 static websites
##
## This nginx.conf servers as the main config file for webflow reverse proxy
##
## RCS:
## https://gist.github.com/sansmischevia/5617402
##
## Hardening tips:
## http://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html
##
@sheedy
sheedy / sync-sublime.md
Created January 30, 2014 05:00
sync-sublime.md

If your Dropbox folder is not in the default location, you'll need to change ~/Dropbox to your location.

  1. Close Sublime Text
  2. Open Terminal

First Machine

On your first machine, use the following instructions.

/* Theme Name: Flat Pinboard */
/* Theme URL: http://tackk.com/flat-pinboard */
/* Version: v1.0 */
/* Created by: Dan Klammer */
/* Broswer: Chrome + Stylish Extension */
html {
-webkit-font-smoothing:antialiased;
height:100%;
}
@sheedy
sheedy / SassMeister-input-HTML.html
Created March 10, 2014 14:49
Generated by SassMeister.com.
<div class="button">wireframe button</div>
<div class="button button--cancel">cancel</div>
<div class="button button--primary">
submit <span>now</span>
</div>
<div class="button button--big button--cancel">cancel</div>
@sheedy
sheedy / SassMeister-input-HTML.html
Created March 13, 2014 14:18
Generated by SassMeister.com.
<div></div>
@sheedy
sheedy / homebrew-symlink-fix.sh
Created March 19, 2014 05:51
Fix homebrew symlinks after Mavericks install
@sheedy
sheedy / Preferences.sublime-settings
Last active August 29, 2015 13:59
User settings for sublime text
{
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"bold_folder_labels": true,
"color_scheme": "Packages/User/base16-ocean.dark (SL).tmTheme",
"custom_config_path": "~/Sites/csscomb.json",
"default_encoding": "UTF-8",
"detect_slow_plugins": false,
"draw_white_space": "all",
"folder_exclude_patterns":
### Run this script via a cronjob every (every minute or so) on a server that has access to your dropbox.
### You must install youtube-dl (http://rg3.github.com/youtube-dl/) for this to work.
#!/bin/bash
QUEUE_DIR=~/Desktop/Dropbox/IFTTT/youtube-dl/*.txt
VIDEO_DIR=~/Desktop/Dropbox/youtube/
shopt -s nullglob
for queue_file in $QUEUE_DIR
do
video_url=`cat "$queue_file"`;
@sheedy
sheedy / pushover.php
Last active August 29, 2015 14:00
Send message to pushover
<?php
curl_setopt_array($ch = curl_init(), array(
CURLOPT_URL => "https://api.pushover.net/1/messages.json",
CURLOPT_POSTFIELDS => array(
"token" => "token",
"user" => "user",
"message" => "hello world",
)));
curl_exec($ch);
curl_close($ch);
@sheedy
sheedy / osx-commands.md
Last active August 29, 2015 14:02
An A-Z Index of the Apple OS X command line. Source: http://ss64.com/osx/osx/

An A-Z Index of the Apple OS X command line

Source: http://ss64.com/osx/osx/

a

  • [alias][1] Create an alias •
  • alloc List used and free memory
  • [apropos][2] Search the whatis database for strings
  • [asr][3] Apple Software Restore
  • [awk][4] Find and Replace text within file(s)