Skip to content

Instantly share code, notes, and snippets.

View rdodev's full-sized avatar

Ruben Orduz rdodev

  • Gainesville, FL
View GitHub Profile
@rdodev
rdodev / setup.sh
Last active October 15, 2017 21:32
Basic K8s Setuo
apt update && apt upgrade -y
apt-get install linux-image-$(uname -r) -y
apt install apt-transport-https ca-certificates curl software-properties-common build-essential -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt update
apt install docker-ce -y
service docker start
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
@jamiehannaford
jamiehannaford / add_backoff.php
Last active January 3, 2016 07:59
add guzzle backoff strategy to client object
<?php
// First make sure you have the BackoffPlugin installed:
// $ composer require guzzle/guzzle
use Guzzle\Plugin\Backoff\BackoffPlugin;
use OpenCloud\Rackspace;
$client = new Rackspace(Rackspace::US_IDENTITY_ENDPOINT, array(
'username' => 'foo',