Install mercurial with homebrew.
brew install mercurial
Get hg-prompt
from Bitbucket.
hg clone http://bitbucket.org/sjl/hg-prompt/ ~/src
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the unicorn web server | |
# Description: starts unicorn |
bower | |
coffeelint | |
csslint | |
grunt | |
gulp | |
jshint | |
npm | |
uglify-js |
#!/bin/sh | |
#### | |
# Documentation | |
# http://docs.getpelican.com/en/3.4.0/importer.html#import | |
# https://wiki.archlinux.org/index.php/Haskell#Haskell_platform | |
#### | |
# =Setup | |
pyvenv ./env |
# | |
# Source | |
# http://apple.stackexchange.com/questions/146849/how-do-i-recompile-bash-to-avoid-the-remote-exploit-cve-2014-6271/146851#146851 | |
# | |
# Test for vulnerablity | |
# $ env x='() { :;}; echo vulnerable' bash -c 'echo hello' | |
# If you want to disable auto-imported functions, uncomment the following | |
# export ADD_IMPORT_FUNCTIONS_PATCH=YES |
# Source | |
# http://www.macgasm.net/2013/01/18/good-morning-your-mac-keeps-a-log-of-all-your-downloads/ | |
# http://lifehacker.com/your-mac-logs-everything-you-download-heres-how-to-cle-1658394180 | |
# SELECT | |
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' | |
# DELETE | |
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent' |
[beets] | |
directory: /Volumes/Music/ | |
library: ~/Music/MusicLibrary.blb | |
path_format: $artist/$year $album/$track $title | |
import_copy: yes | |
import_write: yes | |
import_delete: no | |
import_resume: ask | |
import_art: yes | |
import_quiet_fallback: skip |
#!/bin/sh | |
# =============================================== | |
# FreeBSD-10.2 server setup | |
# =============================================== | |
# Update | |
freebsd-update fetch | |
freebsd-update install |
{} |
-- | |
-- Reset auto increment | |
-- | |
ALTER SEQUENCE {table}_{column}_seq RESTART WITH 1; | |
-- | |
TRUNCATE TABLE table RESTART IDENTITY; |