Skip to content

Instantly share code, notes, and snippets.

View qoopooh's full-sized avatar

Phuchit Kanjanakhan qoopooh

View GitHub Profile
#!/bin/sh
#
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
sudo apt-get install -y build-essential git-core libncurses5-dev flex bison texinfo zip unzip zlib1g-dev
sudo apt-get install -y gettext gperf libsdl-dev libesd0-dev g++ xz-utils libwxgtk3.0-dev u-boot-tools
wget https://github.com/offensive-security/gcc-arm-linux-gnueabihf-4.7/archive/master.zip
#!/bin/sh
#
# wget https://gist.githubusercontent.com/qoopooh/d4b9291627e82f5b992e49269a85d109/raw/install_linaro
#
### rico board
# make distclean
# make myir_ricoboard_defconfig
# make zImage dtbs
#
#!/bin/sh
curl http://localhost:3000/cal?provider=true
curl http://localhost:3000/cal?provider=dtac
curl http://localhost:3000/cal?provider=ais
curl 'http://localhost:3000/cal?uid=3KKJo1FRhhVoJa3Q57YVjuhZI8D2&provider=ais'
#curl 'http://localhost:3000/cal?uid=3KKJo1FRhhVoJa3Q57YVjuhZI8D2&provider=true'
curl 'http://localhost:3000/cal?uid=3KKJo1FRhhVoJa3Q57YVjuhZI8D2&provider=dtac'
@qoopooh
qoopooh / mkmmc-linux.sh
Last active November 29, 2016 07:07
Force format
#!/bin/bash
BOOT_DIR=boot
ROOTFS_DIR=rootfs
EXPECTED_ARGS=0
if [ $# == $EXPECTED_ARGS ]; then
echo "mkmmc-linux Usage:"
echo " mkmmc-linux <device>"