See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
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.
apt-get install nut
/etc/nut/nut.conf
: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 |
#!/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. |
#!/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 |
''' | |
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. |
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 |