I hereby claim:
- I am codemedic on github.
- I am codemedic (https://keybase.io/codemedic) on keybase.
- I have a public key ASBeG9h2YLQvxBVErQ4zzZIlPPBzG1-D3ldD2Pi4zI4S5go
To claim this, I am signing this object:
{ | |
"path":"/home/foo/icons/", | |
"domain":"example.com", | |
"icons":[ | |
{"host":"aaa.example.com", "icon":"red.png"}, | |
{"host":"bbb.example.com", "icon":"green.png"}, | |
{"host":"ccc.example.com", "icon":"yellow.png"}, | |
{"host":"ddd.example.com", "icon":"orange.png"}, | |
{"host":"eee.example.com", "icon":"blue.png"}, | |
{"host":"fff.example.com", "icon":"cyan.png"}, |
I hereby claim:
To claim this, I am signing this object:
[ -r ~/path/to/konsole-tabs.sh ] && | |
. ~/path/to/konsole-tabs.sh | |
# Run multiple commands in individual tabs | |
commands_in_tabs() { | |
local cmd profile clear_first clear_cmd="" exit_new_tabs_afterwards exit_current_tab_afterwards title i | |
local sessions=() | |
: "${profile:="$(qdbus org.kde.konsole /Konsole defaultProfile)"}" | |
: "${clear_first:=1}" |
-server | |
-Xms1G | |
-Xmx3072m | |
-Xss2m | |
-XX:MaxMetaspaceSize=1536m | |
-XX:ReservedCodeCacheSize=240m | |
-XX:MetaspaceSize=512m | |
-XX:+DoEscapeAnalysis | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-XX:+UnlockExperimentalVMOptions |
#!/bin/bash | |
: "${branch:="$(git rev-parse --abbrev-ref HEAD)"}" | |
: "${tag_or_branch:="$branch"}" | |
spec=( *spec ) | |
spec=${spec%%.spec} | |
# Relies on git-describe being functional; so git-flow AVH edition is essential | |
version="$(git describe --abbrev=0 "$branch")" |
#!/bin/bash | |
file="$1" | |
region="eu-west-1" | |
key_id="YOUR-AWS-KEY-ID" | |
key_secret="YOUR-AWS-KEY-SECRET" | |
path="some-directory/$file" | |
bucket="s3-bucket-name" | |
content_type="application/octet-stream" | |
date="$(LC_ALL=C date -u +"%a, %d %b %Y %X %z")" |
#!/usr/bin/env bash | |
if ! aws_bin="$(which aws)" 2>/dev/null; then | |
echo "aws cli is missing; you can get it from https://aws.amazon.com/cli/" | |
exit 1 | |
fi | |
if ! jq_bin="$(which jq)" 2>/dev/null; then | |
echo "jq is missing; you can get it from https://stedolan.github.io/jq/" | |
exit 1 |
# based on https://github.com/mathieu-aubin/c7repos/blob/master/functions/bash-colors | |
__print_color_row() { | |
local color | |
color=$(printf '%03d' "$1") | |
echo -ne "\\033[1;48;5;${color}m \\\\033[48;5;${color}m \\033[0m"; | |
echo -ne "\\033[1;7;38;5;${color}m\\\\033[7;38;5;${color}m \\033[0m"; | |
echo -ne " \\033[1;38;5;${color}m\\\\033[1;38;5;${color}m\\033[0m"; | |
echo -ne " \\033[38;5;${color}m\\\\033[38;5;${color}m\\033[0m"; | |
echo -ne " \\033[2;38;5;${color}m\\\\033[2;38;5;${color}m\\033[0m"; |
Caveat: This was done as a quick-fix to aleviate my pain; There could be a better way to do this. Please do leave comments and suggestions.
This script is meant to be used as .bashrc, in order to make the transition from Linux to MacOS less painful. It makes available GNU tools and utils in your PATH so that they can be invoked effortlessly. It also allows you to leave an untainted terminal setup for anything very native to MacOS.
# Heavily depends on: | |
# libqrencode (fukuchi.org/works/qrencode/) | |
# paperkey (jabberwocky.com/software/paperkey/) | |
# zbar (zbar.sourceforge.net) | |
# Producing the QR codes: | |
# Split over 4 codes to ensure the data per image is not too large. | |
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
split temp -n 4 IMG | |
for f in IMG*; do cat $f | qrencode -o $f.png; done |