Skip to content

Instantly share code, notes, and snippets.

@HtwoO
HtwoO / elf_format_cheatsheet.md
Created September 30, 2023 04:14 — forked from x0nu11byt3/elf_format_cheatsheet.md
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@HtwoO
HtwoO / jq-cheetsheet.md
Created September 13, 2023 13:42 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@HtwoO
HtwoO / Google-Sheet-Functions.md
Created April 23, 2023 10:01 — forked from rueycheng/Google-Sheet-Functions.md
Google Sheet functions cheatsheet

Google Sheet Functions - Cheatsheet

Based on https://support.google.com/docs/table/25273?hl=en

Array

Name Syntax Description
ARRAY_CONSTRAIN ARRAY_CONSTRAIN(input_range, num_rows, num_cols) Constrains an array result to a specified size.
BYCOL BYCOL(array_or_range, LAMBDA) Groups an array by columns by application of a LAMBDA function to each column.
@HtwoO
HtwoO / GNU-Make.md
Created April 23, 2023 09:51 — forked from rueycheng/GNU-Make.md
GNU Make cheatsheet
@HtwoO
HtwoO / rsa.ca.gen.sh
Last active November 14, 2022 02:24
Self-signed RSA Certificate Authority generation script using openssl
#!/usr/bin/env bash
CA_NAME="Swan CA"
ROOT_NAME="Swan Root Cert"
# File path to save to
CA_DIR="self-signed.CA"
CA_KEY_FP="$CA_DIR/swan.key.pem"
CA_CRT_FP="$CA_DIR/swan.crt.pem"
mkdir -p "$CA_DIR"
@HtwoO
HtwoO / ec.ca.gen.sh
Last active November 14, 2022 02:24
Self-signed ECDSA Certificate Authority generation script using openssl
#!/usr/bin/env bash
CA_NAME="Swan CA"
ROOT_NAME="Swan Root Cert"
# File path to save to
CA_DIR="self-signed.CA"
CA_KEY_FP="$CA_DIR/swan.key.pem"
CA_CRT_FP="$CA_DIR/swan.crt.pem"
mkdir -p "$CA_DIR"
@HtwoO
HtwoO / rsa.ca.gen.sh
Last active November 14, 2022 02:24
Self-signed RSA Certificate Authority generation script using strongswan-pki
#!/usr/bin/env bash
CA_NAME="Swan CA"
ROOT_NAME="Swan Root Cert"
# File path to save to
CA_DIR="self-signed.CA"
CA_KEY_FP="$CA_DIR/swan.key.pem"
CA_CRT_FP="$CA_DIR/swan.crt.pem"
CA_P12CRT_FP="$CA_DIR/swan.p12"
mkdir -p "$CA_DIR"
@HtwoO
HtwoO / ec.ca.gen.sh
Last active November 14, 2022 02:24
Self-signed ECDSA Certificate Authority generation script using strongswan-pki
#!/usr/bin/env bash
CA_NAME="Swan CA"
ROOT_NAME="Swan Root Cert"
# File path to save to
CA_DIR="self-signed.CA"
CA_KEY_FP="$CA_DIR/swan.key.pem"
CA_CRT_FP="$CA_DIR/swan.crt.pem"
CA_P12CRT_FP="$CA_DIR/swan.p12"
mkdir -p "$CA_DIR"