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
@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 / large.txt
Last active December 16, 2016 20:24 — forked from maxguzenski/redis-elasticache-benchmark.txt
redis-benchmark on Elasticache instancies
//
// m2.xlarge | vcpu: 2 | memory: 16.7
//
PING_INLINE: 30674.85 requests per second
PING_BULK: 30674.85 requests per second
SET: 30395.14 requests per second
GET: 30674.85 requests per second
INCR: 30959.75 requests per second
LPUSH: 31250.00 requests per second
LPOP: 30030.03 requests per second
@voxxit
voxxit / truthy.rb
Created February 4, 2016 19:05 — forked from mmcclimon/truthy.rb
Port Perl's truthy values to Ruby.
#!/usr/bin/env ruby
class Object
# The following are falsy: false, nil, 0, "", and empty arrays/hashes.
# Anything else falls is truthy. This emulates Perl's truthiness.
def truthy?
if self.nil?
return false
elsif self.is_a? Fixnum
return self != 0
#!/bin/sh
#
# Downloads and installs the startssl CA certs into the global Java keystore
# on Alpine Linux.
#
# Check if JAVA_HOME is set
[ "$JAVA_HOME" = "" ] && echo "ERROR: JAVA_HOME must be set" && exit 1
# Check if cacerts file is present
@voxxit
voxxit / Dockerfile
Last active August 29, 2015 14:08 — forked from fairchild/Dockerfile
basic dockerfile for apt-cacher-ng
FROM debian:jessie
MAINTAINER j@srv.im
EXPOSE 3142
VOLUME [ "/var/cache/apt-cacher-ng" ]
RUN apt-get update \
&& apt-get install -y apt-cacher-ng \