Skip to content

Instantly share code, notes, and snippets.

@yunruse
yunruse / phoneticpassword.py
Created December 2, 2022 17:14
Phonetic password schema, a la iCloud
'''
Small tool that generates a phonetic password with a schema
identical to that used in iCloud's password generators.
Pronouncable-ish with 20 characters and ~70 bits of entropy.
Useful for password managers or sysadmins.
'''
# Example password from schema: fivhAp-riznux-0mizhi
# Let V be the set of all lowercase vowels "aiueoy".
# Let C be the set of all lowercase consonants in the Latin (English) alphabet.
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@rudolfschmidt
rudolfschmidt / free-3-letter-domains.sh
Created June 2, 2020 21:04
Check Free 3 Letter Domains
#!/usr/bin/env bash
array=( a b c d e f g h i j k l m n o p q r s t u v w x y z )
for a in "${array[@]}"
do
for b in "${array[@]}"
do
for c in "${array[@]}"
do
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 26, 2024 15:48
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@leonardofed
leonardofed / README.md
Last active April 24, 2024 01:47
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@InQuize
InQuize / Proxomox - NUT Client.md
Last active April 22, 2024 07:35
Proxomox - NUT Client.md
@mikecmpbll
mikecmpbll / versioning.rake
Last active August 19, 2016 21:08
A wee set of rake tasks to help bump version number using git tags.
LEVELS = [:major, :minor, :patch]
def version
@version ||= begin
v = `git describe --always --tags`
{}.tap do |h|
h[:major], h[:minor], h[:patch], h[:rev], h[:rev_hash] = v[1..-1].split(/[.-]/)
end
end
end
@cdown
cdown / gist:1163649
Last active April 9, 2024 01:10
Bash urlencode and urldecode
urlencode() {
# urlencode <string>
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in