start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env ruby | |
require 'complex' | |
class Array | |
# DFT and inverse. | |
# | |
# Algorithm from | |
# 'Meyberg, Vachenauer: Hoehere Mathematik II, Springer Berlin, 1991, page 332' | |
# | |
# See http://blog.mro.name/2011/04/simple-ruby-fast-fourier-transform/ |
#!/bin/bash | |
# | |
# Little virt-install wrapper to save typing, supports the following: | |
# centos - Centos network install with optional ks | |
# fedora - Fedora network install with optional ks | |
# debian - Debian network install with optional ks | |
# ubuntu - Ubuntu network instal with option ks | |
# pxe - Boot a vm and tell it try PXE | |
# | |
# Setup: |
(add-to-list 'inf-ruby-implementations '("pry" . "pry")) | |
(setq inf-ruby-default-implementation "pry") | |
(setq inf-ruby-first-prompt-pattern "^\\[[0-9]+\\] pry\\((.*)\\)> *") | |
(setq inf-ruby-prompt-pattern "^\\[[0-9]+\\] pry\\((.*)\\)[>*\"'] *") |
--- | |
#### | |
#### THIS IS OLD AND OUTDATED | |
#### LIKE, ANSIBLE 1.0 OLD. | |
#### | |
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
#### | |
#### IF IT BREAKS I'M JUST SOME GUY WITH | |
#### A DOG, OK, SORRY | |
#### |
### Default script | |
$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title% | |
### My script | |
$rreplace($replace($if2(%albumartist%,%artist%),...,...),\\.\$,$noop(.))/$if($if2(%originaldate%,%date%),[$left($if2(%originaldate%,%date%),4)] ,)$rreplace($replace(%album%,...,...),\\.\$,$noop(.))$if($gt(%totaldiscs%,1),\, CD $num(%discnumber%,1),)$if($gt($left(%date%,4),$left($if2(%originaldate%,%date%),4)), [Released %date%],)/$num(%tracknumber%,2) - $replace(%title%,...,...) |
#!/bin/bash | |
# Workstation Configurator | |
# To setup this script, run: | |
# | |
# wget -O ~/.workstation git.io/workstation && . ~/.workstation setup | |
# | |
# This achieves a few things: | |
# - Installation & Setup of Programs (Interactive) | |
# - Provides ~/.workstation file which automatically loads function library |
# Ctrl-b is a bad prefix key, use Ctrl-a instead | |
set-option -g prefix C-a | |
unbind-key C-b | |
# Also assign Ctrl-a to send the prefix to a remote session | |
bind-key C-a send-prefix | |
# Windows should be numbered from 1 like panes | |
set -g base-index 1 |
deprecated
for_window [class="^.*"] border pixel 1
new_window 1pixel
thanks to deviatorslegacy's comment
Document here:
https://i3wm.org/docs/userguide.html#_default_border_style_for_new_windows
require 'rdoc' | |
converter = RDoc::Markup::ToMarkdown.new | |
rdoc = File.read(ARGV[0] || 'README.rdoc') | |
puts converter.convert(rdoc) | |
# ruby rdoc2md.rb > README.md | |
# ruby rdoc2md.rb ABC.rdoc > abc.md |