Skip to content

Instantly share code, notes, and snippets.

Bruno Bronosky RichardBronosky

Block or report user

Report or block RichardBronosky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
RichardBronosky /
Last active Feb 20, 2020 — forked from jexchan/
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C ""
RichardBronosky /
Last active Feb 19, 2020
Aliases for Terragrunt/Terraform to simplify using Terraform modules separately from terraform.tfvars


  1. Add aliases file to ~/.terraform.d
mkdir -p ~/.terraform.d

## Either: (a) Use a snapshot/copy of the current aliases
curl -sLo ~/.terraform.d/aliases
RichardBronosky /
Last active Feb 15, 2020 — forked from ralphbean/
Script to list all repos for a github organization
#!/usr/bin/env python2.7
""" Print all of the (git/ssh or http) urls for all repos (public or
private+public with personal_token) in a GitHub account (user or organization).
Usage example::
[HTTP_URLS=1] python2.7 account_name [personal_token]
It requires the pygithub3 module, which you can install on macos (Mac OSX) like this::
# get pip if you don't have it
RichardBronosky / README.MD
Last active Feb 14, 2020
cb - A leak-proof tee to the clipboard - Unify the copy and paste commands into one intelligent chainable command.


A leak-proof tee to the clipboard

This script is modeled after tee (see [man tee][2]).

It's like your normal copy and paste commands, but unified and able to sense when you want it to be chainable


#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""This module's docstring summary line.
This is a multi-line docstring. Paragraphs are separated with blank lines.
Lines conform to 79-column limit.
Module and packages names should be short, lower_case_with_underscores.
Notice that this in not
RichardBronosky /
Created Feb 11, 2020
Pattern for using `main` and `exports` in Node.js

Pattern for using main and exports in Node.js


$ cat example-main_and_exports.js
#!/usr/bin/env node

const lib = require('./lib.js')
View curl-bash-env
# curl -sL | bash
cat <<EOF | less
# stdin_is_a_pipe
[[ -p /dev/stdin ]]; echo \$?
$([[ -p /dev/stdin ]]; echo $?)
# stdin_is_a_tty
View tput_256colors
tput init
end=$(( $(tput colors)-1 ))
for c in $(seq 0 $end); do
tput setaf $c
[[ $c -ge $(( w*2 )) ]] && offset=2 || offset=0
[[ $(((c+offset) % (w-offset))) -eq $(((w-offset)-1)) ]] && s=$'\n'|| s=' '
RichardBronosky /
Last active Jan 31, 2020
A growing collection of ffmpeg tools to convert (Quicktime and other) videos to gif or other optimized formats
You can’t perform that action at this time.