MONGO=mongohost node index.js
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
tell application "System Events" | |
set frontApp to name of first application process whose frontmost is true | |
if frontApp is "Google Chrome" then | |
tell application "iTerm" | |
activate | |
end tell | |
else | |
tell application "Google Chrome" | |
activate | |
end tell |
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
// prefs.js Template | |
// Petr Hosek(http://petrhosek.name) | |
/* | |
color00="fd/f6/e3" # Base 00 - Black | |
color01="dc/32/2f" # Base 08 - Red | |
color02="85/99/00" # Base 0B - Green | |
color03="b5/89/00" # Base 0A - Yellow | |
color04="26/8b/d2" # Base 0D - Blue | |
color05="6c/71/c4" # Base 0E - Magenta |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
connect: { | |
server: { | |
options: { | |
livereload: true, | |
keepalive: true |
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
gi() { | |
if [ $# -eq 1 ]; then | |
npm i -D grunt-$* | |
else | |
local IFS=,; | |
eval npm i -D grunt-{"$*"}; | |
fi | |
} |
#Moncmd
moncmd is a wrapper for mon
##Usage
moncmd start
moncmd status
moncmd restart
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
server.pid |
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
wget https://gist.github.com/raw/1552359/82565cd875067cc6ac4250daaeeb151d41f8b9a7/setup.sh && chmod +x setup.sh | |
sudo ./setup.sh |
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
javascript:var addTask=function(a,b,c,d,e){window.location="thehitlist:///"+c+"/tasks?method=POST&title="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&startDate="+d+"&priority="+e};addTask(document.title,window.location,"inbox","t") |
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
express = require "express" | |
app = express.createServer() | |
app.configure () -> | |
app.use express.methodOverride() | |
app.use express.bodyParser() | |
app.use app.router | |
app.set "views", "#{ __dirname }/templates" | |
app.set "view engine", "ejs" | |
app.register ".html", require "ejs" |
NewerOlder