Skip to content

Instantly share code, notes, and snippets.

@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 / tigrc
Created September 16, 2016 21:56
tig config, bindings
bind generic + !git commit --amend
bind generic > !git push
bind generic P !git push -f
bind generic F !git fetch
bind generic <Lt> !git pull
bind stage l stage-update-line
###########################################################
# Samsung
###########################################################
# Series 7 / 9
keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*
keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*700Z*:pvr*
keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*700G*:pvr*
@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")
[
{ "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 / .tmux.conf
Created October 24, 2013 13:34
tmux config
##############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
############################################################################
@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 / .gitignore
Created October 24, 2013 11:40
.gitignore
#--------------------#
# Python Files #
#--------------------#
*.pyc
*.pyo
#--------------------#
# OS generated files #
#--------------------#
.DS_Store
.DS_Store?