Skip to content

Instantly share code, notes, and snippets.

@niun
niun / set-pretty-git-log-alias.sh
Last active February 17, 2024 04:05
git log graph --oneline with date and author and colored ref names as alias
## One line per log entry with merge graph
## (--decorate is implicit for newer git versions?):
#git log --graph --oneline --decorate
## |
## Add --branches --remotes --tags --merges to see entries for all of the
## corresponding refs, not only commits (--all for all refs).
## Format output with --pretty=tformat:'<format>'
## Interesting placeholders for oneline <format>:
@niun
niun / build-kdeconnect-kubuntu-14.04.sh
Last active September 16, 2017 14:11
Build and install kdeconnect from git repository on (k)ubuntu 14.04 and 13.10
sudo apt-get install build-essential cmake kdebase-workspace-dev libqjson-dev git libqca2-dev
git clone git://anongit.kde.org/kdeconnect-kde
cd kdeconnect-kde
cmake -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) ./
make
sudo make install
qdbus org.kde.kded /kded loadModule kdeconnect
kbuildsycoca4 -noincremental
@niun
niun / build-tmux-debian.sh
Last active October 23, 2015 14:02 — forked from t-cyrill/build-tmux.sh
build tmux 1.9a on debian (tested with raspbian wheezy on a raspberry pi)
#!/bin/bash
wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz"
tar -xf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
make verify
sudo make install