Skip to content

Instantly share code, notes, and snippets.

CmdUtils.makeSearchCommand({
name: ["verycd"],
description: "Search www.verycd.com for movies, music, books downloads with image preview",
author: {name:"Danny Siu", email:"danny.siu@gmail.com", homepage:"http://dsiu.org"},
url: "http://www.verycd.com/search/folders/{QUERY}",
parser: {
container: "table#results-container > tbody > tr.entry",
title: "td > h3 > a",
thumbnail: "td:first > a > img",
preview: "td > div.brief",
@sike
sike / gist:3785833
Created September 26, 2012 03:30
Sublime : User Settings
{
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",
"draw_minimap_border": true,
"font_face": "Espresso Mono",
// Source Code Pro
// Espresso Mono
// inconsolata
// Consolas
"font_size": 17,
"ignored_packages":
@sike
sike / gist:3787172
Created September 26, 2012 10:13
Sublime : User Keymap
[
// { "keys": ["ctrl+d"], "command": "find_under_expand" },
{ "keys": ["ctrl+s"], "command": "find_under_expand" },
{ "keys": ["alt+s"], "command": "toggle_side_bar" },
// { "keys": ["ctrl+u"], "command": "soft_undo" },
{
"keys": ["super+alt+left"],
"command": "set_layout",
"args":
{
@sike
sike / gist:3797651
Created September 28, 2012 02:41
VPN: shortcut trigger for quicksilver
tell application "System Events"
tell current location of network preferences
set Modemdailup to service "VPN2"
if exists Modemdailup then disconnect Modemdailup
set Modemdailup2 to service "VPN3"
if exists Modemdailup2 then disconnect Modemdailup2
end tell
end tell
// tell application "System Events"
@sike
sike / gist:3800011
Created September 28, 2012 13:56 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@sike
sike / css-stats-ack.sh
Created October 7, 2012 07:32 — forked from pjkix/css-stats-ack.sh
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@sike
sike / bash.scpt
Created October 10, 2012 06:59 — forked from noamross/bash.scpt
Run bash script from quicksilver
using terms from application "Quicksilver"
on process text _bashcom
do shell script "/bin/bash -ic '" & _bashcom & "'"
end process text
end using terms from
@sike
sike / .tmux.conf
Created October 23, 2012 02:21
tmux config
unbind C-b
set -g prefix C-a
setw -g mode-keys vi
# split window like vim
# vim's defination of a horizontal/vertical split is revised from tumx's
bind s split-window -h
bind v split-window -v
# move arount panes wiht hjkl, as one would in vim after C-w
bind h select-pane -L
@sike
sike / jQuery plugin template
Created November 6, 2012 09:29
jquery.plugin.js
(function($) {
// plugin name
$.fn.productList = function(options) {
var _this = this;
// plugin options
var settings = $.extend({
// default settings
'param' : 'value'
}, options);
@sike
sike / sync for dropbox
Created January 29, 2013 10:04
sync outside folder to dropbox
ln -s /path/to/desired-folder ~/Dropbox/desired-folder