I hereby claim:
- I am toshism on github.
- I am toshism (https://keybase.io/toshism) on keybase.
- I have a public key ASB71tf-SniAQZLSdu35cyNfu52QJgB_6p54P0mY8BRNaAo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
envrc=$(cat << EOF | |
if [ -z "\${VENV_BASE:-}" ] && [ -n "\${VIRTUAL_ENV:-}" ]; then | |
VENV_BASE=\$(basename "\${VIRTUAL_ENV}") | |
fi | |
export VENV_BASE | |
unset PS1 | |
EOF | |
) |
I hereby claim:
To claim this, I am signing this object:
" Be more Vimmy. | |
set nocompatible | |
" Encode all files in UTF-8 by default. | |
set encoding=utf-8 | |
" Turn on syntax highlighting. | |
syntax enable | |
set background=dark |
# ~/.tmux.conf | |
set -g default-terminal "screen-256color" | |
set-window-option -g mode-keys emacs | |
# start window numbers at 1. 0 is so far over there | |
set -g base-index 1 | |
set-window-option -g pane-base-index 1 |
class AwesomeCustomManager(models.Manager): | |
def get_query_set(self): | |
return SuperAwesomeQuerySet(self.model) | |
def __getattr__(self, attr): | |
if attr.startswith('__'): | |
raise AttributeError("%r object has no attribute %r" % | |
(self.__class__, attr)) | |
return getattr(self.get_query_set(), attr) |
set -g default-terminal "screen-256color" | |
set-window-option -g mode-keys emacs | |
# start window numbers at 1. 0 is so far over there | |
set -g base-index 1 | |
# set prefix to C-j instead of C-b | |
unbind C-b | |
set-option -g prefix C-j |
#!/bin/bash | |
# you can of course change mpg123 to mplayer or whatever you prefer | |
cat "$1" | grep -e '^File1' | cut -f 2 -d = | xargs mpg123 |
#models.py | |
class Activity(models.Model): | |
name = models.CharField() | |
start = models.DateTimeField() | |
end = models.DateTimeField() | |
#forms.py |
(global-set-key (kbd "C-c ;") '(lambda () (interactive) (point-to-register ?1))) | |
(global-set-key (kbd "C-c [") '(lambda () (interactive) (jump-to-register ?1))) |