Skip to content

Instantly share code, notes, and snippets.

View stupakov's full-sized avatar

Alex Stupakov stupakov

  • Pivotal
  • San Francisco
View GitHub Profile
@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

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 / gist:4367456
Created December 24, 2012 04:08
Nacre - Create class for resources, then subclass each resource
module Nacre
module API
class ProductServiceResource # Abstract Class
def self.api
Nacre::Api.global_instance
end
def self.all
search
end
TO PAYPAL:
https://www.sandbox.paypal.com/cgi-bin/webscr?a3=9&business=seller_1309413530_biz%40gmail.com&cmd=_xclick-subscriptions&currency_code=USD&invoice=32&item_name=XXX&item_number=XXX&notify_url=http%3A%2F%2Flocalhost%3A3000%2Fpayment_notifications&p3=1&return=http%3A%2F%2Flocalhost%3A3000%2Fcomplete_registrations%2Fnew%3Fsubscription_id%3D32&src=1&t3=M&upload=1
FROM PAYPAL:
GET http://localhost:3000/complete_registrations/new?invoice=30&amount3=9.00&address_status=confirmed&subscr_date=19%3A36%3A44+Jul+28%2C+2011+PDT&payer_id=C3BBVG2KVL9H2&address_street=1+Main+St&mc_amount3=9.00&charset=windows-1252&address_zip=95131&first_name=Test&reattempt=1&address_country_code=US&address_name=Test+User&notify_version=3.2&subscr_id=I-X1YLB35UYVGM&payer_status=verified&business=seller_1309413530_biz%40gmail.com&address_country=United+States&address_city=San+Jose&verify_sign=AO0VU3VIWAwosaKuXWbwhuA3w02gAMzJXmPnBD8usG-ZtCAREp0aOrm1&payer_email=buyer_1310094558_per%40gmail.com&last_name=User&address_state=CA&receiver
@stupakov
stupakov / weather_and_maps.html
Created July 9, 2011 18:23
Weather + Maps exercise.
<html>
<head>
<title>Hello</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0px; padding: 0px }
</style>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
// Calculator Constructor
var Calculator = function() {
//private
var q = [0];
var makeRpnFunction = function(op) {
return function() {
var v1 = q.pop();
if (v1 == undefined) {