Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Lost in time...

Helmut K. C. Tessarek tessus

💭
Lost in time...
View GitHub Profile
@tessus
tessus / fzf_git.sh
Last active Feb 11, 2020 — forked from junegunn/functions.sh
Key bindings for git with fzf (https://junegunn.kr/2016/07/fzf-git/)
View fzf_git.sh
# GIT heart FZF
# -------------
is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
# Only for interactive bash session
if [[ $- =~ i ]];then
@tessus
tessus / YubiKey-GPG-SSH-guide.md
Created Mar 23, 2018 — forked from ageis/YubiKey-GPG-SSH-guide.md
Technical guide for using YubiKey series 4 for GPG and SSH
View YubiKey-GPG-SSH-guide.md

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate).

View keybase.md

Keybase proof

I hereby claim:

  • I am tessus on github.
  • I am tessus (https://keybase.io/tessus) on keybase.
  • I have a public key ASDJ5NTbpDfLF5-wamLigllO_B_G1ZR3O7PBaDv0tnwdjAo

To claim this, I am signing this object:

@tessus
tessus / compile_tmux.sh
Last active Jun 16, 2020
compile tmux (static)
View compile_tmux.sh
#!/bin/bash
TMUX_VERSION=2.3
NCURSES_VERSION=6.0
LIBEVENT_VERSION=2.0.22
BASEDIR=${HOME}/work/tmux-static
TMUXTARGET=${BASEDIR}/local
mkdir -p $TMUXTARGET
cd $BASEDIR
@tessus
tessus / stc.py
Last active Jul 19, 2017
Epoch Converter in Python
View stc.py
#!/usr/bin/python
import time, argparse
def convert(ctx):
inputstr = str(ctx.Epoch)
if len(inputstr) > 10:
secs = inputstr[:10]
msecs = inputstr[10:]
@tessus
tessus / teksavvy_usage.py
Created Jul 31, 2014
retrieve TekSavvy data usage via API key
View teksavvy_usage.py
#!/opt/local/bin/python
import httplib, json
APIKEY = "YOUR_API_KEY_HERE"
headers = {"TekSavvy-APIKey": APIKEY}
conn = httplib.HTTPSConnection("api.teksavvy.com")
conn.request('GET', '/web/Usage/UsageSummaryRecords?$filter=IsCurrent%20eq%20true', '', headers)
response = conn.getresponse()
@tessus
tessus / .tmux.conf
Last active Mar 22, 2018
tmux config file
View .tmux.conf
#---------------------------------------------------------------------------#
# .tmux.conf
# Helmut K. C. Tessarek, Last update 2018-03-22
#---------------------------------------------------------------------------#
#---------------------------------------------------------------------------#
# set prefix key to ctrl+a / ctrl-b is used in vi for going back one page
#---------------------------------------------------------------------------#
unbind C-b
set -g prefix C-a
You can’t perform that action at this time.