Skip to content

Instantly share code, notes, and snippets.

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
# .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
@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
.claim.#{claim.confirmation}
h2= claim.claimant.name
p= claim.claim
$.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) {
@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
set statusline=all\ the\ stuff\ %{FindSub()}\ and\ more\ stuff
function! FindSub()
let subpattern = '\(sub\|function\) \w\+'
let subline = search(subpattern, 'bnW')
if !subline
return 'not in sub'
else
return matchstr(getline(subline), subpattern)
endif
master o-o-o-o-o-A
A - original master
$ tar tzf Dropbox/Public/mc-client-buildcraft\[additional\]-forestry-wireless-ic2-redpower-enderchests.tar.gz
.minecraft/
.minecraft/bin/
.minecraft/bin/minecraft.jar
.minecraft/buildcraft/
.minecraft/buildcraft/blueprints/
.minecraft/buildcraft/blueprints/direwolf20.list
.minecraft/buildcraft/blueprints/rycudas.list
.minecraft/buildcraft/blueprints/index.txt
.minecraft/buildcraft/blueprints/Altreus.list
my $sc = Scraper->new($url);
while (my $manu = $sc->next_manufacturer()){
while (my $cat = $manu->next_category()) {
while (my $prod = $cat->next_product()) {
# woot
}
}
}