This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RH_RF95.h> | |
#define RF95_CS 10 | |
#define RF95_INT 2 | |
#define RF95_RST 9 | |
#define RF95_FREQ 915.0 | |
RH_RF95 rf95(RF95_CS, RF95_INT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep | |
try: | |
from twitter import Api | |
except: | |
print('Requires python-twitter: pip install python-twitter') | |
exit(1) | |
api = Api( | |
consumer_key='...', | |
consumer_secret='...', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <esp32cam.h> | |
#include "FS.h" | |
#include "SD_MMC.h" | |
#include "WiFi.h" | |
// Current image number (per folder) | |
uint32_t image; | |
// Current folder number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
from twitter import Api | |
except: | |
print('Requires python-twitter: pip install python-twitter') | |
exit(1) | |
api = Api( | |
consumer_key='...', | |
consumer_secret='...', | |
access_token_key='...', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// After calling these methods you can write them | |
// to the LoRa module using: [RH_RF95 instance].setModemRegisters(&modem) | |
// Defaults: | |
// Bw = 125 kHz | |
// Cr = 4/5 | |
// Sf = 128chips/symbol | |
// CRC on | |
RH_RF95::ModemConfig modem = {0x72, 0x74, 0x00}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/wybiral/ipv4scan/pkg/scan" | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const i2c = new I2C(); | |
i2c.setup({sda:B9,scl:B8}); | |
const bme = require("BME680").connectI2C(i2c); | |
const wifi = require("Wifi"); | |
const thing = { | |
temperature: 0, | |
humidity: 0, | |
gas: 0, | |
pressure: 0, | |
description: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www.amazon.com | |
\r\n: 200 | |
\n\r: * | |
\n: 200 | |
\r: * | |
www.bing.com | |
\r\n: 200 | |
\n\r: * | |
\n: 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from socket import create_connection | |
from ssl import create_default_context | |
def run_test(addr, httpversion): | |
host, port = addr | |
ctx = create_default_context() | |
with create_connection(addr) as s: | |
with ctx.wrap_socket(s, server_hostname=host) as ss: | |
ss.send(b'GET /robots.txt %s\r\n' % httpversion.encode('utf8')) | |
ss.send(b'Host: %s\r\n' % host.encode('utf8')) |