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
| #!/bin/bash | |
| voice1=pluck | |
| notes1="C4,1.3 F4,1 D#4,0.1 C#4,0.1 C4,1.2 F4,0.9 D#4,0.1 C#4,0.1 C4,0.5 | |
| F4,0.5 F4,0.5 G#4,0.5 G4,0.135 G#4,0.135 G4,0.135 F4,0.135 Eb4,0.135 | |
| F4,0.135 G,4" | |
| notes2="G#3,1.3 G#3,1 A#3,0.1 A#3,0.1 G#3,1.2 C#4,0.9 A#3,0.1 A#3,0.1 G#3,0.5 | |
| G#3,0.5 C4,0.5 F4,0.5 D#4,0.135 D#4,0.135 Eb4,0.135 Eb4,0.135 Eb4,0.135 | |
| Eb4,0.135 Eb,4" |
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
| import esp32 | |
| from machine import Pin | |
| import time | |
| import select | |
| # rx = esp32.RMTRX(pin=Pin(14), num_symbols=64, min_ns=3100, max_ns=5000*1000, resolution_hz=1000000, \ | |
| # soft_min_ns=150*1000, soft_max_ns=1500*1000, soft_min_len=49, soft_max_len=57) | |
| rx = esp32.RMTRX(pin=Pin(14), num_symbols=64, min_ns=3100, max_ns=5000*1000, resolution_hz=1000000) | |
| rx.active(1) | |
| while True: |
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
| #!/bin/bash | |
| ffmpeg -loop 1 -i turuna.jpg -i turuna.wav -c:v libx264 -tune stillimage \ | |
| -c:a aac -b:a 192k -vf "scale='iw-mod(iw,2)':'ih-mod(ih,2)',format=yuv420p" \ | |
| -shortest -movflags +faststart turuna.mp4 |
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
| // module.paths.push('/usr/lib/node_modules'); | |
| const puppeteer = require('puppeteer'); | |
| let Timeout = require('await-timeout'); | |
| let url_base = process.argv[2]; | |
| let username = process.argv[3]; | |
| let password = process.argv[4]; | |
| (async () => { | |
| let get_internet_status = async (page) => { |