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 | |
# ================================================ | |
# Description: Ubuntu upgrade install logs | |
# Last Modified: Sun Mar 09, 2014 08:32PM | |
# Author: Allex Wang (allex.wxn@gmail.com) | |
# ================================================ | |
# check root | |
if [ "x$EUID" = "x" ] ; 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
ubuntu13.04安装搜狗输入法 | |
======================== | |
## 安装fcitx之前先卸载ibus | |
sudo apt-get purge ibus ibus-gtk ibus-gtk3 | |
sudo apt-get purge ibus-pinyin ibus-table python-ibus | |
killall ibus-daemon | |
rm -rf ~/.config/ibus |
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 | |
# | |
# Created by configure | |
'./configure' \ | |
'--prefix=/usr/local/php5' \ | |
'--mandir=/usr/local/php5/man' \ | |
# '--with-apxs2=/usr/local/apache2/bin/apxs' \ | |
'--enable-cli' \ | |
'--with-config-file-path=/usr/local/php5/etc' \ |
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 | |
# https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh | |
# Shell script to install your public key on a remote machine | |
# Takes the remote machine name as an argument. | |
# Obviously, the remote machine must accept password authentication, | |
# or one of the other keys in your ssh-agent, for this to work. | |
ID_FILE="${HOME}/.ssh/id_rsa.pub" |
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 | |
# Copyright (C) 2010-2013 Alibaba Group Holding Limited | |
ngx_soext='.so' | |
CC=cc | |
CFLAGS=' -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -DNDK_SET_VAR -fPIC' | |
CPP='cc -E' | |
LINK='$(CC) -rdynamic -fPIC -shared ' |
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 | |
# add trust to which user? | |
user=$1 | |
# user home | |
home=$(grep -E "^${user}:" /etc/passwd|cut -d: -f6) | |
# base dir | |
base=$2 | |
cd $base |
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
/** | |
* Simple storage warpper. | |
* @module storage | |
* @author Allex Wang (http://iallex.com) | |
*/ | |
(function (define) { | |
define('storage', function (require) { | |
var storage = null; | |
var localStorage = window.localStorage; |
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 | |
# ================================================ | |
# Description: killport.sh | |
# GistID: 8b399a93749703acd780 | |
# GistURL: https://gist.github.com/allex/8b399a93749703acd780 | |
# Last Modified: Sun Aug 10, 2014 12:22PM | |
# Author: Allex Wang (allex.wxn@gmail.com) | |
# ================================================ |
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 | |
# ================================================ | |
# Description: %TITLE% | |
# GistID: 7e3585ff55b75f5cfe7a | |
# Last Modified: Sun Jul 13, 2014 12:12PM | |
# Author: Allex Wang (allex.wxn@gmail.com) | |
# ================================================ | |
BASEDIR=`dirname $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
#!/bin/bash | |
# ================================================ | |
# Description: Deploy current project happy | |
# GistID: cb0c8000aca295926ffa | |
# GistURL: https://gist.github.com/allex/cb0c8000aca295926ffa | |
# Last Modified: Tue Aug 05, 2014 11:39AM | |
# Author: Allex Wang (allex.wxn@gmail.com) | |
# ================================================ |
OlderNewer