Skip to content

Instantly share code, notes, and snippets.

View oliverbaptiste's full-sized avatar

Oliver Baptiste oliverbaptiste

View GitHub Profile
@scjudd
scjudd / macmini4,1_archlinux.md
Created May 3, 2012 18:23
MacMini4,1 Arch Linux Install Guide

Install Arch Linux on a MacMini4,1

  1. Boot into OS X

  2. In Disk Utility, make space for Arch partition

  3. Boot Arch Linux install with 'nomodeset' boot option

  4. Install gptfdisk (provides cgdisk)

@nciske
nciske / mailto-subkect-post-title.php
Created November 27, 2012 16:23
Mailto Link with Post Title as Subject
<a href="mailto:[email protected]?subject=<?php echo urlencode( get_the_title() ); ?>">LINK TEXT HERE</a>
@willurd
willurd / web-servers.md
Last active January 21, 2025 21:45
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
@burpnoes
burpnoes / .bash_profile
Last active November 21, 2019 07:35
Bash Git Prompt and Completion integration for MacOS (bash completion required)
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
GIT_PS1_SHOWUPSTREAM="auto"
GIT_PS1_SHOWCOLORHINTS="yes"
GIT_PS1_SHOWDIRTYSTATE=true
export PROMPT_COMMAND='__git_ps1 "\u@\h:\W" "\\\$ ";'
@jwreagor
jwreagor / EmacsKeyBinding.dict
Created March 20, 2014 18:41
Global Emacs Key Bindings for OS X
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
@natelandau
natelandau / .bash_profile
Last active January 16, 2025 16:21
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@paulirish
paulirish / bling.js
Last active November 22, 2024 20:26
bling dot js
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); };
NodeList.prototype.__proto__ = Array.prototype;
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); };
@jonathlt
jonathlt / ZX81Kiosk.md
Last active February 3, 2023 20:22
Run a ZX81 Emulator in "kiosk" mode on a Raspberry Pi

Introduction

I wanted to be able to produce an SD Card distribution for the Raspberry PI which would emulate the ZX81 "out of the box". On startup an appropriate splash screen would be shown and the pi would enter an emulator. Saving would be via a sync with Google drive.

Method

For the most part, I have followed the instructions here:

http://blog.qruizelabs.com/2014/04/29/raspberrypi-kiosk-matchbox-uzbl/

@rnwolf
rnwolf / spacemacs-keybindings.md
Last active October 28, 2024 02:30 — forked from kiambogo/spacemacs-keybindings
spacemacs keybindings that i need to learn