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
tom2cjp({"msg": 'xx', "items": [ | |
{ | |
"label": "Pedro", | |
"value": "21862103@N02" | |
}, | |
{ | |
"label": "Happy Furry Weekend...", | |
"value": "92476579@N00" |
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
import android.content.Context; | |
import android.media.MediaPlayer; | |
import android.net.Uri; | |
public class AudioClip { | |
private final static String TAG = "AudioClip"; | |
private String name; | |
private MediaPlayer mPlayer; | |
protected boolean mLoop; | |
protected boolean mPlaying; |
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
MAX=30 | |
for (( i = 10; i < MAX ; i ++ )) | |
do | |
pass=`openssl rand 9 -base64` | |
echo "vpn${i} pptpd $pass *" | |
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
#!/bin/bash | |
############################################################ | |
# Description: pptpd vpn installation script for debian.#### | |
# Author: Netexr #### | |
# Date: 2011-02-24 #### | |
############################################################ | |
# | |
# Install pptpd | |
apt-get remove -y --purge pptpd |
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 | |
sudo apt-get -y install dialog | |
DIALOG=${DIALOG=dialog} | |
tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$ | |
trap "rm -f $tempfile" 0 1 2 5 15 | |
$DIALOG --backtitle "请选择您要安装的选项" \ | |
--title "专业系统安装" --clear \ |
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 | |
read -p "install ruby enterprise_1.8.7 " | |
[ "$REPLY" == "y" ] && wget http://rubyforge.org/frs/download.php/68718/ruby-enterprise_1.8.7-2010.01_i386.deb -O /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb && sudo dpkg -i | |
read -p "apt-get update " | |
[ "$REPLY" == "y" ] && sudo apt-get update && sudo apt-get upgrade | |
read -p "Remove /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb (y/n)?" | |
[ "$REPLY" == "y" ] && rm /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb |
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 | |
read -p "install ruby enterprise_1.8.7 " | |
[ "$REPLY" == "y" ] && wget http://rubyforge.org/frs/download.php/68718/ruby-enterprise_1.8.7-2010.01_i386.deb -O /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb && sudo dpkg -i | |
read -p "apt-get update " | |
[ "$REPLY" == "y" ] && sudo apt-get update && sudo apt-get upgrade | |
read -p "Remove /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb (y/n)?" | |
[ "$REPLY" == "y" ] && rm /tmp/ruby-enterprise_1.8.7-2010.01_i386.deb |