Skip to content

Instantly share code, notes, and snippets.

View bgshacklett's full-sized avatar

Brian G. Shacklett bgshacklett

View GitHub Profile
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@protosam
protosam / DH_KEX_Example.js
Created September 8, 2017 01:51
Example of the Diffee Hellman Key Exchange Algorithm with Annotations.
/* The Diffie Hellman Key Exchange - Explained Again, with code
-------------------------------------------------------------------------------
The Diffie Hellman Key Exchange is commonly explained like so:
Step 1. Alice and Bob agree on a large prime number "P" and a primitive root of that, "G"
Step 2. Alice and Bob choose a large random number to compute against "p" and "g"
Alice choses a large random number "x" creates "A" below to send Bob
A=G^x % P
Bob choses a large random number "y" creates "B" below to send Alice
@TheNicholasNick
TheNicholasNick / 01 Install Arch Linux Guest on Hyper-V.md
Last active May 2, 2023 16:05
Arch Linux, UEFI, LVM - Hyper-V Guest
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active June 14, 2024 00:16
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
# Source https://gist.github.com/269d2e963f2857ca857d2b99f40dead2
git clone https://github.com/vfarcic/devops-toolkit-crossplane
cd devops-toolkit-crossplane
# Create a local Kubernetes cluster
kubectl create namespace crossplane-system