Skip to content

Instantly share code, notes, and snippets.

@ha1t
ha1t / entries2.json
Created November 3, 2012 04:02 — forked from yandod/entries2.json
Plugin Catalog for CandyCane
{
"cc_nyancat":{
"id":"cc_nyancat",
"name":"Nyan down chart rocks!",
"description":"This is demonstration of plugin system.",
"url":"https:\/\/github.com\/downloads\/yandod\/cc_nyancat\/cc_nyancat-v0.3.1.zip",
"author":"yandod",
"author_url":"https:\/\/github.com\/yandod",
"version":"0.3.1"
},
@ha1t
ha1t / gist:3748019
Created September 19, 2012 06:32 — forked from karlseguin/gist:1876859
sublime text 2 script to save to remove server
#variation of http://urbangiraffe.com/2011/08/13/remote-editing-with-sublime-text-2/ that adds creating new folders remotely.
import sublime_plugin, os
class RemoteEdit(sublime_plugin.EventListener):
def on_post_save(self, view):
remote = { "/Users/leto/work/project": ["/usr/bin/scp", None, "user@server", "root_remote_path_like ~/project/", None] }
for dirname, target in remote.iteritems():
if view.file_name().startswith( dirname ):
#!/usr/bin/env ruby
$LOAD_PATH << 'lib'
$LOAD_PATH << '../lib'
require 'optparse'
require 'uri'
require 'rubygems'
require 'daemons'