As configured in my dotfiles.
start new:
tmux
start new with session name:
| " Цветовая схема, color | |
| colorscheme tutticolori | |
| " Включить подсветку синтаксиса | |
| syntax on | |
| " == set number, установить нумерацию | |
| set nu | |
| " Проверять файл на кодировку в следующем порядке | |
| set fileencodings=ucs-bom,utf-8,cp1251,default,latin1 | |
| " Шрифт для gvim | |
| set guifont=Courier\ New\ 14 |
| apt-get install xvfb | |
| apt-get install firefox |
| #!/bin/bash | |
| # store the current dir | |
| CUR_DIR=$(pwd) | |
| # Let the person running the script know what's going on. | |
| echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
| # Find all git repositories and update it to the master latest revision | |
| for i in $(find . -name ".git" | cut -c 3-); do |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/sh | |
| TODAY=$(date +%m) | |
| FILE=~/.duesoon | |
| # This may be more complex than need be, but it permits months with or without leading zeroes | |
| let THISMO=$TODAY-0 | |
| if [ $THISMO = 12 ]; then | |
| let NEXTMO=01 | |
| else |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| This playbook has been removed as it is now very outdated. |
| #!/usr/bin/perl | |
| # | |
| # Brad's el-ghetto do-our-storage-stacks-lie?-script | |
| # | |
| sub usage { | |
| die <<'END'; | |
| Usage: diskchecker.pl -s <server[:port]> verify <file> | |
| diskchecker.pl -s <server[:port]> create <file> <size_in_MB> | |
| diskchecker.pl -l [port] |
| tell application "System Events" | |
| -- get current clipboard contents as a string | |
| set CurrentClipboard to the clipboard as string | |
| -- set the clipboad to your password | |
| set the clipboard to "Y0urVPNPa$$w0rd" | |
| -- start playing with the VPN | |
| tell current location of network preferences | |