Skip to content

Instantly share code, notes, and snippets.

Avatar
🐋

Pavel Zhovner zhovner

🐋
View GitHub Profile
@zhovner
zhovner / stlink-1.5.1.rb
Last active Sep 29, 2020
Old verstion of st-flash
View stlink-1.5.1.rb
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 / 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 prehensile.networkwatcher.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>prehensile.networkwatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/python</string>
View oclHashcat64
Device #1: Hawaii, 3072MB, 1000Mhz, 44MCU
Device #2: Hawaii, 3072MB, 1000Mhz, 44MCU
Device #3: Hawaii, 3072MB, 1000Mhz, 44MCU
Device #4: Hawaii, 3072MB, 1000Mhz, 44MCU
Hashtype: MD4
Workload: 1024 loops, 256 accel
Speed.GPU.#1.: 22029.8 MH/s
Speed.GPU.#2.: 22070.9 MH/s
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 keybase.md

Keybase proof

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:

View nanorc
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"
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
You can’t perform that action at this time.