This file contains hidden or 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
| https://gist.github.com/bhwebworks/7233529 |
This file contains hidden or 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
| wget https://drive.google.com/uc?id=0B3X9GlR6EmbnMHBMVWtKaEZXdDg -O drive #下載編譯好的檔案,並命為 drive | |
| chmod +x drive #給予 drive 執行權限 | |
| mv drive /usr/local/bin/ #移動到 /usr/local/bin/ |
This file contains hidden or 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
| wget http://tpdb.speed2.hinet.net/test_400m.zip |
This file contains hidden or 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
| drive upload -f 檔案名稱 |
This file contains hidden or 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
| document.cookie = "cklg=welcome;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/"; | |
| document.cookie = "cklg=welcome;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/netgame/"; | |
| document.cookie = "cklg=welcome;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/netgame_s/"; | |
| document.cookie = "ckcy=1;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/"; | |
| document.cookie = "ckcy=1;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/netgame/"; | |
| document.cookie = "ckcy=1;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/netgame_s/"; |
This file contains hidden or 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/apt/sources.list | |
| deb [arch=all] http://debian.csie.nctu.edu.tw/debian/ wheezy main contrib non-free | |
| deb-src http://debian.csie.nctu.edu.tw/debian/ wheezy main contrib non-free | |
| deb [arch=all] http://debian.csie.ntu.edu.tw/debian/ wheezy main contrib non-free | |
| deb-src http://debian.csie.ntu.edu.tw/debian/ wheezy main contrib non-free | |
| deb [arch=sh4] http://download.si-linux.co.jp/debian-sh/wheezy-sh4/ wheezy main contrib non-free | |
| deb-src http://download.si-linux.co.jp/debian-sh/wheezy-sh4/ wheezy main contrib non-free |
This file contains hidden or 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 | |
| #相關設定說明:https://goo.gl/K5ucXJ | |
| #這隻小腳本應該可以丟掉OpenShift內的Cron功能跑,不用自己開機監控:http://www.cystc.org/?p=2940&lang=zh-tw | |
| #判斷依據可以自己找適合的方法寫,如果是虛擬主機掛掉可能就不適合用Ping了,也可以用curl抓網頁字串是否存在來判斷存活 | |
| ping -c 1 -w 10 主機A > /dev/null 2>&1 | |
| if [ $? = 0 ] #判斷主機是否上線 | |
| then #主機A上線,OK | |
| echo "ServerA is live~" |
This file contains hidden or 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
| # 1. 安裝 apt-mirror。 | |
| apt-get install apt-mirror | |
| # 2. 編輯 apt-mirror 設定。 | |
| vi /etc/apt/mirror.list | |
| ############# config ################## | |
| set base_path /media/sdb1/debian-sh4 # 鏡像儲存位置,此處為外接硬碟。 | |
| # set mirror_path $base_path/mirror |
This file contains hidden or 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
| # uboot.sh - TWPDA UBOOT modification for setting boot parameters | |
| # Read TWPDA UBOOT logic http://www.twpda.com/2013/08/uboot-code.html | |
| # hush script syntax http://www.stlinux.com/u-boot/using | |
| # boot settings for sh4twbox install disk | |
| # * bootargs: root=8:1 means sda1, sda2 8:2, sdb1 8:17, sdb2 8:18 | |
| # * bootcmd: 0:1 first usb parition, 0:2 2nd usb parition | |
| setenv bootargs 'console=ttyAS0,115200 rootdelay=0 root=/dev/sda2 rootfstype=ext3 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:10:08:E2:12:06:BD phyaddr:0,watchdog:5000 mem=256M bigphysarea=2048' | |
| #setenv bootcmd 'usbcfg 0; usb start; usb info; usb part; ext2load usb 0:1 80000000 vmlinux.ub; bootm 80000000' |
This file contains hidden or 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
| =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.07.04 21:16:27 =~=~=~=~=~=~=~=~=~=~=~= | |
| Board: STx7105-PDK [32-bit mode] | |
| U-Boot 1.3.1 (Oct 6 2013 - 04:36:18) - stm23_0045 | |
| DRAM: 256 MiB | |
| SPI: ST M25P80 (1MiB) device (page=256,erase=4096) |