Skip to content

Instantly share code, notes, and snippets.

@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.

@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 / 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 / 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 / _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 / 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 / gcc compiler optimization for arm systems.md
Created February 18, 2021 18:20 — forked from fm4dd/gcc compiler optimization for arm systems.md
GCC compiler optimization for ARM-based systems

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

@BigSully
BigSully / compile nginx on macos
Created October 26, 2020 21:27
compile nginx on macos
OPTS=''
## nginx
curl -OL http://nginx.org/download/nginx-1.19.3.tar.gz
tar -xf nginx-*.tar.gz
## pcre
curl -OL https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
tar -xf pcre-*.tar.gz
OPTS="$OPTS --with-pcre=../pcre-8.44/"
@BigSully
BigSully / obfuscate.gradle
Last active September 9, 2020 16:25 — forked from lucacesari/obfuscate.gradle
Obfuscate a jar with Gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.sf.proguard:proguard-gradle:5.3.3'
}
}
ext {
@BigSully
BigSully / Javascript ISO country code to country name conversion
Created July 24, 2020 13:03 — forked from maephisto/Javascript ISO country code to country name conversion
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function.
var isoCountries = {
'AF' : 'Afghanistan',
'AX' : 'Aland Islands',
'AL' : 'Albania',
'DZ' : 'Algeria',
'AS' : 'American Samoa',
'AD' : 'Andorra',
'AO' : 'Angola',
'AI' : 'Anguilla',
'AQ' : 'Antarctica',