Skip to content

Instantly share code, notes, and snippets.

@yogin
yogin / install-docker.md
Created December 29, 2020 21:09 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@yogin
yogin / main.go
Created January 22, 2020 01:42
Hubspot API signatures in Go
package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
)
// Request ...
type Request struct {
@yogin
yogin / torn-safer-faction-give-to-user.user.js
Last active October 19, 2019 22:34
TORN UserScript: Safer Faction Give To User
// ==UserScript==
// @name TORN - Safer Faction Give To User
// @description Removes the background bars in the Faction's Give To User tab, so it is easier to read and search for members
// @version 0.1
// @author Sekor [2170311]
// @namespace https://github.com/yogin
// @homepage https://gist.github.com/yogin/f5f2337009c5263a0518dc94bec60b9d
// @match https://www.torn.com/factions.php?step=your*
// @grant none
// ==/UserScript==
@yogin
yogin / torn-friendly-faction-give-to-user.user.js
Last active August 7, 2019 03:54
TORN UserScript: Friendly Faction Give To User
// ==UserScript==
// @name TORN - Friendly Faction Give To User
// @description Removes the background bars in the Faction's Give To User tab, so it is easier to read and search for members
// @version 0.4
// @author Sekor [2170311]
// @namespace https://github.com/yogin
// @homepage https://gist.github.com/yogin/fcf60ad5e7737e5450ed926c3738b01a
// @match https://www.torn.com/factions.php?step=your*
// @grant none
// ==/UserScript==
@yogin
yogin / CryptoKitties.sol
Created January 28, 2018 19:06
CryptoKitties
// Copied from: https://ethfiddle.com/09YbyJRfiI
// CryptoKitties Source code
// Copied from: https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
@yogin
yogin / route53-asg-rrdns.sh
Created October 2, 2017 08:38 — forked from ambakshi/route53-asg-rrdns.sh
Add all instances in an autoscaling group to an equivalently named dns entry.
#!/bin/bash
#
# Get all IPs from an autoscale group and update set the local ip as
# equal weight A entries (round robin dns). Takes autoscale group as
# parameter.
#
# Amit Bakshi
# 10/21/2014
#
@yogin
yogin / installation.txt
Created March 9, 2017 01:57 — forked from teeebs/installation.txt
Script to mute or unmute and resolve a Datadog monitor
vagrant@kratos:~$ chmod +x manage_monitor.sh
vagrant@kratos:~$ sudo cp manage_monitor.sh /etc/init.d/manage_monitor
vagrant@kratos:~$ sudo update-rc.d manage_monitor defaults
@yogin
yogin / keybase.md
Created February 8, 2017 20:41
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@yogin
yogin / ladder.md
Created January 19, 2017 03:43 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder

1:1 questions

Always end with an assignment

What can I hold you accountable for next time we talk?

What can I be accountable to you for the next time we talk?

Short term

How is [project] going? What could we do to make it better?

Is there anything blocking you from getting your work done?

Are there any projects you’d really like to work on if you were given the opportunity?