This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>coffee.md</string> | |
<string>litcoffee</string> | |
</array> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
This file contains hidden or 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
# ubuntu | |
git clone [email protected]:slash-lang/slash.git | |
sudo apt-get install libmarkdown2-dev libmysqlclient-dev libyajl-dev libgmp-dev | |
# apache2 | |
sudo apt-get install apache2 apache2-prefork-dev | |
sudo ln -s /usr/bin/apxs2 /usr/bin/apxs | |
sudo ln -s /usr/sbin/apache2 /usr/bin/httpd | |
# make |
This file contains hidden or 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
#!/bin/sh | |
MYSELF="$(whoami)" | |
WWWDIR="$HOME/www" | |
DOMAIN=$1 | |
VHOSTDIR="/usr/local/apache2/conf/vhosts" | |
if [ "$MYSELF" != "root" ]; then | |
echo "You must execute this as root" | |
else |
This file contains hidden or 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
CREATE DATABASE <dbname>; | |
CREATE USER '<dbuser>'@'localhost' IDENTIFIED BY '<password>'; | |
GRANT ALL PRIVILEGES ON <dbname> . * TO '<dbuser>'@'localhost'; | |
REVOKE ALL PRIVILEGES ON <dbname> . * FROM '<dbuser>'@'localhost'; |
This file contains hidden or 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
// http://ejohn.org/blog/bringing-the-browser-to-the-server/ | |
// timers, xhr | |
// The window Object | |
var window = this; | |
(function(){ | |
var curLocation = (new java.io.File("./")).toURL(); |
This file contains hidden or 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
function runTasks(subtasks, callback) { | |
function next() { | |
var task = subtasks.shift(); | |
if (!task) { | |
return callback(); | |
} | |
task(function (err) { | |
if (err) { |
This file contains hidden or 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
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
'use strict'; | |
/* global loadAPI, sendSysex, host */ | |
loadAPI(1); | |
var RL; | |
var KeyPad = require('./keypad'); |
This file contains hidden or 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
function my_prompt_git | |
__fish_git_prompt | sed -e "s| ||g" | |
end | |
function my_prompt_pwd | |
echo $PWD | sed -e "s|^$HOME|~|" -e "s|.*/||g" | |
end | |
function fish_prompt --description 'Write out the prompt' |
This file contains hidden or 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
function nvm | |
bash -c 'source ~/.nvm/nvm.sh; nvm "$@"' nvm $argv | |
set -l node_dir "$HOME/.nvm/versions/node" | |
switch (echo $argv[1]) | |
case install | |
case use | |
set -l node_version (ls $node_dir | grep $argv[2]) | |
set -l node_version (echo $node_version | cut -d " " -f1) |