This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checkout a PR from the current repo | |
function copr { git fetch origin pull/$1/head:pr-$1; git checkout pr-$1; } | |
# Get the current PR from the branch name | |
function current_pr { | |
git rev-parse --abbrev-ref HEAD | grep -oE "\d+" | |
} | |
# Update the PR | |
function upr { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# as long as your functions are located in files mentioned in the "in" clause of the for below | |
# and as long as functions are following the same pattern of "function_name() {" with a single comment above, | |
# the function below will list them all in a nice way | |
# lists all known functions | |
functions() { | |
for f in ~/.dockerfunc ~/.functions ~/bash/.extra_* | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Sizes - Calculate and sort all filesizes for current folder Includes | |
# directory sizes, colorized output Brett Terpstra 2019 WTF License | |
VERSION = "1.0.1" | |
require 'shellwords' | |
# Just including term-ansicolor by @flori and avoiding all the | |
# rigamarole of requiring multiple files when it's not a gem... - Brett | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## ssm | |
## | |
## Copyright (c) 2023 Piotr Roszatycki <[email protected]>, MIT | |
set -e | |
if ! command -v aws >/dev/null; then | |
echo "Needs aws command." |
OlderNewer