Skip to content

Instantly share code, notes, and snippets.

@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)

This will show your next GitHub milestone as a Dashing widget. Built on top of the Text widget.

To use:

  • Add the following to your gemfile:

  •   gem 'rest-client'
    
  • Replace the git_token, git_owner, and git_project in git-milestone.rb as appropriate.

Description

Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.

##Usage

To use this widget, copy countdown.html, countdown.coffee, and countdown.scss into the /widgets/countdown directory.

To include the widget in a dashboard, add the following snippet to the dashboard layout file:

Description

Dashing widget to display weather from forecast.io.

##Usage

To use this widget, copy forecast.coffee, forecast.html, and forecast.scss into the /widgets/forecast directory. Put the forecast.rb file in your /jobs folder.

To include the widget in a dashboard, add the following to your dashboard layout file:

Setup

Add the simple-rss Gem to your Gemfile:

gem 'simple-rss'

Update your bundle:

bundle