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
// ==UserScript== | |
// @name YouTube playback rate | |
// @namespace https://lungers.com | |
// @version 0.1 | |
// @description Automatically set the playback on YouTube | |
// @author Andrew Lane | |
// @match https://www.youtube.com/watch?v=* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== |
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
set -euo pipefail | |
run_cmd() { | |
echo "$ $@" | |
"$@" | |
echo | |
} | |
run_cmd git checkout . | |
run_cmd git pull |
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
const puppeteer = require('puppeteer'); | |
const uuid = require('uuid'); | |
const sleep = ms => new Promise(r => setTimeout(r, ms)); | |
(async () => { | |
const browser = await puppeteer.launch({ headless: false }); | |
const page = await browser.newPage(); | |
const id = uuid.v4(); |
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
from telethon import TelegramClient, events | |
import asyncio | |
client = TelegramClient(name, api_id, api_hash) | |
client.start(phone_number) | |
@client.on(events.NewMessage(pattern='(?i)!type (.+)')) | |
async def typewriter(event): | |
sleep_time = 0.3 | |
text = event.pattern_match.group(1) |
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
{ | |
"hello_world": "Hello World", | |
"hi": "Hi {{name}}!" | |
} |