Skip to content

Instantly share code, notes, and snippets.

View georgkreimer's full-sized avatar
☠️
Hack the planet!

Georg Kreimer georgkreimer

☠️
Hack the planet!
View GitHub Profile
@georgkreimer
georgkreimer / springer-free-maths-books.md
Created December 28, 2015 18:20 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links

Basic hookup

As I plan to make a custom breakout board I wanted to solder as few connections as possible. I was able to boot the device, with UART (out at least) soldering the following.

PIN NAME
0 GND
1 3V3
2 EN
@georgkreimer
georgkreimer / web-servers.md
Created December 17, 2015 10:21 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@georgkreimer
georgkreimer / init.lua
Last active September 4, 2015 12:14 — forked from creationix/init.lua
Websocket server in nodemcu using new crypto module.
wifi.setmode(wifi.STATION)
wifi.sta.config("creationix","noderocks")
wifi.sta.connect()
tmr.alarm(0, 1000, 1, function ()
local ip = wifi.sta.getip()
if ip then
tmr.stop(0)
print(ip)
dofile("websocket.lc")
dofile("main.lc")
mjolnir.application = require "mjolnir.application"
mjolnir.window = require "mjolnir.window"
mjolnir.hotkey = require "mjolnir.hotkey"
mjolnir.fnutils = require "mjolnir.fnutils"
mjolnir.geometry = require "mjolnir.geometry"
mjolnir.screen = require "mjolnir.screen"
-- find the main window belonging to the application with title 'title'
function winfromtitle(title)
# ------------------------------------------------------------------------------
# FILE: ember.plugin.zsh
# DESCRIPTION: oh-my-zsh ember plugin file.
# AUTHOR: Will Meldon (wdmeldon@gmail.com)
# VERSION: 0.0.1
# ------------------------------------------------------------------------------
# Based (heavily) on composer.plugin.zsh
#
# Ember basic command completion
_ember_get_command_list () {
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
# install wallpaper cli
gem install desktop
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@georgkreimer
georgkreimer / Console.log
Created September 5, 2013 01:23
embedded issue: "has no method 'map'"
DEBUG: ------------------------------- ember.js:394
DEBUG: Ember.VERSION : 1.0.0 ember.js:394
DEBUG: Handlebars.VERSION : 1.0.0 ember.js:394
DEBUG: jQuery.VERSION : 1.10.2 ember.js:394
DEBUG: ------------------------------- ember.js:394
Uncaught TypeError: Object function () {
if (!wasApplied) {
Class.proto(); // prepare prototype...
}
o_defineProperty(this, GUID_KEY, undefinedDescriptor);
require 'formula'
class Subversion < Formula
homepage 'http://subversion.apache.org/'
url 'http://apache.spinellicreations.com/subversion/subversion-1.7.11.tar.bz2'
sha1 'd82e187803043b74c072cd5a861ac02e4a027684'
option :universal
option 'java', 'Build Java bindings'
option 'perl', 'Build Perl bindings'
@georgkreimer
georgkreimer / mobile-safari-inspector
Created June 28, 2012 17:34
Configure Mobile Safari on the Simulator allow remote debugging of web pages and open safari to view the inspector.
#!/bin/sh
#
# Configure Mobile Safari on the Simulator allow remote debugging of web pages
# and open safari to view the inspector.
#
# If you want to open the Simulator from the command line you might like the
# following alias:
# alias iphone-simulator="open /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app"
#