Skip to content

Instantly share code, notes, and snippets.


Andrew Mussey amussey

View GitHub Profile
dschep / raspbian-python3.6.rst
Last active Feb 12, 2021 — forked from BMeu/raspbian-python3.5.rst
Installing Python 3.6 on Raspbian
View raspbian-python3.6.rst

Installing Python 3.6 on Raspbian

As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.

  1. Install the required build-tools (some might already be installed on your system).
MotiurRahman / file.text
Last active Apr 29, 2016
How to solve when Titanium Studio: "login server returned an error" when logging in
View file.text
Trouble Logging in
1.Try the login command below on the command line:
"curl -v -d "un=XXXX&pw=YYYY""
(replacing XXXX and YYYY with your username or email and password.
2.If the above command returns success, try to run Studio from the command line and then log in.
prwhite / Makefile
Last active Mar 2, 2021
Add a help target to a Makefile that will allow all targets to be self documenting
View Makefile
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing
bobpoekert /
Created Jan 13, 2013
Get info about available memory from Python on Linux.
def memory_info():
res = {}
for row in open('/proc/meminfo', 'r'):
k, v = row.split(':')
k = k.strip()
v = v.split()
if len(v) == 1:
v = int(v[0])
elif v[1] == 'kB':
v = int(v[0]) * 1024
rfunduk /
Last active Jun 13, 2020 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with useful tips taken from:
# install it:
# curl -sL | sh
eligrey / object-watch.js
Created Apr 30, 2010 polyfill in ES5
View object-watch.js
* polyfill
* 2012-04-03
* By Eli Grey,
* Public Domain.