Skip to content

Instantly share code, notes, and snippets.

View voxxit's full-sized avatar

Josh Delsman voxxit

View GitHub Profile
@voxxit
voxxit / readme.md
Created September 22, 2022 22:23 — forked from cielavenir/readme.md
zoom sandbox-exec for macOS
  1. Download Zoom.pkg from https://zoom.us/download
  2. Extract it using https://www.timdoug.com/unpkg/
  3. Now you have Zoom/zoom.us.app
  4. Launch Zoom by zoom.sh Zoom/zoom.us.app/Contents/MacOS/zoom.us

caveats:

  • Zoom will fail to start meeting for the first time. Just launch again.
  • Zoom will tell that crash happened, but you should ignore it.
@voxxit
voxxit / hcaptcha.ts
Created September 12, 2022 19:05 — forked from prescience-data/hcaptcha.ts
HCaptcha Solver
import { IncomingMessage, RequestListener, ServerResponse } from "http"
import { createServer, Server } from "https"
import puppeteer, {
Browser,
BrowserLaunchArgumentOptions,
Protocol
} from "puppeteer-core"
import { Page } from "./types"
import Cookie = Protocol.Network.Cookie
---
apiVersion: v1
data:
kernel-monitor.json: |
{
"plugin": "kmsg",
"logPath": "/dev/kmsg",
"lookback": "5m",
"bufferSize": 10,
"source": "kernel-monitor",
@voxxit
voxxit / .zshrc
Last active November 15, 2024 02:11
How to keep your .bashrc / .zshrc free of secrets!
############## 1Password Stuff ###############
# Check for 1Password CLI, and install if necessary:
command -v op >&- || brew install --cask 1password-cli
# You can simply export the 1Password secret's deep link in
# place of any sensitive value held in an environment variable:
export JIRA_API_TOKEN="op://example_vault/JIRA_API_TOKEN/credential"
# To use this at runtime, use: `op run -- <app> ..args..`
@voxxit
voxxit / track-import.sh
Last active August 9, 2021 03:37
Script I use to automate my workflow of importing newly purchased/downloaded tracks from Beatport and elsewhere
#!/bin/bash
INPUT_FOLDER="${HOME}/Music/Unprocessed"
OUTPUT_FOLDER="${HOME}/Dropbox/Music/$(date +%Y-%m)"
filecount=$(find "$INPUT_FOLDER" \( -name "*mp3" -o -name "*aif*" -o -name "*wav" \) -type f -print | wc -l)
if [[ $filecount -lt 1 ]]; then
printf "\nNo files found in '%s'. Time to find new beats!\n" "$INPUT_FOLDER"
exit 0
fi
#!/bin/sh
#
# -- virtualdj-historian.sh --
# A helper script for proper OBS track IDs from Virtual DJ tracklist.txt
#
# USAGE:
#
# 1. Download to your home directory
# 2. chmod +x virtualdj-historian.sh
# 3. ./virtualdj-historian.sh
@voxxit
voxxit / curlt
Created July 19, 2018 22:55
Wrapper script for curl to publish timings as JSON
#!/bin/bash
#
# curl wrapper returning timing information.
#
# curl format adapted from
# http://josephscott.org/archives/2011/10/timing-details-with-curl/
#
# Example usage:
# $ curlt http://www.apple.com
# $ time curlt http://www.apple.com -v
@voxxit
voxxit / zt-authorize-node.sh
Created June 1, 2018 01:17
Short script to automatically register a new Kubernetes node with the ZeroTier One API
#!/bin/bash
set -e
[ -z ${ZT_API_TOKEN} ] && echo "Missing API token" && exit 1
[ -z ${ZT_NETWORK_ID} ] && echo "Missing network ID" && exit 1
which zerotier-cli # Check whether the zerotier-cli is installed...
if [ $? -ne 0 ]; then
@voxxit
voxxit / Dockerfile
Last active December 14, 2017 21:58 — forked from denilsonsa/README.md
FROM debian
COPY slow /usr/bin/
RUN apt-get update \
&& apt-get -y install --no-install-recommends kmod wget
CMD ["slow", "--help"]
@voxxit
voxxit / s3-rename-mass.rb
Created March 31, 2017 17:32
Rename files en masse on Amazon S3
require "aws-sdk"
s3 = Aws::S3::Client.new(region: ENV.fetch("region", "us-west-2"))
objects = []
start_after = nil
loop do
resp = s3.list_objects_v2(
bucket: ENV.fetch("bucket"),