The bucket policy. Remember to replace sammeechward.xyz
with your bucket's name:
{
"Version": "2012-10-17",
"Statement": [
The bucket policy. Remember to replace sammeechward.xyz
with your bucket's name:
{
"Version": "2012-10-17",
"Statement": [
CREATE DATABASE bank;
USE bank;
CREATE TABLE accounts (
id integer PRIMARY KEY AUTO_INCREMENT,
`name` VARCHAR(255),
balance DECIMAL(10,2)
);
country= | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="wifi name" | |
psk="wifi password" | |
} |
country=CA | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="Lighthouse Labs" | |
psk="the password" | |
id_str="work" | |
} |
#!/bin/bash | |
# Make sure the NODE_MEDIA_PRIVATE_KEY environment variable is set | |
if [ -z ${NODE_MEDIA_PRIVATE_KEY+x} ]; then | |
echo "Make sure you set the NODE_MEDIA_PRIVATE_KEY is set"; | |
exit -1; | |
fi | |
PI_IP_ADDRESS="192.168.1.71" | |
SERVER_IP_ADDRESS="192.168.1.71" |
const sensor = require('node-dht-sensor'); | |
sensor.read(22, 4, function(err, temperature, humidity) { | |
if (err) { | |
console.log("AHHHHHHHH error", err); | |
return; | |
} | |
console.log('temp: ' + temperature.toFixed(1) + '°C, ' + 'humidity: ' + humidity.toFixed(1) + '%'); | |
}); |
class Banana { | |
constructor () { | |
this.ripeness = 0; | |
} | |
age() { | |
this.ripeness++; | |
} | |
report() { |
#!/bin/bash | |
# Based on https://somesquares.org/blog/2017/10/Raspberry-Pi-router/ | |
SSID="MY-NETWORK" | |
WPA_PASSPHRASE="MY-PASSPHRASE" | |
# Enable ssh | |
touch /ssh |