Skip to content

Instantly share code, notes, and snippets.

@BigSully
BigSully / haproxy.cfg
Created March 15, 2021 12:13 — forked from techotaku/haproxy.cfg
HAProxy to Nginx (Web + V2Ray WebSocket) + OpenConnect + ShadowsocksR (TLS OBFS)
defaults
timeout connect 5s
timeout client 24h
timeout server 24h
global
log /dev/log local0
frontend ssl
log global
@BigSully
BigSully / _Instructions.md
Last active June 12, 2021 03:47 — forked from benmccallum/_Instructions.md
git pre-commit hook preventing large files

Usage

You can use in two ways.

  1. Directly as the pre-commit hook in your .git/hooks folder.

  2. With Husky by updating your package.json with:

"husky": {
@BigSully
BigSully / gist:d488f262733a592b89f8a1d410d27ddf
Last active October 30, 2022 06:23 — forked from lamw/gist:487c9ecb2dc7d043eec8
Automate silent installation of VMware Tools for Mac OS X
#!/bin/bash
# 1 = VMware Tools ISO is mounted from vSphere
# 2 = Download VMware Tools (assumes you can connect to internet)
INSTALL_METHOD=2
# Thanks to Rich Trouton for tip on Tools being available online
VMWARE_TOOLS_DOWNLOAD_URL=http://softwareupdate.vmware.com/cds/vmw-desktop/fusion/11.1.0/13668589/packages/com.vmware.fusion.tools.darwin.zip.tar
@BigSully
BigSully / Web Crypto API
Created November 8, 2022 15:02
AES CBC sample(execute it on chrome console to see the result)
(async () => {
/*
Get the encoded message, encrypt it and display a representation
of the ciphertext in the "Ciphertext" element.
*/
async function encrypt(key, plainText, iv) {
let encoded = new TextEncoder().encode(plainText);
@BigSully
BigSully / Final Cut Pro Trial DMG
Created December 13, 2022 06:44 — forked from b0gdanw/Final Cut Pro Trial DMG
Direct links for Final Cut Pro Trial DMGs
Links from https://www.apple.com/final-cut-pro/trial/
Release history https://en.wikipedia.org/wiki/Final_Cut_Pro_X#Release_history
Final Cut Pro 10.1.3
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-05296.20140814.VRR4r/FinalCutProTrial10.1.3.dmg
Final Cut Pro 10.1.4
https://secure-appldnld.apple.com/Final_Cut_Pro_X/031-02980.20141202.Jgt44/FinalCutProTrial10.1.4.dmg
Final Cut Pro 10.2
@BigSully
BigSully / ca.md
Created October 10, 2023 15:29 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.