Skip to content

Instantly share code, notes, and snippets.

View zakhark's full-sized avatar

Zakhar Kleyman zakhark

View GitHub Profile
@zakhark
zakhark / Python2.rb
Last active November 22, 2019 22:29
class Python2 < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tar.xz"
sha256 "f222ef602647eecb6853681156d32de4450a2c39f4de93bd5b20235f2e660ed7"
revision 1
head "https://github.com/python/cpython.git", :branch => "2.7"
bottle do
sha256 "3df2279165039682443cd67c309ac8305fa1d9998fa0e72f76459a34d5bd3f94" => :catalina
@zakhark
zakhark / task_events
Created November 7, 2019 20:08
Task event logs
['2019-11-06 18:26:49 TASK_FINISHED: {"execution": 1, "status": "success", "timestamp": "0001-01-01T00:00:00Z"}', '2019-11-06 16:52:09 TASK_STARTED: {"execution": 1, "timestamp": "0001-01-01T00:00:00Z"}', '2019-11-06 16:52:06 TASK_DISPATCHED: {"execution": 1, "host_id": "i-05a1b22c6c528c5d8", "timestamp": "0001-01-01T00:00:00Z"}', '2019-11-06 16:51:02 TASK_SCHEDULED: {"execution": 1, "timestamp": "2019-11-06T16:51:02.925Z"}', '2019-11-06 16:50:42 TASK_RESTARTED: {"execution": 0, "user_id": "EVERGREEN_MONITOR", "timestamp": "0001-01-01T00:00:00Z"}', '2019-11-06 16:50:41 TASK_FINISHED: {"execution": 0, "status": "system-failed", "timestamp": "0001-01-01T00:00:00Z"}', '2019-11-06 16:31:08 TASK_STARTED: {"execution": 0, "timestamp": "0001-01-01T00:00:00Z"}', '2019-11-06 16:31:07 TASK_DISPATCHED: {"execution": 0, "host_id": "i-071a8fa4a2b2ab60f", "timestamp": "0001-01-01T00:00:00Z"}', '2019-11-06 16:31:04 TASK_SCHEDULED: {"execution": 0, "timestamp": "2019-11-06T16:31:04.546Z"}', '2019-11-06 16:31:04 TASK_ACTIVATE
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9tzqf59+neucpI63gMC554MCcC5wkF8mh3apBmTVBTijuDH3chbPJmiRPfkJVzT7zGRpouijhgJrmk8TlNstikpyismVmilgtvENZfJBfgmahjZMQBMx+bWukIrT3yuXTYLfhMecdkQEQMbE/gb2Hq1rgEFsW0jEaLq0rSWECdF8gXmqaoALgNusQp/fxsnqLHHBpQ6LZ3eHXSh7XdPd7/2kdkjRJieZCBcC2DRCukx3FvSH5oKocY+vhSdUS4v9Y1vCytXDajJ64NxQBoyZLEk7t/Xddq2qE/knv6uWeNoBqBtTc5HQ9gqdzviWXmKD6sjvLbRJ0WYCpd3JDVV4x

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@zakhark
zakhark / ec2spot.go
Created September 15, 2017 22:09
ec2spot.go
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"