Skip to content

Instantly share code, notes, and snippets.

@sovereignstack
sovereignstack / Install ESP_ROTS_SDK
Last active November 25, 2018 17:59
Things to install before trying to setup ESP32 tool chain.
Had to install these on fresh installation of Ubuntu 16.04.5 LTS
sudo apt-get update
sudo apt-get install -y git make ncurses-dev flex bison gperf python-pip
sudo pip install pyserial --upgrade
gedit ~/.profile
Add this line to .profile file
export IDF_PATH=~/esp/ESP8266_RTOS_SDK
@sovereignstack
sovereignstack / pgAgent daemon
Last active January 29, 2017 08:11 — forked from ekho/pgAgent daemon
pgAgent daemon
http://www.ekho.name/2012/03/pgagent-debianubuntu.html
Tested on Ubuntu 16.04
1. Place file "pgagent" (script given below) at /etc/init.d/pgagent
2. Place file "pgagent.conf" at /etc/pgagent.conf
3. sudo chmod 755 /etc/init.d/pgagent
4. sudo update-rc.d pgagent defaults (run this every time after you update the script)
5. sudo service pgagent start
@sovereignstack
sovereignstack / 0_reuse_code.js
Created October 18, 2015 17:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console