This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DEVICE="Wacom Intuos3 6x8" | |
STYLUS="$DEVICE Pen stylus" | |
ERASER="$DEVICE Pen eraser" | |
CURSOR="$DEVICE Pen cursor" | |
PAD="$DEVICE Pad pad" | |
# Stylus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\\]" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# Wacom Intuos3 6x8 pad | |
# _________________________________________________________________________ | |
# | | | |
# | ___ ___ ___ ___________________________________ ___ ___ ___ | | |
# | | | | | | | | | | | | | |
# | | | 1 | 4 | | 0 - Button 3 | | 6 | 8 | | | | |
# | | 0 |___| + | | 1 - Button 1 | | + |___| A | | | |
# | | | | | | | 2 - Button 2 | | | | | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |