Skip to content

Instantly share code, notes, and snippets.

View idelsink's full-sized avatar
Always looking for that coffee

Ingmar Delsink idelsink

Always looking for that coffee
View GitHub Profile
@idelsink
idelsink / systemd-logind-docked-events-min.sh
Last active August 17, 2022 19:37
A script to automatically do things when it detects a dock/undock 'event'. Only works when polling the script continuously
# - Get the 'docked' state from the systemd-logind D-Bus interface
# See: https://www.freedesktop.org/software/systemd/man/org.freedesktop.login1.html
# - Get the 'value' from the dbus-send command.
# The reply is in the format of ` variant boolean <value>`
# Where <value> is either `true` or `false`
_is_docked=$(dbus-send \
--system \
--print-reply=literal \
--reply-timeout=120000 \
--type=method_call \
@idelsink
idelsink / embest-SBC9261-I-ethernet.md
Created August 4, 2016 19:21
How to setup Ethernet on a Embest SBC9261-I

How to setup Ethernet on a Embest SBC9261-I

Assigning an IP Address

For eth0 interface.

ifconfig eth0 IP_ADDR netmask NETMASK up
# for example:
ifconfig eth0 192.168.0.13 netmask 255.255.255.0 up
@idelsink
idelsink / Pebble_Time_Steel_battery_issues.md
Last active July 19, 2016 13:48
Pebble Time Steel battery issues; Finding the root cause of the problem.

Pebble Time Steel battery issues

It seems that something on the hardware or software side went bad. Where I first could get almost 8 days out of my watch on normal/heavy use, now seems like 2 or 3 (or 4?) days on normal/heavy use. For information about the current software, see Software

I contacted Pebble support and they asked me to test this with the following steps. The results are further on this page.

@idelsink
idelsink / .clang-format
Created March 7, 2016 22:03
Clang format file.
# clang-format
# Made by: Ingmar Delsink
# idelsink.com
# See http://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Tested with: clang-format version 3.7.1
# General
#########
# The style used for all options not specifically set in the configuration.
@idelsink
idelsink / keybase.md
Last active June 28, 2016 11:55
Keybase proof

Keybase proof

I hereby claim:

  • I am idelsink on github.
  • I am binbash (https://keybase.io/binbash) on keybase.
  • I have a public key whose fingerprint is 2490 AACA D972 45B5 9ACC B7A9 6BFF 495F 6EF4 6E6E

To claim this, I am signing this object: