wget -qO- http://goo.gl/xkyeeW | bash
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
package main | |
import ( | |
"image" | |
"image/color" | |
"image/draw" | |
"image/png" | |
"log" | |
"math" | |
"os" |
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
package main | |
import ( | |
"math" | |
"math/cmplx" | |
) | |
func isPowerOfTwo(n int) bool { | |
for n&1 == 0 && n > 1 { | |
n >>= 1 |
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
menuentry "Android-x86" { | |
savedefault | |
set root='(hd0,3)' | |
linux /android-4.0-RC2/kernel quiet root=/dev/ram0 androidboot.hardware=asus_laptop acpi_sleep=s3_bios,s3_mode SRC=/android-4.0-RC2 | |
initrd /android-4.0-RC2/initrd.img | |
} |
This project has moved to https://github.com/zhaostu/chromium-os-touchpad.
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
# Remove all the packages with residual configuration. | |
# http://stuzhao.blogspot.com/2012/07/removing-all-residual-config-packages.html | |
sudo apt-get remove --purge `dpkg -l | grep '^rc' | awk '{print $2}'` |
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
## Note: This is only tested in the latest Ubuntu distributions. | |
## Please make sure packages to be removed are correct. | |
## http://stuzhao.blogspot.com/2012/10/remove-old-linux-kernels-in-ubuntu.html | |
dpkg -l | awk '{print $2}' | grep "linux-\(image\|headers\)-[0-9]" | grep -v `uname -r | sed s/-generic//` | xargs sudo apt-get purge -y |