This file contains 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 <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
#include <WiFiClient.h> | |
#include <WiFiClientSecureBearSSL.h> | |
#include "DHT.h" | |
DHT dht2(2, DHT11); | |
const char* ssid = "ssid"; | |
const char* password = "xxxx"; |
This file contains 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 <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
#include <WiFiClient.h> | |
#include "DHT.h" | |
DHT dht2(2,DHT11); | |
const char* ssid = "ssid"; | |
const char* password = "xxxxxx"; | |
This file contains 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
/* | |
arduino_esp8266_wifi-client_web-server_pin_ctl.c | |
compiled on arduino 2.0.4 and using ESP-01 8pin module and a relay. | |
WiFi Client, HTTP Web Server, to control 2 pins and relays. | |
*/ | |
#include <ESP8266WiFi.h> |
This file contains 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
import urllib.request | |
import base64 | |
import json | |
import ssl | |
url="https://jmssub.net/" #change to your url | |
content = urllib.request.urlopen(url).read().strip() | |
servers_sub = base64.b64decode(content).decode() | |
output = [] |
This file contains 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
#!/bin/bash | |
ts=`date '+%Y%m%d-%H%M%S'` | |
fn=${ts}_pingresults.txt | |
function ping_for_awhile(){ | |
myip=`curl -s --insecure https://f.g77k.com/ip.php` | |
srvtime=`curl -s --insecure https://f.g77k.com/time.php` | |
date | tee $fn |
This file contains 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
import urllib.request | |
import requests | |
import lxml.html | |
import os | |
from urllib.parse import urlparse | |
target="http://libgen.rs/scimag/repository_torrent/" | |
allowed_exts=[".torrent"] | |
content = "" |
This file contains 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" | |
"strconv" | |
"sync" | |
"time" | |
) | |
This file contains 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
import sys | |
f = open("allowed_words.txt", "r") | |
#f = open("possible_words.txt", "r") | |
#"allowed_words.txt" from https://github.com/3b1b/videos/tree/master/_2022/wordle_data | |
content = f.read() | |
words = content.split("\n") | |
if len(sys.argv)!=4: |
This file contains 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
[Desktop Entry] | |
Name=Snapclient | |
Type=Application | |
Exec=/usr/bin/snapclient -h 192.168.2.222 | |
Terminal=false | |
#add to /etc/xdg/autostart/snapclient.desktop |
This file contains 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
import os | |
import glob | |
import subprocess | |
# set search path and glob for files | |
# here we want to look for csv files in the input directory | |
path = '.' | |
files = glob.glob(path + '/*.JPG') | |
def create_resize(f): |