Skip to content

Instantly share code, notes, and snippets.

View fasheng's full-sized avatar

fasheng

View GitHub Profile
@pjobson
pjobson / pike_it.md
Last active March 14, 2024 01:56
Asus Pike 2008 IT Mode Cross Flash

Flashing Asus 2008 PIKE to IT Mode

Used on an Asus Z8PE-D18 board with no EFI boot options. These instructions were written using Linux Mint to create the media, most distributions will work with little modification.

The PIKE 2008 is basically a LSI 9220-8i which you can flash with 9211-8i firmware. Flashing to IT mode allows you to have direct access to the disks to use btrfs or zfs or some kind of software RAID instead of the card's RAID.

Get Your SAS Address

There is a sticker on the back of your PIKE card which has 16 digits starting with 5000. Write this address down or take a picture of it. Note I put XXXXXXXXXXXX in this picture as these numbers are unique to the card. If your card does not have this sticker, instructions will be provided below.

@cyfdecyf
cyfdecyf / join-chinese.rb
Created December 18, 2011 09:12
Join consecutive Chinese lines into a single long line.
#!/usr/bin/env ruby
#encoding: UTF-8
# Requires ruby 1.9.x, and assumes UTF-8 encoding
class String
# The regular expression trick to match CJK characters comes from
# http://stackoverflow.com/a/4681577/306935
# For more info on the regex used here, refer to http://oniguruma.rubyforge.org/svn/Syntax.txt
# And for Unicode Character Categories http://www.fileformat.info/info/unicode/category/index.htm
@bramp
bramp / ucode.py
Created October 13, 2011 23:46
Prints some simple information about ucode firmwares such as those used by Intel Wifi cards
#!/usr/bin/python
# Prints some simple information about ucode firmwares
# such as those used by Intel Wifi cards
#
# Version 1.0 Jan 2011
# by Andrew Brampton
#
# Example
# ./ucode.py /lib/firmware/*.ucode
#
#!/usr/bin/perl
######################################################################
#
# File : split_bootimg.pl
# Author(s) : William Enck <enck@cse.psu.edu>
# Description : Split appart an Android boot image created
# with mkbootimg. The format can be found in
# android-src/system/core/mkbootimg/bootimg.h
#
# Thanks to alansj on xda-developers.com for