Skip to content

Instantly share code, notes, and snippets.

@Ferenc-
Ferenc- / touchdemo.py
Created November 24, 2019 21:54
TTP223 demo
#!/usr/bin/env python3
import board
import digitalio
led = digitalio.DigitalInOut(board.D4)
led.direction = digitalio.Direction.OUTPUT
touch_sensor = digitalio.DigitalInOut(board.D5)
touch_sensor.direction = digitalio.Direction.INPUT
@Ferenc-
Ferenc- / usr.bin.redshift
Created May 7, 2019 22:34
/etc/apparmor.d/usr.bin.redshift
owner @{HOME}/.homesick/repos/dotfiles/home/.config/redshift.conf r,
@Ferenc-
Ferenc- / openwrt_lighttpd.sh
Created January 7, 2018 16:25 — forked from ruzickap/openwrt_lighttpd.sh
OpenWrt Lighttpd modification to use https and serve transmission, foris, and personal web pages
opkg install lighttpd-mod-proxy
#See the http://192.168.1.1/myadmin/ for main "myadmin" page
mkdir -p /www3/myadmin/transmission-web
mkdir -p /www3/myadmin/luci
cp /etc/foris/foris-lighttpd-inc.conf /etc/foris/foris-lighttpd-inc.conf.orig
cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig
#Let foris "listen" only on 192.168.1.1
#sed -i "s@\$HTTP\[\"url\"\] !~ \"\^/static\" {.*@\$HTTP\[\"host\"\] == \"192\\.168\\.1\\.1\" {@" /etc/foris/foris-lighttpd-inc.conf
@Ferenc-
Ferenc- / config.def.h.diff
Last active May 23, 2017 10:39
Tabbed config.def.h
diff --git a/config.def.h b/config.def.h
index 2d23049..35c2985 100644
--- a/config.def.h
+++ b/config.def.h
@@ -41,11 +41,14 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } },
{ MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } },
+ { MODKEY|ShiftMask, XK_Right, rotate, { .i = +1 } },
+ { MODKEY|ShiftMask, XK_Left, rotate, { .i = -1 } },
@Ferenc-
Ferenc- / config.def.h.diff
Last active May 9, 2017 11:20
ST config.def.h
diff --git a/config.def.h b/config.def.h
index 877afab..83aff45 100644
--- a/config.def.h
+++ b/config.def.h
@@ -5,8 +5,8 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-char font[] = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
-int borderpx = 2;
#!/usr/bin/env python2
import ldaptor.interfaces
import ldaptor.protocols.ldap.ldapserver
import ldaptor.protocols.ldap.ldaperrors
from ldaptor import inmemory
import twisted.python
import twisted.internet
--git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index b039f0d..85143e6 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -791,7 +791,7 @@ prompt_status() {
bg="red"
else
symbols+="%F{046}$(print_icon 'OK_ICON')%f"
- bg="black"
+ bg="234"