Skip to content

Instantly share code, notes, and snippets.

View simonas-dev's full-sized avatar

Simonas Sankauskas simonas-dev

View GitHub Profile
; multi-segment executable file template.
data segment
a DB 1
b DB 1
c DW 1
x DW 1, 2, 3
count = ($-x)/2
y DW count dup(0AAh)
err_msg DB 'Err', 0Dh, 0Ah, '$'
@simonas-dev
simonas-dev / .adb
Created December 30, 2016 12:02
Android Debug Bridge(adb) alias
function adbc () {
IP=`adb shell ifconfig wlan0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}'`
adb tcpip 5555
adb connect $IP
adb devices
}
function adbscr () {
echo "Shoot"
adb shell screencap -p /sdcard/screen.png
sudo apt-get -y update
sudo apt-get -y install git-core vim htop zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo apt-get -y install git mercurial make binutils bison gcc build-essential -y
curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | zsh
source /home/pi/.gvm/scripts/gvm
gvm install go1.4
echo Use Go 1.4
gvm use go1.4
#include <LiquidCrystal.h>
#include <OneWire.h>
#include <DallasTemperature.h>
/**
* Trigger Button
*/
const int buttonPin = 7;
/**
* Mode Button