Skip to content

Instantly share code, notes, and snippets.

View s0nlxaftrsh0ck's full-sized avatar

s0nlx s0nlxaftrsh0ck

View GitHub Profile
@defensem3ch
defensem3ch / concat.py
Last active January 28, 2022 02:42
Concatenate wav files into one evenly-spaced wav file (128-file limit)
# Concatenate wav files into one evenly spaced wav file
# Requires sox and PySox https://github.com/rabitt/pysox
# License: Public domain
import sox, os
def combine_files(folder, files, out_filename, sample_rate, channels, bit_depth):
combine = sox.Combiner()
combine.convert(sample_rate, channels, bit_depth)
out_files = [f"{folder}/{file}" for file in files]
@defensem3ch
defensem3ch / bgb-tv.sh
Created January 4, 2021 15:38
BGB-TV Bash FFmpeg script to generate CRT-stylized output from raw AVI and WAV files from BGB
#!/bin/bash
# A collection of FFmpeg filterchains which can be used to create a stylised
# 'CRT screen' effect on given input, specialized for raw AVI and WAV output
# from BGB Gameboy emulator.
#
# Includes basic demonstration FFmpeg command which takes "$1" input
# of video and audio files without extensions
#
# Requires:
@somazx
somazx / scraper.js
Last active April 15, 2023 16:45
Humble Bundle Unredeemed Keys Scraper
/*
Purpose: easily obtain a list of your humble bundle games that haven't been redeemed.
Instructions:
1) Log into Humble Bundle as usual.
2) Navigate to https://www.humblebundle.com/home/keys
3) Open browser console and run the following script in the console
Script will dump to console the scraped list of all your unredeemed game keys.
@Pulimet
Pulimet / AdbCommands
Last active April 26, 2025 13:51
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@leeramsay
leeramsay / PSADT-Cheatsheet.ps1
Last active April 17, 2025 04:54
PSADT snippits/cheatsheet
## Commonly used PSADT env variables
$envCommonDesktop # C:\Users\Public\Desktop
$envCommonStartMenuPrograms # C:\ProgramData\Microsoft\Windows\Start Menu\Programs
$envProgramFiles # C:\Program Files
$envProgramFilesX86 # C:\Program Files (x86)
$envProgramData # c:\ProgramData
$envUserDesktop # c:\Users\{user currently logged in}\Desktop
$envUserStartMenuPrograms # c:\Users\{user currently logged in}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
$envSystemDrive # c:
$envWinDir # c:\windows
# on mac: brew install tree
# on linux: yum install tree
## the XML output is 5 directories deep and filtering any folder name with "tmp" in it
tree -d -L 5 -X -I tmp /Users/karl/Dropbox/CodeNinja/GitHub | sed 's/directory/node/g'| sed 's/name/TEXT/g' | sed 's/tree/map/g' | sed '$d' | sed '$d' | sed '$d'| sed "1d" | sed 's/report/\/map/g' | sed 's/<map>/<map version="1.0.1">/g' > /Users/karl/Dropbox/CodeNinja/GitHub/Gitmap.mm
## to filter multiple folders do the following
tree -L 7 -I "tmp|node_modules|bower_components"