Skip to content

Instantly share code, notes, and snippets.

View nlamprian's full-sized avatar

Nick Lamprianidis nlamprian

View GitHub Profile
#!/bin/sh
DEVICE="Wacom Intuos3 6x8"
STYLUS="$DEVICE Pen stylus"
ERASER="$DEVICE Pen eraser"
CURSOR="$DEVICE Pen cursor"
PAD="$DEVICE Pad pad"
# Stylus
@nlamprian
nlamprian / .bashrc
Last active August 29, 2015 14:14
customized PS1 for git
function in_git_repo_name {
ps_git_name="\\[\e[01;33m\\]$(basename `git rev-parse --show-toplevel`)\\[\e[0m\\]"
}
function in_git_repo_branch {
# if there are uncommitted changes, include an asterisk (*) character
local star=$(if [ -n "$(git status -s)" ]; then echo '*'; fi)
ps_git_branch="\\[\e[01;36m\\]($(git rev-parse --abbrev-ref HEAD)$star)\\[\e[0m\\]"
}
@nlamprian
nlamprian / kinect_filter_dependencies.bash
Last active August 29, 2015 14:04
A script to install GLUT, GLEW, libfreenect, OpenCV, and OpenCL (AMD SDK) on Ubuntu 14.04
#!/bin/bash
NC=`nproc`
sudo apt-get install -y git-core cmake libglew-dev
# OpenCV
# https://help.ubuntu.com/community/OpenCV
read -n 1 -s -p "Press a key to continue with OpenCV... "
echo ""
@nlamprian
nlamprian / xsetwacom_intuos.sh
Last active September 26, 2020 23:49
Configures Wacom Intuos3 tablet on Linux
#!/usr/bin/sh
# Wacom Intuos3 6x8 pad
# _________________________________________________________________________
# | |
# | ___ ___ ___ ___________________________________ ___ ___ ___ |
# | | | | | | | | | | | |
# | | | 1 | 4 | | 0 - Button 3 | | 6 | 8 | | |
# | | 0 |___| + | | 1 - Button 1 | | + |___| A | |
# | | | | | | | 2 - Button 2 | | | | | | |
@nlamprian
nlamprian / capslock_lctrl_remap.sh
Last active August 29, 2015 14:00
Swaps "Caps Lock" and "Left Ctrl" in Ubuntu
#!/bin/sh
# Script to remap the "Caps Lock" and "Left Ctrl" keys
# The change persists between sessions
#
# Caps Lock -> Left Ctrl
# Left Ctrl -> Caps Lock
#
# Make it executable and run it:
# chmod +x capslock_lctrl_remap.sh