As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/sh | |
# jekyll Starts and stops Jekyll | |
# | |
# | |
# chkconfig: - 85 15 | |
# description: Jekyll is a Ruby based website caching engine | |
# processname: jekyll | |
# pidfile: /var/run/jekyll.pid | |
# Configure your values here |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://gist.github.com/1595572). | |
# |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#pacman -S vicious | |
vicious = require("vicious") | |
-- {{{ Wibox | |
-- battery widget | |
batwidget = wibox.widget.textbox() | |
vicious.register(batwidget, vicious.widgets.bat, ' bat: $1 $2%<span color="#cccccc"> | </span>', 61, 'BAT0') |
def color(text, **user_styles): | |
styles = { | |
# styles | |
'reset': '\033[0m', | |
'bold': '\033[01m', | |
'disabled': '\033[02m', | |
'underline': '\033[04m', | |
'reverse': '\033[07m', |
#!/bin/bash | |
## cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html | |
cd /tmp | |
# install unzip just in case the user doesn't already have it. | |
if [[ `uname` = Linux ]]; then | |
sudo apt-get install unzip -y | |
wget "http://www.carrois.com/downloads/fira_4_1/FiraFonts4106.zip" |
#!/usr/bin/env python | |
from __future__ import division | |
import matplotlib.pyplot as plt | |
print('Enter integer number') | |
number = int(input()) | |
collatz_series = [] | |
collatz_series.append(number) |
for DIR in $(find ./ -type d); do | |
( | |
echo "<html>\n<body>\n<h1>Directory listing</h1>\n<hr/>\n<pre>" | |
ls -1pa "${DIR}" | grep -v "^\./$" | grep -v "^index\.html$" | awk '{ printf "<a href=\"%s\">%s</a>\n",$1,$1 }' | |
echo "</pre>\n</body>\n</html>" | |
) > "${DIR}/index.html" | |
done |
Section "InputClass" | |
MatchIsTouchpad "on" | |
Identifier "Touchpads" | |
Driver "mtrack" | |
# TrackpadDisable - Disables trackpad touch input. A value of 0 will enable the trackpad. A value of 1 will disable tapping and gestures but not movement. A value of 2 will disable all input. A value of 3 will also disable physical buttons. Integer. Default is 0. | |
# Sensitivity - Adjusts the sensitivity (movement speed) of the touchpad. This is a real number greater than or equal to zero. Default is 1. A value of 0 will disable pointer movement. | |
Option "Sensitivity" "0.65" | |
# FingerHigh - Defines the pressure at which a finger is detected as a touch. This is a percentage represented as an integer. Default is 5. | |
Option "FingerHigh" "12" | |
# FingerLow - Defines the pressure at which a finger is detected as a release. This is a percentage represented as an integer. Default is 5. |