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
Dec 7 09:58:35 ArchCat NetworkManager[695]: <info> Policy set 'Ash' (wlan0) as default for IPv4 routing and DNS. | |
Dec 7 09:58:40 ArchCat NetworkManager[695]: <info> VPN service 'pptp' disappeared | |
Dec 7 09:58:44 ArchCat NetworkManager[695]: <info> Starting VPN service 'pptp'... | |
Dec 7 09:58:44 ArchCat NetworkManager[695]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 11201 | |
Dec 7 09:58:44 ArchCat NetworkManager[695]: <info> VPN service 'pptp' appeared; activating connections | |
Dec 7 09:58:44 ArchCat NetworkManager[695]: <info> VPN plugin state changed: init (1) | |
Dec 7 09:58:52 ArchCat NetworkManager[695]: <info> VPN plugin state changed: starting (3) | |
Dec 7 09:58:52 ArchCat NetworkManager[695]: <info> VPN connection 'Gamebase' (Connect) reply received. | |
Dec 7 09:58:52 ArchCat pppd[11204]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded. | |
Dec 7 09:58:52 ArchCat pppd[11204]: pppd 2.4.5 started by root, uid 0 |
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
while read old new name; do | |
name=$(git log -1 --pretty=format:%aN $new) | |
branch=$(git rev-parse --symbolic --abbrev-ref $1) | |
if [ "$branch" == "master" ] | |
then | |
if [ "$name" != "Kevin Luo" ] | |
then | |
echo "Username $name has no premission to commit branch [$branch]!" | |
exit 43 | |
else |
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
#!/bin/sh | |
# place in {repo}/.git/hooks/update | |
# chmod +x update | |
name="$1" | |
old="$2" | |
new="$3" | |
user_name=$(git log -1 --pretty=format:%aN $new) | |
#branch=$(git rev-parse --symbolic --abbrev-ref $1) | |
branch=${name#refs/heads/} |
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
#!/bin/sh | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
if [ "$branch" == "master" ] || [ "$branch" == "qa" ] || [ "$branch" == "staging" ] | |
then | |
echo "You shouldn't commit to [$branch] directly." | |
exit 1 | |
fi |
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/php | |
<?php | |
// Set constants. | |
$php_pattern = "/\.(php|css)$/"; | |
$img_pattern = "/[^(_24bit)]\.(jpg|jpeg|gif|png)$/"; | |
$js_pattern = "/\.js$/"; | |
// Set default variables. | |
$return = 0; | |
$exit_status = 0; |
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
set errorformat=%m\ in\ %f\ on\ line\ %l | |
if !exists('*PHPsynCHK') | |
function! PHPsynCHK() | |
ccl | |
let winnum = winnr() | |
let linenum = line('.') | |
let colnum = col('.') | |
silent execute "%!php -l -f /dev/stdin | sed 's/\\/dev\\/stdin/".bufname("%")."/g' >.vimerr; cat" | |
silent cf .vimerr | |
cw |
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
function git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return; | |
echo "("${ref#refs/heads/}") "; | |
} | |
function git_since_last_commit { | |
now=`date +%s`; | |
last_commit=$(git log --pretty=format:%at -1 2> /dev/null) || return; | |
seconds_since_last_commit=$((now-last_commit)); | |
minutes_since_last_commit=$((seconds_since_last_commit/60)); |
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
Aur Targets (1): hime | |
Proceed with installation? [Y/n] y | |
Edit hime PKGBUILD with $EDITOR? [Y/n] n | |
Edit install with $EDITOR? [Y/n] n | |
==> Making package: hime next-1 (Wed Jan 4 12:29:45 CST 2012) | |
==> Checking runtime dependencies... | |
==> Checking buildtime dependencies... | |
==> Retrieving Sources... | |
-> Found master |
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
--- configure 2011-12-20 18:05:24.000000000 -0800 | |
+++ configure 2011-12-21 02:51:54.634572998 -0800 | |
@@ -253,7 +253,7 @@ | |
# --- QT4 START --- | |
QT4_IM='N' | |
-QT4_IM_DIR=/usr/$LIB/qt4/plugins/inputmethods | |
+QT4_IM_DIR=/usr/$LIB/qt/plugins/inputmethods | |
echo "testing if you have qt4 support" | |
pkg-config --libs QtCore QtGui > /dev/null 2> /dev/null |
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
#!/bin/bash | |
export APP_INCLUDE=resque/require.php | |
export QUEUE=* | |
export COUNT=1 | |
export VVERBOSE=1 # for debugging | |
export REDIS_BACKEND=localhost:6379 | |
. /etc/rc.d/init.d/functions | |
start() { | |
/usr/bin/php ../lib/sdk/php-resque/resque.php |