Skip to content

Instantly share code, notes, and snippets.

View thiemok's full-sized avatar
:octocat:
718 - I am not a teapot

Thiemo thiemok

:octocat:
718 - I am not a teapot
  • Someplace, Germany
View GitHub Profile
@thiemok
thiemok / atomatic_gearbox.lua
Last active March 3, 2021 20:40
Stormworks Scripts
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"),
@thiemok
thiemok / launch_tmux.sh
Created March 14, 2018 09:55
Auto launch tmux, add this to your .bashrc or similar
[[ $- != *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
@thiemok
thiemok / pocketchip.kmp
Created March 11, 2018 19:16
Pocketchip keymap for headless boot - fixed for zsh
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
@thiemok
thiemok / blinks-chip.zsh-theme
Last active March 11, 2018 18:41
zsh Theme for the fantastic pocketCHIP, will display battery level and charging indicator
#!/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
@thiemok
thiemok / gogs_nginx.md
Last active April 30, 2022 10:13
Gogs nginx ssl reverse proxy config
server {

    listen 443;
    server_name sub.domain.tld;

    ssl_certificate           /etc/nginx/server.crt;
    ssl_certificate_key       /etc/nginx/server.key;

 ssl on;
@thiemok
thiemok / LICENSE.md
Last active November 30, 2016 14:42
Twitch live channels Widget for Dashing

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:

Keybase proof

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: