Skip to content

Instantly share code, notes, and snippets.

View matalo33's full-sized avatar
🙈

Matthew Taylor matalo33

🙈
View GitHub Profile
@rhowe
rhowe / summarise-aws-sdk-changelog
Last active July 21, 2023 14:44
Generate a digest of the AWS Java SDK changelog
curl -sf https://raw.githubusercontent.com/aws/aws-sdk-java/master/CHANGELOG.md |\
sed \
-e 's/Amazon Simple Storage Service/Amazon S3/' \
-e 's/^# /- /' \
-e 's/^## / - ## /' \
-e "s/#.*/'&'/" \
-e 's/: / - /g' \
-e 's/^ \(.*\)/ \1/' \
-e 's/^ -/ -/' \
-e 's/^ -/ -/' \
@m-radzikowski
m-radzikowski / script-template.sh
Last active November 15, 2024 11:25
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@rdkr
rdkr / brew.sh
Last active July 25, 2020 00:48
brew install \
bash \
zsh \
make \
openssh \
git \
coreutils \
findutils \
gnu-sed \
gnu-tar \

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@leonardofed
leonardofed / README.md
Last active November 14, 2024 13:37
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.


@jamesoff
jamesoff / .zshrc
Last active September 24, 2015 08:59
A couple of useful zsh functions
# Use ag and fzf to pick a result and open it in vim at the matching line,
# plus show the ag results in the quickfix window (needs Ag plugin in your vim)
function agvim () {
CHOICE=$(ag --color $* | fzf -0 -1 --ansi)
if [ ! -z "$CHOICE" ]; then
# Open vim at the selected file and line, but also run the Ag scan
# the ! on Ag! stops Ag jumping to the first match, and the wincmd gives the editor window focus
nvim $( echo "$CHOICE" | awk 'BEGIN { FS=":" } { printf "+%d %s\n", $2, $1 } ') +"Ag! '$*'" "+wincmd k"
fi
}
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active November 5, 2024 18:44
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: