Skip to content

Instantly share code, notes, and snippets.

View bpizzi's full-sized avatar

Baptiste Pizzighini bpizzi

View GitHub Profile
/* Copyright 2015-2021 Jack Humbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied wao the config.o the config.rranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@bpizzi
bpizzi / dotdeb.list
Created September 7, 2013 17:41
/etc/apt/sources.list.d/dotdeb.list Wheeze flavour
deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all
deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all
@bpizzi
bpizzi / .gitconfig
Created September 7, 2013 10:03
~/.gitconfig
[user]
name = Baptiste Pizzighini
email = baptiste@bpizzi.fr
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
diffc = diff --color
st = status
@bpizzi
bpizzi / agnoster.zsh-theme
Last active December 22, 2015 12:39
~/.oh-my-zsh/themes/agnoster.zsh-theme
# Original theme https://github.com/agnoster zsh theme
ZSH_THEME_GIT_PROMPT_DIRTY='±'
function _git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="$(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
echo "${ref/refs\/heads\//⭠ }$(parse_git_dirty)"
}
function _git_info() {
@bpizzi
bpizzi / .zshrc
Last active December 15, 2015 15:49
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Example aliases
@bpizzi
bpizzi / .tmux.conf
Last active December 15, 2015 15:49
####################### Colors
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg default
@bpizzi
bpizzi / .vimrc.bundles.local
Last active October 13, 2015 21:19
.vimrc.bundles.local
Bundle 'bpizzi/myvimcolors'
@bpizzi
bpizzi / .vimrc.local
Last active October 13, 2015 21:19
.vimrc.local
" GUI Settings {
set t_Co=256
color xoria256
" }
"They say DON'T USE ARROW KEYS, so here we go...
map <up> :wq!<cr>
map <down> :wq!<cr>
map <right> :bn<cr>
map <left> :bp<cr>
@bpizzi
bpizzi / bpizzi-xorg.conf
Created January 28, 2012 12:15
xorg.conf for 3 screen (xinerama) and two nvidia graphic cards
Section "ServerFlags"
Option "AutoAddDevices" "False"
Option "AllowEmptyInput" "False"
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 1680 0
Screen 1 "Screen1" RightOf "Screen0"
@bpizzi
bpizzi / bpizzi-archlinux-packages.sh
Created January 28, 2012 12:13
Archlinux Packages
#!/bin/sh
#### As root #######################################################################################
pacman -Syu
pacman -S pacman
#Prerequites
adduser
pacman -S sudo
#### As user #######################################################################################