I hereby claim:
- I am thiemok on github.
- I am thiemok (https://keybase.io/thiemok) on keybase.
- I have a public key whose fingerprint is F73D 351F 74F3 CFFA BF0D 952B 7385 6990 779B 60ED
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The MIT License (MIT)
Copyright (c) 2016 Thiemo Krause
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
server {
listen 443;
server_name sub.domain.tld;
ssl_certificate /etc/nginx/server.crt;
ssl_certificate_key /etc/nginx/server.key;
ssl on;
#!/usr/bin/env sh | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State' | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences | |
chromium-browser --kiosk --fast --fast-start --enable-low-res-tiling --disable-infobars https://player.twitch.tv/?channel=gamesdonequick |
# https://github.com/blinks zsh theme | |
# edited to display pocketchip battery status by https://github.com/thiemok | |
function _prompt_char() { | |
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then | |
echo "%{%F{blue}%}±%{%f%k%b%}" | |
else | |
echo ' ' | |
fi | |
} |
keymaps 0-2,4-5,8,12 | |
altgr keycode 2 = F1 | |
altgr keycode 3 = F2 | |
altgr keycode 4 = F3 | |
altgr keycode 5 = F4 | |
altgr keycode 6 = F5 | |
altgr keycode 7 = F6 | |
altgr keycode 8 = F7 | |
altgr keycode 9 = F8 | |
altgr keycode 10 = F9 |
[[ $- != *i* ]] && return | |
if [[ -z "$TMUX" ]] ;then | |
ID="`tmux ls | grep -vm1 attached | cut -d: -f1`" # get the id of a deattached session | |
if [[ -z "$ID" ]] ;then # if not available create a new one | |
tmux new-session | |
else | |
tmux attach-session -t "$ID" # if available attach to it | |
fi | |
fi |
upShiftPoint = property.getNumber("up_shift_point") | |
downShiftPoint = property.getNumber("down_shift_point") | |
numGears = property.getNumber("number_of_gears") | |
gearings = { | |
property.getNumber("base_gearing"), | |
property.getNumber("gearbox_1_gearing"), | |
property.getNumber("gearbox_2_gearing"), | |
property.getNumber("gearbox_3_gearing"), |
format = """ | |
[░▒▓](brightgreen)\ | |
[ ](bg:brightgreen)\ | |
$jobs\ | |
$os\ | |
$aws\ | |
$username\ | |
$hostname\ | |
[](bg:babyblue fg:prev_bg)\ | |
$directory\ |