A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
#!/usr/bin/env python | |
""" | |
getimg.py | |
Gets the current image of the day from NASA and sets it as the | |
background in Gnome. The summary / description text is written | |
to the image. | |
Requires: | |
PIL (apt-get install python-imaging or pip install PIL) |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} } |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }, | |
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} }, | |
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } } |
# Produce PDFs from all Markdown files in a directory | |
# Lincoln Mullen | http://lincolnmullen.com | [email protected] | |
# List files to be made by finding all *.md files and appending .pdf | |
PDFS := $(patsubst %.md,%.md.pdf,$(wildcard *.md)) | |
# The all rule makes all the PDF files listed | |
all : $(PDFS) | |
# This generic rule accepts PDF targets with corresponding Markdown |
struct fifo { | |
uint8_t size; /* size of buffer in bytes */ | |
uint8_t read; /* read pointer */ | |
uint8_t write; /* write pointer */ | |
unsigned char buffer[]; /* fifo ring buffer */ | |
}; | |
/* define a FIFO type for 'size' bytes */ | |
#define MK_FIFO(size) \ | |
struct fifo_ ## size { \ |
// ==UserScript== | |
// @name SE Chat Inline YouTube | |
// @author Robert Lemon | |
// @version 0.1 | |
// @namespace http://rlemon.ca | |
// @description Replaces the new window youtube links with inline videos | |
// @include http://chat.stackexchange.com/rooms/* | |
// @include http://chat.stackoverflow.com/rooms/* | |
// ==/UserScript== | |
function EmbedCodeOnPage(type, kode) { |
#README:
This script for mpv intends to offer the fastest and simplest way to convert parts of a video—while you’re watching it and not really more work intensive than making a screenshot. A short demonstration: https://d.maxfile.ro/omdwzyhkoa.webm
##Installation:
You need:
# Stolen from here: http://stackoverflow.com/a/20703594/850326 | |
#!/bin/sh | |
export POSIXLY_CORRECT=1 | |
if [ -z "${1}" -o -z "${2}" ] | |
then | |
echo "Usage: ${0} <name> <original-png-location>" | |
fi | |
name=$1 |