This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Source: Padraic Renaghan prenagha@renaghan.com https://gist.github.com/prenagha/8372844 | |
-- | |
-- launchbar integration applescript for command-c | |
-- http://danilo.to/command-c/ | |
-- | |
-- set the variable "theDevice" below as needed to the device name you want to send to | |
-- Put script in Launchbar actions folder | |
-- ~/Library/Application Support/Launchbar/Actions | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#coding: utf-8 | |
''' | |
requirements: | |
GitPython | |
MySQLdb | |
TofApi.py | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import subprocess | |
SITES_ROOT = '/data/sh_ecc/' | |
def remove_excess_ele(ele_set): | |
excess_ele_list = ['.', '..'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/tclsh8.5 | |
# | |
# Usage: git-unmerged branch1 branch2 | |
# | |
# Shows all the non-common commits in the two branches, where non-common | |
# commits means simply commits with a unique commit *message*. | |
proc getlog branch { | |
lrange [split [exec git log $branch --oneline] "\n"] 0 400 | |
} |