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
-- Dict Action for QuickSilver | |
-- | |
-- Created by Summer Wang | |
-- Copyright (c) 2010 Summic, inc. All rights reserved. | |
-- | |
using terms from application "Quicksilver" | |
on process text keyword | |
if keyword = "" then |
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
" Summer's Configuration file for vim based on hongbo's share | |
" Email:[email protected] | |
" Blog: http://summic.com | |
set modelines=0 " CVE-2007-2438 | |
" Normally we use vim-extensions. If you want true vi-compatibility | |
" remove change the following statements | |
set nocompatible " Use Vim defaults instead of 100% vi compatibility | |
set backspace=2 " more powerful backspacing |
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 | |
# | |
# ======================= | |
# Snow Leopard 创建虚拟主机脚本 | |
# Written by Summer Wang <[email protected]> | |
# Blog: http://summic.com | |
# Created: feb 21 2010 | |
# ======================= | |
function make_web_dir |
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
alias add_all="svn st | grep '^\?' | awk '{print \$2}' | xargs svn add" | |
alias rm_all="svn st | grep '^\!' | awk '{print \$2}' | xargs svn rm" |
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 | |
/* | |
* 图片上传处理 | |
* todo: 防止post大量图片攻击 | |
*/ | |
ini_set('gd.jpeg_ignore_warning', 1); | |
$config=array(); |
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 | |
//日记操作类 | |
class commentModel{ | |
function __construct(){ | |
global $db,$user,$IN; | |
$this->db = $db; | |
$this->user = $user; | |
$this->input = $IN; |
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 | |
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"; |
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
upstream tumblr { | |
server 72.32.231.8:80; | |
} | |
server { | |
listen 80; | |
server_name jyorr.com; | |
access_log /var/log/nginx/jyorr.access.log; |
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 | |
######################################################################## | |
# release.sh | |
# | |
# - makes a release of a xcode project compatible with Sparkle | |
# - makes the release in the diectory from which it were executed | |
# | |
######################################################################## | |
# configuration |
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
view: | |
<input name="data[datetime][]" value=""> | |
<input name="data[address][]" value=""> | |
Model | |
<?php | |
function add($data,$datainfo){ | |
if ($this->db->insert($this->table_name, $data)) { | |
$oid = $this->db->insert_id(); |
OlderNewer