Skip to content

Instantly share code, notes, and snippets.

View phra's full-sized avatar
💻
root@localhost ~#

Francesco Soncina phra

💻
root@localhost ~#
View GitHub Profile

Keybase proof

I hereby claim:

  • I am phra on github.
  • I am phra (https://keybase.io/phra) on keybase.
  • I have a public key whose fingerprint is B52F AC34 A07E B53F 340E 9854 91FF 93D1 B85D 76B5

To claim this, I am signing this object:

@phra
phra / .vimrc
Created November 3, 2016 11:16
Vi iMproved config
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" " Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
"
@phra
phra / preprocessor_fun.h
Created July 8, 2016 16:34 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
#export PS1="\[\033[36m\][\D{%a %e:%b:%g %T}] \`if [ \$? = 0 ]; then echo -e '\e[01;32m:)'; else echo -e '\e[01;31m:('; fi\` \[\e[01;32m\]\u@\h:\[\e[01;34m\]\w\[\e[01;34m\]\$\[\e[00m\] "
export PS1="\[\033[36m\][\D{%a%e:%b:%g %T}] \[\e[01;32m\]\u@\h:\[\e[01;34m\]\w\[\e[01;34m\]\$\[\e[00m\] "
extract() {
while (($#)); do
case $1 in
-h|--help) exit 0 ;;
--) shift; break ;;