Skip to content

Instantly share code, notes, and snippets.

View stupakov's full-sized avatar

Alex Stupakov stupakov

  • Pivotal
  • San Francisco
View GitHub Profile
content
@stupakov
stupakov / gist:e17a4c45fa3d3d6624298c30d2d6462d
Last active January 1, 2018 23:39
Yearly reflection prompts
Where did you begin 2016?
Who were you with?
Where did most of your money go?
How many people did you sleep with in 2016?
Did you suffer illness or injury?
Did you know anybody who got married?
Did anyone close to you give birth?
Did you lose anybody close to you in 2016?
Did you move anywhere?
Other than home, where did you spend most of your time?

Keybase proof

I hereby claim:

  • I am stupakov on github.
  • I am stupakov (https://keybase.io/stupakov) on keybase.
  • I have a public key ASDELu9FpJFtJF_JXEUz47q1ouaDKvc8HGfyGihVsZv8Lgo

To claim this, I am signing this object:

@stupakov
stupakov / # macvim - 2017-03-15_17-16-53.txt
Created March 16, 2017 00:17
macvim on macOS 10.12.3 - Homebrew build logs
Homebrew build logs for macvim on macOS 10.12.3
Build date: 2017-03-15 17:16:53
@stupakov
stupakov / # macvim - 2017-03-15_16-58-09.txt
Created March 16, 2017 00:01
macvim on macOS 10.12.3 - Homebrew build logs
Homebrew build logs for macvim on macOS 10.12.3
Build date: 2017-03-15 16:58:09
@stupakov
stupakov / butterfleye-wufoo-css.css
Created December 13, 2014 22:02
Butterfleye Wufoo Form CSS
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro);
.wufoo{
font-family: 'Source Sans Pro', sans-serif;
}
@stupakov
stupakov / gist:5fcb30b80fa86a13f447
Created July 23, 2014 22:00
Logs from mysql node 0, observing the addition of a node 1. Contains successful SST followed by errors (presumably due to replication of data created by mysql_upgrade)
140723 21:00:28 [Note] WSREP: Shifting SYNCED -> DONOR/DESYNCED (TO: 2391)
140723 21:00:28 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
140723 21:00:28 [Note] WSREP: Running: 'wsrep_sst_rsync --role 'donor' --address '10.244.1.6:4444/rsync_sst' --auth '(null)' --socket '/var/vcap/sys/run/mysql/mysqld.sock' --datadir '/var/vcap/store/mysql/' --defaults-file '/etc/mysql/my.cnf' '' --gtid '639c752a-11fe-11e4-bd3a-83e44d1f3812:2391''
140723 21:00:28 [Note] WSREP: sst_donor_thread signaled with 0
140723 21:00:28 [Note] WSREP: Flushing tables for SST...
140723 21:00:28 [Note] WSREP: Provider paused at 639c752a-11fe-11e4-bd3a-83e44d1f3812:2391 (5)
140723 21:00:28 [Note] WSREP: Tables flushed.
140723 21:00:28 [Warning] WSREP: error executing 'SET GLOBAL innodb_disallow_writes=1': 1193 (Unknown system variable 'innodb_disallow_writes'). Was mysqld built with --with-innodb-disallow-writes ?
140723 21:00:28 [ERROR] WSREP: Failed to disallow InnoDB writes
140723 21:00:39 [Warning] WSREP: error
@stupakov
stupakov / gist:c51515945b8738f10862
Created May 20, 2014 02:34
referralcandy debugging - attempt 2

MD5 was generated by:

# ruby
string = [email, first_name, invoice_amount, timestamp, account_secret].join(',')
Digest::MD5.hexdigest(string)

(Values are not URI-escaped before computing the MD5 sum.)

@stupakov
stupakov / gist:f0bf4fc7aa1e6c6ab337
Last active August 29, 2015 14:01
referralcandy debugging

MD5 was generated by:

# ruby
string = [email, first_name, invoice_amount, timestamp, account_secret].join(',')
Digest::MD5.hexdigest(string)

(Values are not URI-escaped before computing the MD5 sum.)

@stupakov
stupakov / gist:11227904
Created April 23, 2014 18:50
Encrypted USB Drive + SSH key directions

In case you haven't yet set up an encrypted USB drive yet, this article has clear directions on how to encrypt an entire USB drive. If you don't have a USB drive that you want encrypted, please talk to your anchor or send an ask ticket for a USB drive that you can dedicate to this purpose.

From there, you can follow GitHub's directions for adding a new SSH key to your account, making sure to save the key on your now-encrypted drive (not the default location in your home directory). Please use a password different from the USB drive's password and different from your GitHub account password. (Since you're already in your account settings, this would also be a great time to enable two-factor authentication on GitHub as well.)

Then, to make it super-easy to just plug in your USB key and activate your SSH ke