resolv.conf.d/virtual-hosts
nameserver 127.0.0.1
dhclient-enter-hooks.d/virtual-hosts
prepend domain-name-servers 127.0.0.1;
dnsmasq.d/virtual-hosts
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'; |
#!/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 |
# ubuntu | |
git clone git@github.com: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 |
<?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> |
<?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> |
set -U EDITOR vim | |
set -U fish_greeting | |
set __fish_git_prompt_showdirtystate 'yes' | |
set __fish_git_prompt_showupstream 'yes' | |
set __fish_git_prompt_showuntrackedfiles 'yes' | |
set __fish_git_prompt_color_branch yellow | |
set __fish_git_prompt_char_cleanstate '✔' | |
set __fish_git_prompt_char_dirtystate '⚡' |
resolv.conf.d/virtual-hosts
nameserver 127.0.0.1
dhclient-enter-hooks.d/virtual-hosts
prepend domain-name-servers 127.0.0.1;
dnsmasq.d/virtual-hosts
[core] | |
editor = vim | |
[alias] | |
s = status | |
st = status | |
ci = commit | |
b = branch | |
br = branch | |
ba = branch -a | |
co = checkout |
/* Preferences */ | |
{ | |
"auto_complete": false, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"detect_indentation": false, | |
"drag_text": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Andale Mono", |
gs(){ | |
if [ -z "$1" ]; then | |
echo "Missing search string" | |
else | |
git rev-list --all | ( | |
while read revision; do | |
git grep -F "$1" $revision | |
done | |
) | |
fi |