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 | |
apikey=$(git config user.asana-key) | |
if [ $apikey == '' ] ; then exit 0; fi | |
comment=$(git log --pretty=oneline -n1) | |
taskid_pattern='.*#([0-9]*).*' | |
if [[ $comment = ~$taskid_pattern ]]; then | |
taskid=${BASH_REMATCH[1]} | |
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
for i in `git diff-tree -r --name-only HEAD^ HEAD`; do curl -T "$i" ftp://example.com/$i --user username:password --ftp-create-dirs; done |
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
<?php | |
/**** Initialize Yii */ | |
require_once($_SERVER['DOCUMENT_ROOT'].'/path/to/yii/framework/yii.php'); | |
Yii::createWebApplication($_SERVER['DOCUMENT_ROOT'] . '/path/to/config/main.php'); | |
// ... | |
$product = Product::model()->findByPk(3); |
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
mysql -h host -u username -p password --default_character_set utf8 database < file.sql |
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
cp -a /mnt/sda8/john/. /mnt/sdb2/JOHN103 |
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 | |
# | |
# Date: Jan 26th 2012 | |
# Author: Colin R. | |
# Revisions: Jacob "Boom Shadow" Tirey (boomshadow.net) | |
# Fixperms script for ServInt | |
# | |
# Fixperms script for cPanel servers running suPHP or FastCGI. | |
# Written for ServInt.net | |
# Copyright (C) 2012 Colin R. |
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
s = status | |
a = add | |
co = checkout | |
cm = commit | |
unadd = reset HEAD | |
df = diff -w | |
ds = diff --staged | |
st = status -sb | |
amend = commit --amend -C HEAD | |
undo = reset --soft HEAD^ |
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
# (Below are the queries that generated these files, for my reference) | |
SELECT `247_response`. * , `247_contract`.`title` | |
FROM `247_response` | |
LEFT JOIN `247_contract` ON `247_response`.`contract_id` = `247_contract`.`contract_id` | |
ORDER BY `response_id` DESC | |
# ^ Survey Responses | |
SELECT `247_click`. * , `247_contract`.`title` |
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
// Original by C0D312 | |
// I added the single quote and curly brace to the regex. | |
// http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5174 | |
// | |
// Add the following to your user keybindings: | |
[ | |
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context": | |
[ | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)}'\"\\]]", "match_all": 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
varnishncsa -c -m "TxHeader:X-Varnish-Cache: HIT" | grep example.com |
OlderNewer