Skip to content

Instantly share code, notes, and snippets.

https://gist.github.com/bhwebworks/7233529
wget https://drive.google.com/uc?id=0B3X9GlR6EmbnMHBMVWtKaEZXdDg -O drive #下載編譯好的檔案,並命為 drive
chmod +x drive #給予 drive 執行權限
mv drive /usr/local/bin/ #移動到 /usr/local/bin/
wget http://tpdb.speed2.hinet.net/test_400m.zip
drive upload -f 檔案名稱
@fuyuanli
fuyuanli / dmm.com
Last active March 28, 2024 11:52
dmm.com
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/";
@fuyuanli
fuyuanli / sources.list
Last active August 29, 2015 14:23
debian-sh4
#/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
#!/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~"
@fuyuanli
fuyuanli / gist:ad7c34dc56fa345099a7
Created June 28, 2015 04:51
網樂通鏡像官方 debian-ports
# 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
@fuyuanli
fuyuanli / uboot.sh
Last active August 29, 2015 14:24
uboot.sh for nextvod xbmc
# 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'
@fuyuanli
fuyuanli / putty.log
Created July 4, 2015 13:23
nextvod-pdk7105-215-xbmc-12.3-Frodo-20150209.tar.xz
=~=~=~=~=~=~=~=~=~=~=~= 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)