Skip to content

Instantly share code, notes, and snippets.

Nicolas Ehrhardt NicolasEhrhardt

View GitHub Profile
@NicolasEhrhardt
NicolasEhrhardt / Makefile
Last active Aug 29, 2015
Makefile of pidgin-xmpp-ignore-groups
View Makefile
CC ?= gcc
PLUGINDIR ?= $(shell pkg-config --variable=plugindir purple)
CFLAGS += -Wall -fPIC
LDFLAGS += -L$(PLUGINDIR) -ljabber -shared
CPPFLAGS += $(shell pkg-config --cflags glib-2.0 purple)
LIBS += $(shell pkg-config --libs glib-2.0 purple)
TARGET = libxmpp-ignore-groups.so
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

View Terminal.md

ctrl + (←|→) move between args

ctrl + (A|E) move (beginning | end)

ctrl + U delete line

ctrl + K delete after cursor

ctrl + W delete previous word

@NicolasEhrhardt
NicolasEhrhardt / rotateAll.sh
Created May 14, 2014
Images operations on folder
View rotateAll.sh
#/bin/bash
input=$1
output=$2
mkdir -p $output
for line in $(ls $1)
do
convert $input/$line -rotate -90 $ouput/$line
@NicolasEhrhardt
NicolasEhrhardt / extractinfo.sh
Last active Apr 11, 2020
{OpenVPN, Freebox, Ubuntu} Script de reformatage du fichier de configuarion
View extractinfo.sh
#/bin/bash
# make output file
basedir=~/.openvpn
vpnconfigdir=$basedir/$2
mkdir -p $basedir
mkdir -p $vpnconfigdir
# print Gateway
sed -n 's/remote \([^ ]\+\) [0-9]\+/passerelle: \1/p' $1
You can’t perform that action at this time.