Skip to content

Instantly share code, notes, and snippets.

Andriy Drozdyuk drozzy

  • Ottawa, Canada
Block or report user

Report or block drozzy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

View why-i'm-leaving-kubernetes-for-swarm.md

I have been an aggressive Kubernetes evangelist over the last few years. It has been the hammer with which I have approached almost all my deployments, and the one tool I have mentioned (shoved down clients throats) in almost all my foremost communications with clients, and it was my go to choice when I was mocking my first startup (saharacluster.com).

A few weeks ago Docker 1.13 was released and I was tasked with replicating a client's Kubernetes deployment on Swarm, more specifically testing running compose on Swarm.

And it was a dream!

All our apps were already dockerised and all I had to do was make a few modificatons to an existing compose file that I had used for testing before prior said deployment on Kubernetes.

And, with the ease with which I was able to expose our endpoints, manage volumes, handle networking, deploy and tear down the setup. I in all honesty see no reason to not use Swarm. No mission-critical feature, or incredibly convenient really nice to have feature in Kubernetes that I'm go

@toshimaru
toshimaru / terraform-ssh-remote-exec.tf
Last active Sep 8, 2019
How to connect to server via SSH and use remote-exec provisioner.
View terraform-ssh-remote-exec.tf
resource "digitalocean_droplet" "web" {
image = "ubuntu-16-04-x64"
name = "web-1"
region = "sgp1"
size = "512mb"
ssh_keys = [12345]
connection {
type = "ssh"
user = "root"
@luiscape
luiscape / install_packages.sh
Created Jan 16, 2017
Install Python dependency packages from requirements.txt using conda.
View install_packages.sh
#
# Original solution via StackOverflow:
# http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t
#
#
# Install via `conda` directly.
# This will fail to install all
# dependencies. If one fails,
# all dependencies will fail to install.
@jadlr
jadlr / pushbutton_handle_events.ex
Created Dec 9, 2016
`gen_statem` example rewritten in elixir using only handle_event functions
View pushbutton_handle_events.ex
defmodule PushButtonHandleEvents do
@behaviour :gen_statem
@name :pushbutton_statem
# Client API
def start do
:gen_statem.start({:local,@name}, __MODULE__, [], [])
end
@bretton
bretton / improved-lnd-bitcoind-mainnet.md
Last active Jul 29, 2019
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet
View improved-lnd-bitcoind-mainnet.md

Intro

This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet. It is ageing rapidly and includes steps not necessary on newer versions of LND

Original installation guide:

This guide is broken into the following sections:

  • Install bitcoind and set to start automatically
  • Install development tools and dependancies
You can’t perform that action at this time.