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 | |
# | |
# Setup Lenovo USB keyboard with trackpoint | |
# Systemd users: | |
# /etc/udev/rules.d/99-lenovo-kbd.rules: | |
# ACTION=="add", ATTR{idVendor}=="17ef", ATTR{idProduct}=="6047", TAG+="systemd", ENV{SYSTEMD_WANTS}="udev-lenovo-kbd-attach.service" | |
# /etc/systemd/system/udev-lenovo-kbd-attach.service: | |
# [Service] | |
# Type=oneshot | |
# ExecStart=/usr/local/bin/lenovo_kbd.sh |
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 -e | |
# | |
# Put something like this into /etc/sudoers: | |
# Defaults env_reset,env_keep+="DEB* DIST ARCH ADT OS" | |
# Cmnd_Alias PBUILDER = /usr/sbin/pbuilder, /usr/bin/pdebuild, /usr/bin/debuild-pbuilder, /usr/sbin/cowbuilder, /usr/sbin/chroot, /usr/bin/git-buildpackage | |
# @adm ALL=(root) NOPASSWD: PBUILDER | |
# | |
[ -z "$DEBUG" ] || set -x |
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
# this is your configuration file for pbuilder. | |
# the file in /usr/share/pbuilder/pbuilderrc is the default template. | |
# /etc/pbuilderrc is the one meant for overwriting defaults in | |
# the default template | |
# | |
# read pbuilderrc.5 document for notes on specific options. | |
APTCACHE="/car/cache/pbuilder/aptcache" | |
USENETWORK="no" | |
HOOKDIR="/etc/pbuilder/hooks" |
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
""" Common behavior | |
" Theme and colors | |
let base16colorspace=256 | |
set background=dark | |
" Disable stupid backup and swap files - they trigger too many events for file | |
" system watchers | |
set nobackup | |
set nowritebackup | |
set noswapfile |
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 | |
VENV_HOME=${VENV_HOME:-$HOME/virtualenv} | |
SHELL=${SHELL:-/bin/zsh} | |
exit_err() { | |
echo "[ERROR] $1" 1>&2 | |
exit 1 | |
} |
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/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Tool for commands execution over clusters | |
""" | |
import os, sys, logging, urllib | |
import argparse | |
import threading |
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/env python3 | |
""" | |
Display gluster traffic | |
This tool uses gluster profiling feature, parsing cumulative statistics. | |
To understand correctly the results, you have to divide overall write statistics with number of replicas. | |
Also striped volumes needs to be taken in mind - overall statistics just print sum of all bricks | |
read/written bytes. |
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 | |
VENV_HOME=${VENV_HOME:-$HOME/virtualenv} | |
SHELL=${SHELL:-/bin/zsh} | |
exit_err() { | |
echo "[ERROR] $1" 1>&2 | |
exit 1 | |
} |
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 | |
# | |
# Simply make some noise to notify user | |
# Usage: | |
# alarm.sh [message] | |
# echo alarm.sh | at 15:30 | |
# | |
## Required variables | |
export DISPLAY=${DISPLAY:-":0.0"} |
NewerOlder