Skip to content

Instantly share code, notes, and snippets.

View Flowkap's full-sized avatar

Florian Kappes Flowkap

View GitHub Profile
@Flowkap
Flowkap / karabiner.json
Created January 4, 2021 18:39
karabiner.json
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@Flowkap
Flowkap / flowkap.sh
Last active September 26, 2019 11:21
.flowkap bashrc extension
$ cat ~/.flowkap
#!/bin/bash
#infiinite bash_history
HISTSIZE=-1
HISTFILESIZE=-1
# NVM ... not much in use anymore but .. pff doesn't hurt
export NVM_DIR="/home/florian/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
TASK [kubernetes/preinstall : Stop if unknown dns mode] ************************************************************************************************************************************************************
Wednesday 24 July 2019 06:32:47 +0200 (0:00:00.232) 0:01:32.138 ********
ok: [testing-master-1] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [kubernetes/preinstall : Stop if unknown kube proxy mode] *****************************************************************************************************************************************************
Wednesday 24 July 2019 06:32:47 +0200 (0:00:00.230) 0:01:32.369 ********
ok: [testing-master-1] => {
docker kill $(docker ps | grep aaa_http | awk '{print $1;}')
certbot certonly --standalone -d auth-dev.swarco.com --email florian.kappes@swarco.de --agree-tos --preferred-challenges http-01 --non-interactive --force-renewal
cd /opt/aaa/nginx/certificates
cp /etc/letsencrypt/live/auth-dev.swarco.com/fullchain.pem server.crt
cp /etc/letsencrypt/live/auth-dev.swarco.com/privkey.pem server.pem
#!/bin/bash
# Update all git directories below current directory or specified directory
# Skips directories that contain a file called .ignore
#
# Originally: https://stackoverflow.com/questions/11981716/how-to-quickly-find-all-git-repos-under-a-directory
HIGHLIGHT="\e[01;34m"
NORMAL='\e[00m'
OPERATION=status
@Flowkap
Flowkap / identicon.sh
Created February 7, 2014 14:07
Generate a gravatar from gravatar.com
#/bin/sh!
# 1st parameter Value to hash!
# 2nd parameter resolution in pixel
# Script uses the gravatar api for default gravatar generation.
HASH=$(echo -n $1 | md5sum | awk '{ print $1 }')
xdg-open "http://www.gravatar.com/avatar/$HASH?f=y&s=$2&d=identicon"
@Flowkap
Flowkap / spawn_once.lua
Last active August 21, 2017 10:31
This is a small gist for autostarting applications with Awesome Window Manager (http://awesome.naquadah.org/) without the need to use a third party plugin like shifty. It's maybe not nice but works!
-- {{{
--
-- Autostarting for Awesome <3.4!
-- Add this section to the end of your rc.lua
-- configuration file within ~/.config/awesome/rc.lua
--
-- If you're using Awesome 3.5 change:
-- add_signal -> connect_signal
-- remove_signal --> disconnect_signal
--