Skip to content

Instantly share code, notes, and snippets.

View DavidBerdik's full-sized avatar
🔍
I'm actively searching for a new job. Reach out and let's talk!

David Berdik DavidBerdik

🔍
I'm actively searching for a new job. Reach out and let's talk!
  • To Be Determined
  • Pittsburgh, PA, USA
  • 20:40 (UTC -04:00)
View GitHub Profile
@skrimix
skrimix / pixel_kernelsu_patch.sh
Last active March 23, 2024 07:52
boot.img repack script for KernelSU. Supports extracting boot.img from factory and OTA images
#!/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"
@vogler
vogler / ring-download-all-videos.js
Last active June 30, 2025 12:15
Download all Videos from Ring Event History website
// 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.
@jult
jult / .stglobalignore
Last active May 25, 2025 14:27
syncthing ignore file(s) .stglobalignore and .stignore
// .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
@MineTheCube
MineTheCube / mc-api.php
Last active June 11, 2024 14:32
PHP functions to convert UUID to/from Minecraft username
<?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);
@risc987
risc987 / ftpserver.py
Last active June 6, 2020 00:54 — forked from scturtle/ftpserver.py
Support python3, fix local ip bug, chroot bug.
#!/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
@scturtle
scturtle / ftpserver.py
Created June 20, 2011 16:03
simple ftp server by python
#!/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('.')