View readme
Set the default INPUT policy to ACCEPT: Edit /etc/default/ufw and set:
DEFAULT_INPUT_POLICY="ACCEPT"
Append a drop-all rule to the INPUT chain: Edit /etc/ufw/after.rules, add this line just before the final COMMIT line:
-A ufw-reject-input -j DROP
Disable UFW logging (this seems to cause issuses with Scaleway's default kernel):
ufw logging off
Enable UFW (don't forget to allow SSH traffic):
View gist:7a02af49604da91c5e3605b08b2872ec
https://community.online.net/t/enable-ufw-in-debian-or-ubuntu-results-in-lock-out/2118/2
Set the default INPUT policy to ACCEPT: Edit /etc/default/ufw and set:
DEFAULT_INPUT_POLICY="ACCEPT"
Append a drop-all rule to the INPUT chain: Edit /etc/ufw/after.rules, add this line just before the final COMMIT line:
-A ufw-reject-input -j DROP
Disable UFW logging (this seems to cause issuses with Scaleway's default kernel):
ufw logging off
View keybase.md

Keybase proof

I hereby claim:

  • I am georgkreimer on github.
  • I am gkreimer (https://keybase.io/gkreimer) on keybase.
  • I have a public key whose fingerprint is 694E F469 7AEE CC8B 4542 B9EC E206 F2B1 8054 0C10

To claim this, I am signing this object:

View oauth.js
import axios from 'axios';
// You can use any cookie library or whatever
// library to access your client storage.
import cookie from 'cookie-machine';
axios.interceptors.request.use(function(config) {
const token = cookie.get(__TOKEN_KEY__);
if ( token != null ) {
config.headers.Authorization = `Bearer ${token}`;
View unattended-mac
crontab -e
*/33 * * * * say -v whisper "I am watching you"
*/44 * * * * say -v whisper "I know what you did last summer"
*/56 * * * * say -v Bahh "I kill you"
View speedtester.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'chatterbot/dsl'
require 'speedtest'
# debug_mode
# remove this to get less output when running your bot
verbose
View esp32.md

Basic hookup

As I plan to make a custom breakout board I wanted to solder as few connections as possible. I was able to boot the device, with UART (out at least) soldering the following.

PIN NAME
0 GND
1 3V3
2 EN
View web-servers.md

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
View init.lua
wifi.setmode(wifi.STATION)
wifi.sta.config("creationix","noderocks")
wifi.sta.connect()
tmr.alarm(0, 1000, 1, function ()
local ip = wifi.sta.getip()
if ip then
tmr.stop(0)
print(ip)
dofile("websocket.lc")
dofile("main.lc")