Skip to content

Instantly share code, notes, and snippets.

View rsdehart's full-sized avatar

Robert DeHart rsdehart

View GitHub Profile
@rsdehart
rsdehart / clipd
Created September 19, 2021 12:54
#!/bin/bash
inotifywait -me MODIFY ~/.config/copyfile |
while read -r filename; do
xclip -sel clip ~/.config/copyfile
done
@rsdehart
rsdehart / gist:75f0907a836e684ba0375f55095a5613
Created July 7, 2020 15:22
Enable Wi-Fi Hotspot in Android from CLI
#!/usr/bin/env bash
adb shell am start -S -W com.android.settings/.TetherSettings
adb shell input keyevent 20 #KEY_DOWN
adb shell input keyevent 20 #KEY_DOWN
adb shell input keyevent 22 #KEY_RIGHT
adb shell input keyevent 4 #BACK
pil8.com
acet8.com
arcu8.com
aure8.com
bist8.com
brom8.com
caud8.com
citr8.com
cune8.com
expi8.com
18:03 fixact script exec foreach (Irssi::windows()) { if (\$_->{data_level} <= 1) { Irssi::signal_emit("window dehilight", \$_) } }

Keybase proof

I hereby claim:

  • I am rsdehart on github.
  • I am rsdehart (https://keybase.io/rsdehart) on keybase.
  • I have a public key whose fingerprint is 2FE6 6F4D E5FF 47CB 90BD 8F79 2E3B 2BA1 8C31 EA4E

To claim this, I am signing this object:

01:13 [ shachaf] «Whenever I've wondered about how something in Erlang works, I have never disappointed in the
answer. I almost always leave with the impression that the designers did the “right thing.” I suppose this is in contrast to Java, which does the pedantic thing, Perl, which does the kludgy thing, Ruby, which has two
independent implementations of the wrong thing, and C, which doesn't do anything.»