I hereby claim:
- I am zhovner on github.
- I am zhovner (https://keybase.io/zhovner) on keybase.
- I have a public key whose fingerprint is 61C0 51E3 7F9C F69F 203E A461 20C1 83F8 3DBA 0E63
To claim this, I am signing this object:
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
I hereby claim:
To claim this, I am signing this object:
set const | |
set historylog | |
set nohelp | |
set nowrap | |
set suspend | |
set undo | |
include "/usr/share/nano/nanorc.nanorc" | |
include "/usr/share/nano/c.nanorc" | |
include "/usr/share/nano/css.nanorc" | |
include "/usr/share/nano/debian.nanorc" |
set-option -g prefix ` | |
set -g base-index 1 | |
# send ` | |
bind-key a send-prefix | |
# start window index of 1 instead of 0 | |
set-option -g base-index 1 | |
# Start panes at 1 instead of 0. tmux 1.6 only |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBrightBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjQ1ODgyMzU2MTcgMC40NDMxMzcyODgxIDAuMzY4NjI3NDU4OAAQAoAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
# Simple python mailer | |
# How to use: mailer('subject', 'mail@address', bodyvar) | |
from subprocess import * | |
def mailer(MailerSubject, RecipientAddress, MailBody): | |
readBody = Popen(["/bin/echo", MailBody], stdout=PIPE) | |
mail = Popen(["/usr/bin/mail", "-s", MailerSubject, RecipientAddress], stdin=readBody.stdout, stdout=PIPE) | |
output = mail.communicate()[0] |
#!/bin/bash | |
# | |
# Run this script once per day | |
# | |
DOMAIN="ZHOVNER.COM" | |
if [ ! -f /tmp/$DOMAIN.old.whois.txt ]; then |
export LANG=en_US.UTF-8 | |
export LC_CTYPE=en_US.UTF-8 | |
if [ ! "$TMUX" ]; then | |
tmux attach | |
fi |
# После установки etckeeper | |
/etc/etckeeper/etckeeper.conf VCS="git" | |
etckeeper init && etckeeper commit | |
# ------ | |
git config --global user.name "My Machine" | |
git config --global user.email "[email protected]" |
# test disk write speed | |
dd if=/dev/zero of=/tmp/output.img bs=8k count=256k |