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 | |
curDir=$(cd "$(dirname "$0")"; pwd); | |
arg=""; | |
until [ $# -eq 0 ] | |
do | |
opt=$1; | |
if [ "${opt/ /}" != "$opt" ]; then | |
arg="$arg \"$opt\""; | |
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
server { | |
listen 80; | |
server_name dl.cuoluo.me; | |
location / { | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://dl.dropbox.com/u/1812807/dl.cuoluo.me/index.html; | |
if ($request_method = POST) { |
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 | |
# Judge a user is logged on or not | |
# | |
user="$1" | |
if who | grep -w "$user">/dev/null | |
then | |
echo "$user is logged on " | |
else | |
echo "$user is NOT logged on" |
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
Tue Sep 25 20:35:21 | |
Tue Sep 25 20:35:21 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability. | |
Tue Sep 25 20:35:21 | |
Tue Sep 25 20:35:22 [initandlisten] MongoDB starting : pid=7596 port=27017 dbpath=/var/lib/mongodb 32-bit host=ftp | |
Tue Sep 25 20:35:22 [initandlisten] | |
Tue Sep 25 20:35:22 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data | |
Tue Sep 25 20:35:22 [initandlisten] ** see http://blog.mongodb.org/post/137788967/32-bit-limitations | |
Tue Sep 25 20:35:22 [initandlisten] ** with --journal, the limit is lower | |
Tue Sep 25 20:35:22 [initandlisten] | |
Tue Sep 25 20:35:22 [initandlisten] db version v2.2.0, pdfile version 4.5 |
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 | |
# author: koumm | |
# desc: auto vsftpd script | |
# date: 2010-07-30 | |
# version: v1.1 | |
# modify: | |
WEBROOT="/data1/htdocs/www.koumm.com" | |
FTP_PORT="3000" |
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
"amixer set Master playback 1+" | |
m:0x0 + c:123 | |
XF86AudioRaiseVolume | |
"amixer set Master playback 1-" | |
m:0x0 + c:122 | |
XF86AudioLowerVolume | |
"amixer set Master toggle" | |
m:0x0 + c:121 |
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
# | |
# /etc/inittab | |
# | |
# Runlevels: | |
# 0 Halt | |
# 1(S) Single-user | |
# 2 Not used | |
# 3 Multi-user | |
# 4 Not used |
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 | |
# | |
# ~/.xinitrc | |
# | |
# Executed by startx (run your window manager from here) | |
#eval 'dbus-launch --sh-syntax --exit-with-session' | |
if [ -d /etc/X11/xinit/xinitrc.d ]; then | |
for f in /etc/X11/xinit/xinitrc.d/*; do |
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
# Configuration file for locale-gen | |
# | |
# lists of locales that are to be generated by the locale-gen command. | |
# | |
# Each line is of the form: | |
# | |
# <locale> <charset> | |
# | |
# where <locale> is one of the locales given in /usr/share/i18n/locales | |
# and <charset> is one of the character sets listed in /usr/share/i18n/charmaps |
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
# | |
# /etc/rc.conf - configuration file for initscripts | |
# | |
# Most of rc.conf has been replaced by various other configuration | |
# files. See archlinux(7) for details. | |
# | |
# For more details on rc.conf see rc.conf(5). | |
# | |
DAEMONS=(syslog-ng dbus vboxdrv wicd !network crond slim ) |