Skip to content

Instantly share code, notes, and snippets.

@ScottyTM
ScottyTM / gist:ba449d956ef6a029354c2be7d466673f
Created January 17, 2020 01:00
If you want to reset a database in flask and recreate it from scratch
flask db stamp base
flask db upgrade
@ScottyTM
ScottyTM / dht.lua
Created April 19, 2017 00:38
Webserver on NodeMCU
-- based on http://www.beerandchips.net/2015/12/26/making-nodemcu-lua-esp8266-weather-station/
-- with modifications for float firmware and dht11, also it now close the connection after data was sent
PIN = 4 -- data pin, GPIO2
chipserial = node.chipid()
-- run the server
srv=net.createServer(net.TCP, 4)
print("Server created on " .. wifi.sta.getip())

Keybase proof

I hereby claim:

  • I am scottytm on github.
  • I am scottytm (https://keybase.io/scottytm) on keybase.
  • I have a public key ASBXopEr6JboGG7w8BuBvNghVYEMGfc2EUEFVpUEfjHgJQo

To claim this, I am signing this object:

TEst 123
@s_bergmann: "I love the community at #FrOSCon and the variety of topics it covers. This event is a fixture in my calendar since its inception ten years ago."
@afilina: "I came all the way from Canada and will definitely come again. I met many interesting people with whom I had intellectual conversations. The audience was very diverse: people had different backgrounds and points of view, which made this a great learning opportunity. I also enjoyed the friendly atmosphere and the parties."