Skip to content

Instantly share code, notes, and snippets.

View pfeerick's full-sized avatar

Peter Feerick pfeerick

  • Australia
  • 23:41 (UTC +10:00)
View GitHub Profile
@longsleep
longsleep / pine64-gpio-number.py
Last active December 7, 2022 22:24
Simple helper to compute sysfs GPIO numbers from PIN names on Pine64
#!/usr/bin/python3
import sys
import string
def convert(value):
value = value.upper()
alp = value[1]
idx = string.ascii_uppercase.index(alp)
num = int(value[2:], 10)
@iacchus
iacchus / weechat-on-arm.md
Last active June 2, 2017 09:04
Compile weechat irc on Ubuntu ARMHF - ARMv7

Build weechat (irc client) on a Ubuntu Linux 13.04 (Raring Ringtail) running on an Android Phone

Installing required packages

sudo apt-get install build-essential automake checkinstall
sudo apt-get build-dep weechat

Getting the sources

wget http://www.weechat.org/files/src/weechat-0.4.3.tar.gz

@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream