Skip to content

Instantly share code, notes, and snippets.

🐋

Pavel Zhovner zhovner

🐋
Block or report user

Report or block zhovner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zhovner
zhovner / whois-change.sh
Created Jun 22, 2013
Monitoring whois changes for one domain
View whois-change.sh
#!/bin/bash
#
# Run this script once per day
#
DOMAIN="ZHOVNER.COM"
if [ ! -f /tmp/$DOMAIN.old.whois.txt ]; then
View osx-for-hackers.sh
#!/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'
View smartcard_scriptor
const
// Begining APDU command. "Payment System Environment (PSE)" 2pay.sys.ddf01
// The card should response with Application Identifier (AID)
PPSE = '00 a4 04 00 0e 32 50 41 59 2e 53 59 53 2e 44 44 46 30 31 00';
// Application Identifier (AID) start command prefix
// Possible AID's:
// A0000000031010 Visa International
// A0000000032020 Visa International
// A0000000041010 Mastercard International
View CNA to Safari
with AWS.Status;
with AWS.Response;
package Worker_Echoes.Apple.Captive is
function Service (Request : AWS.Status.Data)
return AWS.Response.Data;
end Worker_Echoes.Apple.Captive;
@zhovner
zhovner / etckeeper.sh
Created Feb 5, 2013
etckeeper setup with bitbucket repo
View etckeeper.sh
# После установки etckeeper
/etc/etckeeper/etckeeper.conf VCS="git"
etckeeper init && etckeeper commit
# ------
git config --global user.name "My Machine"
git config --global user.email "etckeeper@my.machine"
@zhovner
zhovner / avrdude-6.0.1_olimex-avr-isp-mk2.patch
Last active Mar 21, 2016
Patch for avrdude-6.0.1 and AVR-ISP-MKII
View avrdude-6.0.1_olimex-avr-isp-mk2.patch
Index: stk500v2.c
===================================================================
--- stk500v2.c (6.0.1)
+++ stk500v2.c (working copy)
@@ -1618,9 +1618,9 @@
baud = USB_DEVICE_AVRISPMKII;
PDATA(pgm)->pgmtype = PGMTYPE_AVRISP_MKII;
pgm->set_sck_period = stk500v2_set_sck_period_mk2;
- pgm->fd.usb.max_xfer = USBDEV_MAX_XFER_MKII;
- pgm->fd.usb.rep = USBDEV_BULK_EP_READ_MKII;
View .tmux.conf
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
@zhovner
zhovner / SublimeTerm.terminal
Created Jul 28, 2013
SublimeText theme for Terminal.app
View SublimeTerm.terminal
<?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
View mailer.py
# 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]
View .profile
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
if [ ! "$TMUX" ]; then
tmux attach
fi
You can’t perform that action at this time.