Skip to content

Instantly share code, notes, and snippets.

View paraita's full-sized avatar
🏠
Working from home

Paraita Wohler paraita

🏠
Working from home
View GitHub Profile
@paraita
paraita / linux.zshrc
Last active December 14, 2015 09:29
.zshrc (linux)
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
unsetopt autocd
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/paraita/.zshrc'
@paraita
paraita / pythonstartup.py
Last active December 14, 2015 09:29
pythonstartup.py (voir zshrc linux)
try:
import readline
except ImportError:
print("Module readline not available.")
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
@paraita
paraita / emerge-for-git-linux.sh
Last active December 14, 2015 09:29
emerge for git (linux)
#!/bin/sh
emacs -Q $*
@paraita
paraita / fluxshutdown.sh
Last active December 14, 2015 09:28
menu fluxbox pour eteindre l'ordi (linux)
#!/bin/sh
# menu fluxbox pour eteindre l'ordinateur
# attention j'utilise zenity ici, sinon y'a un fallback x11 :)
## Zenity
# ans=$(zenity --width=40 --height=200 --title="Eteindre ?!" --list --text "Tu veux hoa éteindre ?!" --radiolist --column "Selection" --column "Choix" TRUE Eteindre FALSE Redémarrer); #echo $ans
# if [ "$ans" = "Eteindre" ]; then
# sudo shutdown
@paraita
paraita / linux.emacs
Last active December 14, 2015 09:29
.emacs (linux)
(load-file "/home/paraita/.emacs.d/plugins/cedet-1.1/common/cedet.el")
(global-ede-mode 'nil)
(semantic-load-enable-excessive-code-helpers)
(require 'semantic-ia)
(require 'semantic-gcc)
(setq ocl-base-dir "/opt/AMDAPP/include")
(semantic-add-system-include ocl-base-dir 'c++-mode)
(add-to-list 'auto-mode-alist (cons ocl-base-dir 'c++-mode))
@paraita
paraita / osx.emacs
Last active December 14, 2015 09:29
.emacs (osx)
(add-to-list 'load-path "/Users/paraita/.emacs.d/plugins")
;; org-mode syntax color highlighting
(setq org-src-fontify-natively t)
(require 'org-latex)
(setq org-export-latex-listings 'minted)
(add-to-list 'org-export-latex-packages-alist '("" "minted"))
;; yasnippet
(add-to-list 'load-path "~/.emacs.d/plugins/yas")
@paraita
paraita / osx.zshrc
Last active December 14, 2015 09:29
.zshrc (osx)
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
unsetopt autocd
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/paraita/.zshrc'
@paraita
paraita / emerge-for-git-osx.sh
Last active December 14, 2015 09:29
emerge for git (osx)
#!/bin/sh
/Applications/Aquamacs.app/Contents/MacOS/Aquamacs -Q $*
@paraita
paraita / osx.gitconfig
Last active December 14, 2015 09:29
.gitconfig (osx)
[user]
name = Paraita Wohler
email = milkyboi@gmail.com
[alias]
ac = !git add -A && git commit
glog = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
vglog = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative --name-only
[merge]
@paraita
paraita / osx.hgrc
Created March 1, 2013 15:07
.hgrc (osx)
[ui]
username = Paraita Wohler <milkyboi@gmail.com>