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 ( |
| #!/usr/bin/env python3 | |
| ################################################################### | |
| # This script makes an API connection to OPNsense # | |
| # and checks if there are any pending updates # | |
| # if there are, it sends an email with details # | |
| # # | |
| # Authors: Bart J. Smit, 'ObecalpEffect' and Franco Fichtner # | |
| # Helmut K. C. Tessarek # | |
| # # |
| # GIT heart FZF | |
| # ------------- | |
| is_in_git_repo() { | |
| git rev-parse HEAD > /dev/null 2>&1 | |
| } | |
| # Only for interactive bash session | |
| if [[ $- =~ i ]];then |
I hereby claim:
To claim this, I am signing this object:
| #!/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 |
| #!/usr/bin/python | |
| import time, argparse | |
| def convert(ctx): | |
| inputstr = str(ctx.Epoch) | |
| if len(inputstr) > 10: | |
| secs = inputstr[:10] | |
| msecs = inputstr[10:] |
| #!/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() |
| #---------------------------------------------------------------------------# | |
| # .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 |