Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
# @author Sebastian Wagner <[email protected]>
#
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <[email protected]> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer, club-mate or pizza in return
# ----------------------------------------------------------------------------
#!/bin/sh
ssh-keygen -i -m RFC4716 -f id_rsa.ppk.pub
@sebastianwagner
sebastianwagner / .gitignore
Last active July 25, 2016 12:46
Magento Core through composer
/vendor/
/htdocs/
composer.lock
@sebastianwagner
sebastianwagner / nm-disconnect-docker.sh
Last active August 29, 2015 14:17
Network Manager disconnect script for docker devices
#!/bin/sh
##
# @see https://github.com/jpetazzo/pipework/issues/72#issuecomment-50045428
##
which nmcli
if [ $? -eq 0 ]; then
LANG=C nmcli --terse --fields device,state device status \
| egrep "^(docker|vboxnet).*\:connected" \
@sebastianwagner
sebastianwagner / time-resolved-fluorescence-well-measurements.R
Created June 24, 2021 20:44
tooling for Technical Analysis Equipment wellplate flourescence measurement xlsx sheet csv
# run with:
# R --no-save --no-restore --file=time-resolved-fluorescence-well-measurements.R
# Hombrechtikon tooling for Technical Analysis Equipment
library(ggplot2)
filename <- 'measurement.csv'
offset <- 56
stop <- FALSE

battery charge threshold

macsmc-battery selects different values anyways but those seem close enough.

install

sudo cp battery-charge-threshold-start.service battery-charge-threshold.service /etc/systemd/system/

enable

sudo systemctl enable battery-charge-threshold-start.service