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 | |
set -e | |
# This script creates a patched boot.img with KernelSU GKI kernel and cmdline tweaks | |
SCRIPT_PATH="$(dirname "$(realpath -s "$0")")" | |
MAGISKBOOT="$SCRIPT_PATH"/magiskboot | |
MAGISK_VER="v26.1" # used for downloading magiskboot, newer versions print "unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive)" warning(?) | |
ANYKERNEL_FILE_NAME="CHANGE_ME" # for downloading from the latest KernelSU github release, e.g. "AnyKernel3-android13-5.10.157_2023-03.zip" |
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
// Even with a subscription, videos are saved online only for 180 days. | |
// Downloading videos manually is a pain since you can only download 150 at a time, and 'Select Multiple' only has up to 'First 150'. | |
// Tried API, but only gave last 100 videos: https://github.com/vogler/ring-video-downloader | |
const b = 150; // videos to download at a a time | |
const sleep = s => new Promise(r => setTimeout(r, s*1000)); | |
// 1. Go to https://account.ring.com/account/activity-history | |
// 2. Click button 'Manage'. | |
// 3. Scroll down in the event list to load as many events as you want. |
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
// .stglobalignore | |
// These prevent SyncThing from trying to sync data that's locked, constantly changing, going to be thrown out, unimportant, etc. | |
// Lots of conflicts/issues disappeared using these ignores, but do check to prevent major disappointment! | |
// *.log and *cache* are in there, just so you know.. but firefox' startupCache and offlineCache will be synced. | |
// Ignores are case sensitive. | |
// Put both .stignore and this .stglobalignore in the root of your sync folder(s) (where .stfolder resides) | |
$RECYCLE.BIN | |
$WINDOWS.~BT |
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
<?php | |
/** | |
* Get UUID from Username | |
* | |
* @param string $username | |
* @return string|bool UUID (without dashes) on success, false on failure | |
*/ | |
function username_to_uuid($username) { | |
$profile = username_to_profile($username); |
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
#!/usr/bin/env python | |
#coding: utf-8 | |
import os,socket,threading,time | |
#import traceback | |
import sys | |
#sys.setdefaultencoding('utf8') | |
#allow_delete = False | |
allow_delete = 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
#!/usr/bin/env python2 | |
# coding: utf-8 | |
import os,socket,threading,time | |
#import traceback | |
allow_delete = False | |
local_ip = socket.gethostbyname(socket.gethostname()) | |
local_port = 8888 | |
currdir=os.path.abspath('.') |