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 | |
| pidfile="daemon.pid" | |
| if [ ! -f $pidfile ]; then | |
| touch $pidfile | |
| fi | |
| kpid=$(<"$pidfile") | |
| if [ -n "${kpid}" -a -d "/proc/${kpid}" ]; then | |
| echo "Already running." | |
| if [ "$1" = "-r" ]; then | |
| echo "Restarting..." |
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
| {REPLACE "; layer XXX, Z = " "\n; BEGIN PAUSE\nG91 ; relative positioning\nG1 Z100 F5000 ; lift 100mm\nG1 E-200 F6000 ; retract filament out\nG90 ; absolute positioning\nG1 X20 Y20 F9000 ; move head to X20 Y20\nM0 ; pause print\n; END PAUSE\n\n; layer XXX, Z = "} |
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
| // ==UserScript== | |
| // @name FrenchTheComicbooks | |
| // @namespace aapo.rip | |
| // @version 0.0.14 | |
| // @description quake-fy the UI | |
| // @updateURL https://gist.github.com/shinmai/2ad51c136023f2965e7b298a0009da09/raw/french_the_comicbooks.user.js | |
| // @downloadURL https://gist.github.com/shinmai/2ad51c136023f2965e7b298a0009da09/raw/french_the_comicbooks.user.js | |
| // @author @shinmai | |
| // @match https://kissmanga.com/Manga/*/* | |
| // @match https://readcomiconline.to/Comic/*/* |
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
| // ==UserScript== | |
| // @name Unfuck Crunchyroll Login | |
| // @namespace http://aapo.rip/ | |
| // @version 0.1 | |
| // @description remove bogus password validation from Crunchyroll's login form | |
| // @author @shinmai | |
| // @match https://www.crunchyroll.com/login | |
| // @grant none | |
| // ==/UserScript== |
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
| let namedfields = (...fields) => { | |
| return (...arr) => { | |
| var obj = {}; | |
| fields.forEach((field, index) => { | |
| obj[field] = arr[index]; | |
| }); | |
| return obj; | |
| }; | |
| }; |
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 <stdio.h> | |
| #include <string.h> | |
| int main(int argc, char **argv) { | |
| if (argc != 3) { | |
| fprintf(stderr, "%s in.raw (signed 8-bit mono PCM, little-endian) out.4bi", argv[0]); | |
| return 1; | |
| } | |
| FILE *in = fopen(argv[1], "rb"), *out = fopen(argv[2], "wb"); |
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 047ba355193803d30b5308b4d25429c71c716e26 Mon Sep 17 00:00:00 2001 | |
| From: Aapo Saaristo <[email protected]> | |
| Date: Fri, 21 Jan 2022 14:27:31 +0200 | |
| Subject: [PATCH] Neopixel lightshow | |
| --- | |
| Marlin/Configuration_adv.h | 36 ++++++++++++++++++++ | |
| Marlin/src/MarlinCore.cpp | 10 ++++++ | |
| Marlin/src/feature/leds/leds.cpp | 7 ++++ | |
| Marlin/src/feature/leds/leds.h | 5 +++ |
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 delay = ms => {return new Promise(resolve => {setTimeout(() => {resolve(2)}, ms)})}, | |
| process = async () => { | |
| cryptobro = document.evaluate("//article[@data-testid='tweet']//div[contains(@style ,'#hex-hw-shapeclip-clipconfig')]/../../../../../../../..//*[@role ='button']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue | |
| while(null != cryptobro) { | |
| try { | |
| cryptobro.click() | |
| console.log("clicked") | |
| var d = await delay(150) | |
| bmi=document.evaluate("//*[@id='layers']//div[@role='menu']//div[@data-testid='block']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue | |
| if(!bmi.outerText.startsWith("Block ")) continue |
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
| twitter.com##:xpath(//article[@data-testid="tweet"]//div[contains(@style,'#hex-hw-shapeclip-clipconfig')]/../../../../../../../../../../../../../../..) |