Skip to content

Instantly share code, notes, and snippets.

View ashevchuk's full-sized avatar

Andrew Shevchuk ashevchuk

View GitHub Profile
@ashevchuk
ashevchuk / hd44780-i2c-pcf8574t.c.patch
Created May 15, 2018 23:14 — forked from padcom/hd44780-i2c-pcf8574t.c.patch
Patch to make LCDproc work with Chineese version of the HD44780 extender which has different wiring than the original version
--- server/drivers/hd44780-i2c.c 2014-03-23 11:22:09.000000000 +0100
+++ server/drivers/hd44780-i2c.c 2015-12-27 00:55:15.528659000 +0100
@@ -85,10 +85,10 @@
void i2c_HD44780_backlight(PrivateData *p, unsigned char state);
void i2c_HD44780_close(PrivateData *p);
-#define RS 0x10
-#define RW 0x20
-#define EN 0x40
-#define BL 0x80
@ashevchuk
ashevchuk / pacaur_install.sh
Last active March 8, 2019 17:18 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# Run the following from a terminal to install pacaur:
# $ curl -s https://gist.githubusercontent.com/ashevchuk/f801eaad5159135d5d36d6dee95f3a14/raw/pacaur_install.sh | sh
echo "Checking for system updates..."
sudo pacman -Syu
WORKDIR=$(mktemp -d /tmp/pacaur_install.XXXXXXXXX)