Skip to content

Instantly share code, notes, and snippets.

@skygunner
skygunner / gist:a1a3dcae9cd28d784660239b7b2038bf
Created September 6, 2016 13:13
back up the bootloader of the TP LINK WR1043ND V2
root@DD-WRT:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "RedBoot"
mtd1: 007c0000 00010000 "linux"
mtd2: 00670000 00010000 "rootfs"
mtd3: 00060000 00010000 "ddwrt"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "board_config"
mtd6: 00800000 00010000 "fullflash"
mtd7: 00020000 00010000 "fullboot"
#! /bin/bash
#
# Usage: lstemp [ -w or -W]
# -w / -W: Wake up a sleeping drive to take it's temperature
#
adastat () { echo -n `camcontrol cmd $1 -a "E5 00 00 00 00 00 00 00 00 00 00 00" -r - | awk '{print $10 " " ; }'` " " ; }
echo
echo System Temperatures - `date`
cat /etc/version.freenas
uptime | awk '{ print "\nSystem Load:",$(NF-2),$(NF-1),$(NF),"\n" }'
@skygunner
skygunner / gist:a8ef75022e2370b0d8786ad362cc746a
Created November 18, 2016 13:36
backup and restore napp-it and comstar iSCSI settings/configrations
Basically,
- install OmniOS (via CD or USB Stick) and setup network manually
http://napp-it.org/downloads/omnios_en.html
Then install napp-it (at console as root)
- wget -O - www.napp-it.org/nappit | perl
Connect napp-it via browser, check if current BE is default or reboot
- http://ip:81
@skygunner
skygunner / E5 2600 V4 ES motherboards
Created December 2, 2016 12:45
E5 2600 V4 ES motherboards
POWERFUL SOCKET 2011-3 OCTO(8) CORE CPU
This is not a retail version
It's an ES version (Intel Confidential)
You are buying an E5-2609v3 ES (Not Retail)
No box
No heatsink/fan
[add_eventon_el cal_id="10" el_title="UPCOMING PERFORMANCES - 2016" pec="ft" number_of_months="4" fixed_year="2016" show_year="yes"]
[add_eventon_el cal_id="9" el_title="UPCOMING PERFORMANCES - 2017" pec="ft" fixed_date="01" fixed_month="01" fixed_year="2017" number_of_months="12" event_count="90" event_order="ASC"]
[add_eventon_el cal_id="8" el_title="Past Performances - 2016" pec="ft" fixed_date="01" fixed_month="01" fixed_year="2016" number_of_months="8" event_count="90" event_order="DESC"]
[add_eventon_el cal_id="7" el_title="Past Performances - 2015" pec="ft" fixed_date="01" fixed_month="01" fixed_year="2015" number_of_months="12" event_count="90" event_order="DESC" ]
[add_eventon_el cal_id="6" el_title="Past Performances - 2014" pec="ft" fixed_date="01" fixed_month="01" fixed_year="2014" number_of_months="12" event_count="80" event_order="DESC" ]
[add_eventon_el cal_id="5" el_title="Past Performances - 2013" pec="ft" fixed_date="01" fixed_month="01" fixed_year="2013" number_of_months="12" event_count="7
@skygunner
skygunner / gist:2a709e4836d4cd601e9ae646edcc5098
Last active March 7, 2018 12:29
D-Link DIR-865L Router Notes/flashing/CFE Mini/Reset Factory defaults
Dlink DIR-865L Router
Reset to factory default settings:
While is the router is powered on and running,
push a pin into the reset hole behind the router and keep pressing it for about 6 seconds, the LED turns off;
release the reset button and the router shall resetted.
Recovery/Upgrade:
1. Switch off the router
2. Push a pin into the reset hole behind the router (above the power switch), hold it in there and power on the router,
@skygunner
skygunner / gist:1ed7a0ecd3646c2dc3b0e0b61d9509f6
Created March 9, 2018 17:21
PogoPlug V3 Oxnas OX820 U-Boot 2015.10-tld-2 Debian rootfs 4.4.54-oxnas-tld-1
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/ox820-pogoplug-classic.dtb
ethact=dwmac.40400000
Quick start guide:
Game manager is Games->Aurora. XeXmenu/FreestyleDash're outdated, avoid them.
(If only have the 4GB, you only get Xexmenu, start from it and install other apps by following the videos. )
Q: Don't see any HDD? Pull out and push the HDD back in.
Q: Only few space on the HDD? That is the Free space not total capacity.
RGH console Kung-Fu video tutorials from 0 to master if you want to level up:
https://www.youtube.com/watch?v=eq-ky8T6kl4&list=PLn7ji3VsPy3FCoZ5E3zWz5tS5iWbysPZX
中英文清单:
0001 – Legend of Zelda, The- Breath of the Wild (World) (En,Ja,Fr,De,Es,It,Nl,Ru) 塞尔达传说 旷野之息
0002 – Mario Kart 8 Deluxe(World) (En,Ja,Fr,De,Es,It,Nl,Pt,Ru) 马里奥赛车8豪华版
0003 – ARMS (World)(En,Ja,Fr,De,Es,It,Nl,Ru) 神臂斗士
0004 – Has-Been Heroes(World) (En,Fr,De,Es,It) 过气英雄
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
https://raw.githubusercontent.com/CHEF-KOCH/CKs-FilterList-Mirror/master/Anti-Corp/hosts/NSABlocklist.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/adaway.org/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/adblock-nocoin-list/list.txt