Usage
wget -qO- http://goo.gl/xkyeeW | bash
package main | |
import ( | |
"image" | |
"image/color" | |
"image/draw" | |
"image/png" | |
"log" | |
"math" | |
"os" |
package main | |
import ( | |
"math" | |
"math/cmplx" | |
) | |
func isPowerOfTwo(n int) bool { | |
for n&1 == 0 && n > 1 { | |
n >>= 1 |
wget -qO- http://goo.gl/xkyeeW | bash
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 | |
} |
# 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}'` |
## 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 |