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
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 / 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;
@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"
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;
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 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'
@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
You can’t perform that action at this time.