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 | |
for i in tar.gz tgz tar.bz2 zip rar | |
do | |
find -name "*.$i" -exec archive "{}" true \; | |
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 | |
b=`basename "$1"` | |
d=`pwd` | |
echo "[RUN] Check [$b] $d/$1" | |
if [ -f "$1" ]; then | |
if [ -s "$1.md5" ]; then | |
s=`cat "$1.md5" | awk '{print $1}'` |
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 | |
dd if=/dev/zero of=swap368.bin bs=1M count=128 | |
mkswap swap368.bin | |
swapon swap368.bin |
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 | |
my_target="/mnt/nfs/stan/archives" | |
b=`basename "$1"` | |
d=`pwd` | |
echo "[RUN] Check [$b] $d/$1" | |
if [ -f "$1" ]; then | |
if [ -e "$my_target/$b" ]; 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
#!/bin/sh | |
for i in tar.gz tgz tar.bz2 zip rar | |
do | |
find -size +10240k -name "*.$i" -exec archive2 "{}" true \; | |
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/sh | |
for i in tar.gz tgz tar.bz2 zip rar | |
do | |
find -size +10240k -name "*.$i" -exec make_md5.sh "{}" \; | |
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
alias s1="synclient TouchpadOff=1" | |
alias s0="synclient TouchpadOff=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
/** | |
* The HelloWorldApp class implements an application that | |
* simply prints "Hello World!" to standard output. | |
*/ | |
class HelloWorldApp { | |
public static void main(String[] args) { | |
System.out.println("Hello World!"); // Display the string. | |
changeCadence(10); | |
printStates(); | |
} |
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
tar -cpz `cat list` | curl -u username:password ftp://ftp.xxxxxx.com/xxxxxx-backup.tgz -T - | |
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/ash | |
buf="abi bionic bootable build cts dalvik development device docs external frameworks hardware libcore ndk out packages prebuilt sdk system" | |
for i in $buf | |
do | |
echo "pack android4.0_$i.tgz" | |
tar cvzf android4.0_$i.tgz $i | |
done |