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', | 
| 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. | 
| #!/bin/bash | |
| # | |
| # This is sp, the command-line Spotify controller. It talks to a running | |
| # instance of the Spotify Linux client over dbus, providing an interface not | |
| # unlike mpc. | |
| # | |
| # Put differently, it allows you to control Spotify without leaving the comfort | |
| # of your command line, and without a custom client or Premium subscription. | |
| # | 
The avconv utility can be made to work in 'the Unix way' by specifying stdin and/or stdout instead of filenames for the input and output respectively. See: http://libav.org/avconv.html#pipe
Example:
cat input.ts | avconv -i pipe:0 -f mp4 -movflags frag_keyframe pipe:1 | cat > output.mp4
Using node's require('child_process').spawn(), we can pipe streams of video data through avconv's stdin and stdout and thus Stream All The Things.
var fs = require('fs');| ! cholesky_d.f -*-f90-*- | |
| ! Using Cholesky decomposition, cholesky_d.f solve a linear equation Ax=b, | |
| ! where A is a n by n positive definite real symmetric matrix, x and b are | |
| ! real*8 vectors length n. | |
| ! | |
| ! Time-stamp: <2015-06-25 18:05:47 takeshi> | |
| ! Author: Takeshi NISHIMATSU | |
| ! Licence: GPLv3 | |
| ! | |
| ! [1] A = G tG, where G is a lower triangular matrix and tG is transpose of G. |