Skip to content

Instantly share code, notes, and snippets.

View izzygomez's full-sized avatar
vibing

Izzy Gomez izzygomez

vibing
View GitHub Profile
@izzygomez
izzygomez / find_grep_usage.md
Last active April 16, 2024 20:53
`find`/`grep` usage for searching files

Quick find/grep usage notes for searching files on command line

  • grep -ri "string" . will do a case-insensitive search for "string" inside "."
  • find . -type f -iname '*pattern* will do a case-insensitive search for file names that match given pattern inside "."
@izzygomez
izzygomez / git-split.sh
Last active May 21, 2024 14:49
git-split.sh
#!/bin/sh
# Any changes to this file should be reflected at:
# https://gist.github.com/izzygomez/c4efca57c2237277e3f725b612608b6b
#
# Quick script to split a file in `git` into two files while preserving blame
# history, which is useful for e.g. code blame view on Github.com.
#
# Inspired by answers [1] & [2] from Stack Overflow.
#
#!/usr/bin/env python3.10
"""
Script to use with The Juggernaut Method™ weightlifting program to calculate new
working maxes.
Significant changes done to this script should be reflected on:
https://gist.github.com/izzygomez/86be40a6c7e5efcc97e613f1d08b9c5b
"""
from enum import Enum
@izzygomez
izzygomez / ed25519-key-generation.py
Created December 6, 2022 16:16
Python script to generate ed25519 private & public keys
# https://pypi.org/project/PyNaCl/
import nacl
import nacl.signing
import secrets
seed = secrets.token_bytes(32)
# Generate a new random signing key
signing_key = nacl.signing.SigningKey(seed)
@izzygomez
izzygomez / shuffle33numbers.py
Created November 9, 2022 06:28
Shuffle 33 Numbers
import random as r
numbers = [*range(1,34)]
r.shuffle(numbers)
print(numbers)
@izzygomez
izzygomez / gpg-usage-notes.md
Last active November 2, 2023 23:38
Quick notes on using GPG

Listing keys

gpg --list-keys --with-subkey-fingerprint

gpg --list-secret-keys

Generating a key

gpg --full-gen-key

Keybase proof

I hereby claim:

  • I am izzygomez on github.
  • I am izzy (https://keybase.io/izzy) on keybase.
  • I have a public key whose fingerprint is 706B D6B6 2427 A95D A826 F0B4 328F BD3D 37A4 5C47

To claim this, I am signing this object: