Skip to content

Instantly share code, notes, and snippets.

View rodesousa's full-sized avatar

rodesousa rodesousa

  • Kapelal
  • Paris
View GitHub Profile
# add repo
sudo apt-add-repository ppa:git-core/ppa
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt install terminator docker.io golang vim vagrant git python-pip -y
sudo apt install vim-nox tig puppet ctags -y
sudo npm install -g git2consul
  • Press Ctrl+F12 to show the Structure popup.
@rodesousa
rodesousa / alias.sh
Last active November 7, 2016 22:23
alias basrc custom
#
# HEROKU
#
# pour se co
#alias herologin='heroku login'
# check cb de temps il reste
#alias herops='heroku ps'

Exposer en localhost

alias dps="docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}'"

sudo usermod -aG 497 ${USER}

serveur web

package main

import (
    "fmt"
    "net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
#!/usr/bin/python
import subprocess
import sys
import os
import yaml
import paramiko
import argparse
from paramiko import SSHClient
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# config
git config --global user.name "rodesousa" && git config --global user.email [email protected]
git config --global core.editor "vim"
# Pour convertir les retours à la ligne Windows -> Linux
git config --global core.autocrlf true
# alias
git config --global alias.cmm "commit -s -m"
git config --global alias.cma "commit --amend"

ARGUMENT VIM

  • vim $(*) -- ajoute * dans le args

L'AUTO-COMPLETION

  • :NeoCompleteEnable -- activer neocomplete

PERSONAL SHORTCUT