host kernel version: 3.16.36-1+deb8u2
target kernel version: 4.9-rc5
| !function () { | |
| var global = this; | |
| var old_eval = global.eval; | |
| var old_const = global.Function.prototype.constructor; | |
| global.Function.prototype.constructor = function (code) { | |
| console.log('Function Constructor: ' + code); | |
| return old_const(code); | |
| }; | |
| global.eval = function (code) { | |
| console.log('EVIL: ' + code); |
Add Add RethinkDB key
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
Install packages
sudo apt-get update && sudo apt-get install -y git nodejs nodejs-legacy npm rethinkdb android-tools-adb python autoconf automake libtool build-essential ninja-build libzmq3-dev libprotobuf-dev git graphicsmagick yasm stow
| package main | |
| import ( | |
| "bytes" | |
| "crypto/sha256" | |
| "crypto/tls" | |
| "crypto/x509" | |
| "log" | |
| "net" | |
| "net/http" |
| export CC='gcc -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon' | |
| export CXX='g++ -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon' | |
| ./configure --without-snapshot | |
| make -j4 | |
| sudo make install |
| #!/bin/bash | |
| # | |
| # rotate_desktop.sh | |
| # | |
| # Rotates modern Linux desktop screen and input devices to match. Handy for | |
| # convertible notebooks. Call this script from panel launchers, keyboard | |
| # shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
| # | |
| # Using transformation matrix bits taken from: | |
| # https://wiki.ubuntu.com/X/InputCoordinateTransformation |
| /* | |
| UPDATE July 2016 , moved and updated to here: https://github.com/Sumbera/gLayers.Leaflet | |
| Generic Canvas Overlay for leaflet, | |
| Stanislav Sumbera, April , 2014 | |
| - added userDrawFunc that is called when Canvas need to be redrawn | |
| - added few useful params fro userDrawFunc callback | |
| - fixed resize map bug | |
| inspired & portions taken from : https://github.com/Leaflet/Leaflet.heat |
| package main | |
| import ( | |
| "fmt" | |
| "syscall" | |
| ) | |
| type DiskStatus struct { | |
| All uint64 `json:"all"` | |
| Used uint64 `json:"used"` |
| /* | |
| * 這是神人大大剛剛發的JS | |
| * 我稍微分析了一下 | |
| * 請各位不要幹這種無腦的事情 | |
| * 還好他很 ______ 的只會讓你追蹤他,按他讚,Tag更多好友中標 | |
| * 如果今天神人大大是真正的Hacker.... | |
| * 他可以偷走你的個人資料,對你的帳號做各種奇怪的事情 | |
| * Ex:對你的好友發送詐騙訊息,把你加入奇怪的社團 | |
| * 在瀏覽器內執行來路不明的 JavaScript 是非常危險的... | |
| */ |
July 30, 2013
The LPC1114FN28 is an exciting piece of hardware--a 32-bit ARM Cortex-M0 micro controller capable of 50MHz operation in a DIP-28 package. Unfortunately, getting your development environment set up on a Mac can be confusing.
You'll need the following: