Skip to content

Instantly share code, notes, and snippets.

Andrew Mussey amussey

Block or report user

Report or block amussey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dschep
dschep / raspbian-python3.6.rst
Last active Aug 15, 2019 — 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
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" https://api.appcelerator.net/p/v1/sso-login"
(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
prwhite / Makefile
Last active Aug 15, 2019
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
bobpoekert / linux_memory.py
Created Jan 13, 2013
Get info about available memory from Python on Linux.
View linux_memory.py
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
rfunduk / osx.sh
Last active Apr 17, 2019 — forked from erikh/hack.sh
OSX For Hackers
View osx.sh
#!/usr/bin/env sh
##
# This is script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2263406/osx.sh | sh
#
@eligrey
eligrey / object-watch.js
Created Apr 30, 2010
object.watch polyfill in ES5
View object-watch.js
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
You can’t perform that action at this time.