Skip to content

Instantly share code, notes, and snippets.

View andragabr's full-sized avatar

Andra andragabr

View GitHub Profile
@andragabr
andragabr / README.md
Created December 22, 2019 17:05 — forked from danielepolencic/README.md
Create 3 nodes Kubernetes cluster locally with Vagrant

3 Virtual Machines Kubernetes cluster

Dependencies

You should install VirtualBox and Vagrant before you start.

Creating the cluster

You should create a Vagrantfile in an empty directory with the following content:

@andragabr
andragabr / gist:6451c92ba84d8afe039be7b1b4f9c4c3
Created August 1, 2017 10:13 — forked from jpospychala/gist:69d783f2eeeea1a9450e
create DigitalOcean droplet from shell with curl and rcli
# this script expects $DOTOKEN variable with your digital ocean token
# this script gets or creates smallest DO droplet and remotely executes script on it
# afterwards, droplet is destroyed
DROPLETNAME=example.com
DOHOME="https://api.digitalocean.com/v2"
cat <<EOF > .curlargs
-s
-H "Authorization: Bearer $DOTOKEN"
30 April 2013
https://gist.github.com/anonymous/5491171
DevOps Days
@andragabr
andragabr / 01_intro.md
Created October 8, 2016 17:56 — forked from lost-theory/01_intro.md
Monitorama 2014 notes

Monitorama 2014 notes

http://monitorama.com/

Best talks day 1:

  • Please, no More Minutes, Milliseconds, Monoliths... or Monitoring Tools! - Adrian Cockcroft
    • gave 5 good rules for monitoring systems, showed what cloud / microservices monitoring looks like @ Netflix
  • Simple math to get some signal out of your noisy sea of data - Toufic Boubez
  • explains why static alert thresholds don't work and gave 3 techniques to use instead
@andragabr
andragabr / notes.md
Created October 8, 2016 17:56 — forked from lost-theory/notes.md
DevOps Master Class & Opbeat Launch, 2014-09-26
@christianberg
christianberg / create-docker-droplet.sh
Last active April 14, 2024 17:25
Shell script to create a Digital Ocean Droplet and install docker
#!/bin/bash
set -e
SECRETFILE=~/.digitalocean
if [[ -z $DIGOCEAN_ID ]] || [[ -z $DIGOCEAN_KEY ]]; then
if [ -e $SECRETFILE ]; then
. $SECRETFILE
fi
fi
@hugs
hugs / selenium-examples.py
Created February 16, 2011 19:40
Example code for using the Selenium 2 Python bindings.
# To install the Python client library:
# pip install -U selenium
# Import the Selenium 2 namespace (aka "webdriver")
from selenium import webdriver
# iPhone
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub')
# Android
@2-718
2-718 / gist:712288
Created November 23, 2010 18:56
Generating SSH keys (OSX)

Generate ssh public keypair

$ cd ~/.ssh
$ ssh-keygen -t rsa -C "EMAIL"
Filename: EMAIL
Passphrase: choose appropriate passphrase
$ ssh-add EMAIL

Enable ssh-agent

$ ssh-agent bash

$ ssh-add ~/.ssh/id_rsa