Skip to content

Instantly share code, notes, and snippets.

View summic's full-sized avatar
🏠
Working from home

Allen summic

🏠
Working from home
View GitHub Profile
@summic
summic / gist:1979270
Created March 5, 2012 16:58 — forked from dcai/configure-cli.sh
confgiure of php 5.4 for OS X 10.7 Lion
'./configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/private/etc' '--with-apxs2=/usr/sbin/apxs' '--enable-cli' '--with-config-file-path=/etc' '--with-libxml-dir=/usr' '--with-openssl=/usr' '--with-kerberos=/usr' '--with-zlib=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--with-curl=/usr' '--enable-dba' '--with-ndbm=/usr' '--enable-exif' '--enable-ftp' '--with-gd' '--with-freetype-dir=/usr/X11/' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/X11/' '--enable-gd-native-ttf' '--with-icu-dir=/usr' '--with-iodbc=/usr' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--with-libedit=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--without-pear' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-readline=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-tidy' '--enable-wddx' '--with-xmlrpc' '--wit
@summic
summic / gist:1321925
Created October 28, 2011 09:11 — forked from anonymous/gist:887026
reverse proxy for tumblr
upstream tumblr {
server 72.32.231.8:80;
}
server {
listen 80;
server_name jyorr.com;
access_log /var/log/nginx/jyorr.access.log;
<?php
if (! isset($argv[1])) {
echo "enter a search term:\n";
echo 'php ' . __FILE__ . " <search_term>\n";
exit;
}
$term = urlencode($argv[1]);
$url = "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsSearch?limit=10&entity=software&term=$term";
@summic
summic / gist:537024
Created August 19, 2010 04:22 — forked from traviskroberts/gist:46569
SVN 批量添加、删除脚本
alias add_all="svn st | grep '^\?' | awk '{print \$2}' | xargs svn add"
alias rm_all="svn st | grep '^\!' | awk '{print \$2}' | xargs svn rm"