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
RichardBronosky / multiple_ssh_setting.md
Last active Feb 20, 2020 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts
View multiple_ssh_setting.md

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 "your_email@youremail.com"
@RichardBronosky
RichardBronosky / README.md
Last active Feb 19, 2020
Aliases for Terragrunt/Terraform to simplify using Terraform modules separately from terraform.tfvars
View README.md

Installation

  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 https://gist.github.com/RichardBronosky/ae0e564f37f97f12586d6c828b8fa8ed/raw/48cfc248e74118a1c155fc321967d81c5fe70772/aliases
@RichardBronosky
RichardBronosky / list-all-repos.py
Last active Feb 15, 2020 — forked from ralphbean/list-all-repos.py
Script to list all repos for a github organization
View list-all-repos.py
#!/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 list-all-repos.py 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
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.
View README.MD

cb

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

Examples

View pep8_cheatsheet.py
#! /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 PEP8-cheatsheet.py
@RichardBronosky
RichardBronosky / README.md
Created Feb 11, 2020
Pattern for using `main` and `exports` in Node.js
View README.md

Pattern for using main and exports in Node.js

Demo

~/src/node-playground(master#%)[0]
$ cat example-main_and_exports.js
#!/usr/bin/env node

const lib = require('./lib.js')
View curl-bash-env
#!/bin/bash
# curl -sL https://gist.github.com/RichardBronosky/04f3b830532ba8ba60f35b22752d88f2/raw/curl-bash-env | bash
cat <<EOF | less
# stdin_is_a_pipe
[[ -p /dev/stdin ]]; echo \$?
$([[ -p /dev/stdin ]]; echo $?)
# stdin_is_a_tty
View tput_256colors
#!/bin/bash
tput init
end=$(( $(tput colors)-1 ))
w=8
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
RichardBronosky / FFMPEG_TOOLS.md
Last active Jan 31, 2020
A growing collection of ffmpeg tools to convert (Quicktime and other) videos to gif or other optimized formats
View FFMPEG_TOOLS.md
You can’t perform that action at this time.