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
#!/bin/bash | |
BOOT_DIR=boot | |
ROOTFS_DIR=rootfs | |
EXPECTED_ARGS=0 | |
if [ $# == $EXPECTED_ARGS ]; then | |
echo "mkmmc-linux Usage:" | |
echo " mkmmc-linux <device>" |
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
#!/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' |
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
#!/bin/sh | |
# | |
# wget https://gist.githubusercontent.com/qoopooh/d4b9291627e82f5b992e49269a85d109/raw/install_linaro | |
# | |
### rico board | |
# make distclean | |
# make myir_ricoboard_defconfig | |
# make zImage dtbs | |
# |
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
#!/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 |
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
#! /usr/bin/env python | |
from __future__ import print_function | |
import can | |
import argparse | |
CAN_ID = '0x011' | |
MOTOR_INFO_PACKAGE = ('|', 0, '?') | |
COMM_CHECK_PACKAGE = ('B', 0, 'X') |
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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: readcan.sh | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Read can message | |
# Description: Listen message on can interface channel can0 |
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
#! /bin/sh | |
HOST=$1 | |
DATA="$2" | |
# post $HOST "$DATA" | |
function post { | |
curl -iX POST -H 'Content-Type: application/json' -d "$2" $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
#! /bin/sh | |
# | |
# This is macos script that capturescreen of android devices | |
# and save the png file on current directory | |
# | |
# You can add argument to set file name | |
# ex. adb-screen pic # output is pic.png | |
# | |
if [ $# -eq 0 ]; then |
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
#! /bin/sh | |
adb shell pm clear com.android.providers.telephony | |
#adb reboot # optional |
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
#! /bin/sh | |
# | |
# Check battery on macbook air 2017 | |
# | |
UNAME=$(uname) | |
if [ "$UNAME" = "Linux" ]; then | |
# find a battery |
OlderNewer