Skip to content

Instantly share code, notes, and snippets.

# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.

willing vanilli

  • Michael Jackson – Keep the Faith
  • Tina Turner – I Can't Stand The Rain
  • Prince – Let's Pretend We're Married
  • Fishbone – When Problems Arise

Nikes

  • Marty Friedman – Cheer Girl Rampage
  • Type O Negative – (We Were) Electrocute
  • The Unicorns – Jellybones
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'vim-scripts/tir_black'
Plug 'rust-lang/rust.vim'
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
osascript -ss -e 'tell application "iTunes" to {|artists|: artist, |albums|: album, |tracks|: name, |added|: date added} of tracks of library playlist 1' | sed 's/[[:<:]]date[[:>:]]//g' | sed "s/:{/:[/g" | sed "s/}}/]}/g" | sed "s/},/],/g" | sed "s/artists:/\"artists\":/g" | sed "s/albums:/\"albums\":/g" | sed "s/tracks:/\"tracks\":/g" | sed "s/added:/\"added\":/g" | python -c 'from __future__ import print_function; import sys, json; reload(sys); sys.setdefaultencoding("utf-8"); x = json.load(sys.stdin); map(lambda t: print(t[0] + "\t" + t[1] + "\t" + t[2] + "\t" + t[3]), zip(x["artists"], x["albums"], x["tracks"], x["added"]))'
@toby
toby / pour-over.md
Last active February 24, 2016 18:48
@toby
toby / mkjava.sh
Created August 19, 2013 01:04
Ubuntu Oracle Java Install
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu quantal main" >> /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu quantal main" >> /etc/apt/sources.list
apt-get update
apt-get -y install oracle-java7-installer
apt-get -y install oracle-java7-set-default
arkanoid:~ toby$ ping www.google.com
PING www.google.com (74.125.131.106): 56 data bytes
64 bytes from 74.125.131.106: icmp_seq=0 ttl=45 time=32.454 ms
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
64 bytes from 74.125.131.106: icmp_seq=3 ttl=45 time=38.050 ms
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
64 bytes from 74.125.131.106: icmp_seq=7 ttl=45 time=33.073 ms
@toby
toby / gist:3783867
Created September 25, 2012 19:18
Lazy select with Korma
(ns something.cool
(:use [korma.core]))
(def page-size 20)
(defn lazy-select
"Creates a lazy sequence of sql results by batch selecting."
([statement]
(lazy-select statement 0))
([statement o]