Skip to content

Instantly share code, notes, and snippets.

@Altreus
Altreus / .gitconfig
Last active July 18, 2019 16:38
.gitconfig
[user]
email =
name =
signingkey =
[alias]
lg = log --graph --decorate --branches --oneline --remotes --tags --all
qlog = log --graph --decorate --branches --oneline --tags
st = status
co = checkout
ci = commit
$.fn.nInputs = function(options) {
var $self = this;
options = $.extend({
number: $self.val(),
container: $self.parent(),
}, options);
var $existing = options.container.find('input');
if ($existing.length < options.number) {
.claim.#{claim.confirmation}
h2= claim.claimant.name
p= claim.claim
@Altreus
Altreus / gist:7335601
Created November 6, 2013 12:51
leader commands to send text to void register
nmap <Leader>d "_d
nmap <Leader>x "_x
nmap <Leader>c "_c
nmap <Leader>s "_s
nmap <Leader>r "_r
nmap <Leader>D "_D
nmap <Leader>X "_X
nmap <Leader>C "_C
nmap <Leader>S "_S
vmap <Leader>d "_d
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PS1='${debian_chroot:+($debian_chroot)}\[\033[02;33m\]\u@\h\[\033[01;31m\]:\w \$\[\033[00m\] '
# User specific aliases and functions
syntax on
set mouse=a
set background=dark
set showmatch
set showcmd
set ai
set tabstop=4
set foldcolumn=3
"set expandtab
let &shiftwidth=&softtabstop
function! GitDiff()
let l:myft = &filetype
diffthis
" deal with submodules by temporarily changing to the file's dir
cd %:p:h
vnew | 0r !git show HEAD:./#:t
norm 1G
exec 'set ft=' . l:myft
set nomod ro
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAn0dZ1d26Ybg0Nj0/fae+bCEsOhkCyltgfpV2MKzoIZmNEbEiHftuTps0apKYvwnR3/uNtMZfi0wUuxhw27xOZBJdHt3UxfCFcpCiCT+7WXLxch39WGOxGXoFJdrZFFw+WrR/c5sZP+5XhD6QOFwbfmHJ27OMd2FBDdrt/tAEtKhLZgR7HZ4RsTz0RtxRSgUXDYkd9njE0nnIjhYtTMRcUNggJuV5oeUOgzYdNQfa0HvARR5xZW/WLhajP+QpcLHMy/go3Sp+7OT7FXbn2fUVRtY+zCF88GVSqlrnpcv5Hf7qRU7DAaEM4OoAR+EaQxrr1YuhKBZPERWzSxVSOtgCaw== alastair@PROP110
package Hackmachine::Resource;
use strict;
use warnings;
use Data::Dumper;
use parent 'Web::Machine::Resource';
our @data = qw( hello hi hey howdy );
package Hackmachine::Resource;
use strict;
use warnings;
use Data::Dumper;
use parent 'Web::Machine::Resource';
our @data = qw( hello hi hey howdy );