Skip to content

Instantly share code, notes, and snippets.

# git
alias cm='git cm'
alias st='git st'
# git
alias pull='git pull'
alias push='git push'
alias t='git topo-log -15'
alias ggrep='git grep -n --color'
alias ci='git commit'
@stephanlascar
stephanlascar / somfy.py
Created January 25, 2013 13:03
Somfy ne proposant rien pour s'interface sur leur alarme, voilà un script python qui permet de s'y connecter. En attendant de trouver une solution plus pérenne.
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import mechanize
class SomfyException(Exception):
def __init__(self, value):
Exception.__init__(self, value)
self.value = value
def __str__(self):
@stephanlascar
stephanlascar / .bashrc
Last active February 1, 2019 22:38
Ma conf de Bash
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@stephanlascar
stephanlascar / .tmux.conf
Last active October 4, 2015 06:58
Ma conf de tmux
# prefix is CTRL-B and CTRL-X
set -g prefix C-b,C-x
# enable CTRL-B and CTRL-X under other programms (like vim) - you'll have to press twice le combination to have the ancien one
bind C-b send-prefix
bind C-x send-prefix
# UTF-8
set-option -g status-utf8 on
set-window-option -g utf8 on
@stephanlascar
stephanlascar / .vimrc
Last active October 1, 2015 07:48
Ma conf de vim
" This must be first, because it changes other options as side effect
set nocompatible
" coloration syntaxique
syn on
" met les buffers en arriere plan plutot que de les fermer
set hidden
" fond sombre
@stephanlascar
stephanlascar / .gitconfig
Created January 18, 2012 11:57 — forked from jpcaruana/.gitconfig
Ma conf de git
[color]
branch = auto
diff = auto
status = auto
interactive = auto
[user]
name = Stéphan Lascar
email = stephan.lascar@advys.fr
[alias]
last = cat-file commit HEAD