Skip to content

Instantly share code, notes, and snippets.

@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);
### 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 / 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":
@sheedy
sheedy / homebrew-symlink-fix.sh
Created March 19, 2014 05:51
Fix homebrew symlinks after Mavericks install
@sheedy
sheedy / SassMeister-input-HTML.html
Created March 13, 2014 14:18
Generated by SassMeister.com.
<div></div>
@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>
/* 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 / 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.

%vertical-align {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.element p {
@extend %vertical-align;
@sheedy
sheedy / task-server.js
Created December 30, 2013 17:17
Load modules per-task from within the task itself for performance https://github.com/gruntjs/grunt/issues/975
module.exports = function(grunt) {
grunt.registerTask('server', function (target) {
if (target === 'build') {
return grunt.task.run([
'build',
'open',
'connect:build:keepalive'