Skip to content

Instantly share code, notes, and snippets.

View genevera's full-sized avatar

genevera (she/her) genevera

  • Queens, NY
View GitHub Profile
@genevera
genevera / termux
Last active May 16, 2021 17:53 — forked from rewida17/termux
Run termux env via eg adb shell
#!/data/data/com.termux/files/usr/bin/bash
#Based on https://github.com/termux/termux-app/issues/77
export PREFIX='/data/data/com.termux/files/usr'
export HOME='/data/data/com.termux/files/home'
export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib'
export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH"
export LANG='en_US.UTF-8'
export SHELL='/data/data/com.termux/files/usr/bin/bash'
export BIN='/data/data/com.termux/files/usr/bin'
export TERM=screen
@genevera
genevera / .skhdrc
Created March 23, 2021 22:01 — forked from armand1m/.skhdrc
⚙️ My yabai and skhd configuration files.
# open terminal
cmd - return : open -n -a kitty.app
# open chrome
cmd + shift - return : open -n -a "Google Chrome"
# moves focus between windows in the current focused display
alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
@genevera
genevera / mkappbundle6
Created July 31, 2021 16:58
Makes an app bundle for ardour 6
#!/bin/sh
PREFIX=$1
mkdir -p $PREFIX/Ardour6.app/Contents/MacOS
mkdir -p $PREFIX/Ardour6.app/Contents/Resources
sed -e "s?@ENV@??g" \
-e "s?@VERSION@?6?g" \
-e "s?@INFOSTRING@??g" \
-e "s?@IDSUFFIX@?Ardour6?g" \
-e "s?@BUNDLENAME@?Ardour6?g" \
-e "s?@EXECUTABLE@?Ardour6?g" < Info.plist.in > $PREFIX/Ardour6.app/Contents/Info.plist
@genevera
genevera / gist:85ce1aae4fcfe1951e3099ee9ff407f7
Last active June 11, 2022 10:07
ffplay split audio 3 ways with nullsinks and nullsrc video output
# now if i could figure out how to get audio to output....
# filters cobbled together from https://ffmpeg.org/ffmpeg-filters.html and
# https://amiaopensource.github.io/ffmpeg-artschool/scripts.html#audioviz
ffplay -f lavfi \
'amovie=/path/to/some.mp3,
asplit=3[a1][a2][a3];
[a1]
showcqt=fps=30:s=hd720
[out1];
@genevera
genevera / Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser).user.js Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser) by Md ubeadulla | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser)
// @namespace Hcaptcha Solver
// @version 10.0
// @description Hcaptcha Solver in Browser | Automatically solves Hcaptcha in browser
// @author Md ubeadulla
// @match https://*.hcaptcha.com/*hcaptcha-challenge*
// @match https://*.hcaptcha.com/*checkbox*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@genevera
genevera / sox_macos_device_name_length_fix.diff
Created September 17, 2022 19:24
Mirror of patch to sox for MacOS device name length shortening/truncation
From bf2afa54a7dec731832e487a546966be24ed74ae Mon Sep 17 00:00:00 2001
From: Eric Wong <[email protected]>
Date: Thu, 16 Jun 2016 02:38:00 +0000
Subject: coreaudio: fix device name truncation
Not tested by me.
Thanks to [email protected] on the sox-devel mailing list.
ref:
@genevera
genevera / allimg.js
Last active April 10, 2023 19:49
Download all images from a webpage using Chrome/Brave/Edge/Safari/Firefox console
// taken from Patrick Brosset's entry located at
// https://devtoolstips.org/tips/en/download-all-images
// hosting here for postierity/to help ppl who might not have the google-fu
// to find it
$$('img').forEach(async (img) => {
try {
const src = img.src;
// Fetch the image as a blob.
// ==UserScript==
// @name hCAPTCHA solver
// @namespace hCAPTCHA solver
// @version 1.0
// @description Automatically solves hCAPTCHAs in browser
// @author Abdul Rehman Sheikh - engageub
// @licence MIT
// @match *://*/*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@genevera
genevera / zmqshell3.py
Created December 28, 2023 03:58
FFMPEG's zmqshell.py except it works with python3
#!/usr/bin/env python3
###############################################################################
# you'll need to install pyzmq via `pip install pyzmq`
###############################################################################
import cmd
import sys
import zmq
@genevera
genevera / mkgif.sh
Created February 9, 2024 20:22
mkgif shell function
################################################################################
# makes a 15 fps gif of a video file of *any length* so be sure you trim first
################################################################################
function mkgif {
local -r _mov="${1}";
local -r _gif="${2:-${$(basename ${_mov})%%.*}}.gif";
palette="/tmp/palette.png"
filters="fps=15,scale=320:-1:flags=lanczos"