Skip to content

Instantly share code, notes, and snippets.

@apieum
apieum / .bashrc
Last active December 26, 2015 08:49
bashrc prompt
PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\W\[\033[00m\]\\$ '
@apieum
apieum / tig
Created October 24, 2013 10:24
tig bash completion
##
# bash completion support for tig
#
# Copyright (C) 2007-2010 Jonas fonseca
# Copyright (C) 2006,2007 Shawn Pearce
#
# Based git's git-completion.sh: http://repo.or.cz/w/git/fastimport.git
#
# The contained completion routines provide support for completing:
#
@apieum
apieum / .gitconfig
Last active November 20, 2019 12:48
~/.gitconfig
[alias]
co = commit
ca = commit -a
amend = commit --amend
st = status
who = shortlog -sne
oneline = log --pretty=oneline --abbrev-commit --graph
changes = diff --name-status
dic = diff --cached
diffstat = diff --stat
@apieum
apieum / .gitignore
Created October 24, 2013 11:40
.gitignore
#--------------------#
# Python Files #
#--------------------#
*.pyc
*.pyo
#--------------------#
# OS generated files #
#--------------------#
.DS_Store
.DS_Store?
@apieum
apieum / .inputrc
Created October 24, 2013 13:31
bash history
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
@apieum
apieum / .tmux.conf
Created October 24, 2013 13:34
tmux config
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
############################################################################
[
{ "keys": ["ctrl+shift+q"], "command": "exit" },
{
"keys": ["alt+shift+&"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
@apieum
apieum / Preferences.sublime-settings
Created November 10, 2013 11:30
Sublime Preferences
{
"bold_folder_labels": true,
"caret_style": "phase",
"ensure_newline_at_eof_on_save": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Python Flake8 Lint",
"Vintage",
"RestructuredText"
@apieum
apieum / Distraction Free.sublime-settings
Created November 10, 2013 11:32
Distraction Free mode in Sublime
{
"gutter": true,
"line_numbers": true,
"margin": -250,
"line_padding_top": 0,
"line_padding_bottom": 0
}
@apieum
apieum / gist:7513489
Last active December 28, 2015 14:19
koans 1
ExUnit.start
defmodule About_Functions do
use ExUnit.Case
use Koans
test "test function" do
hello
end
def hello do
IO.puts("hello")