Bike: Kona Dew Deluxe 2011
Frame: Kona 7005 Aluminum Butted, 61cm
Size: 61cm (24")
Weight: 10.2kg
Freewheel: Shimano HG30 11-32 9 spd (Hub???)\
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// [Fizzbuzz: One Simple Interview Question](https://www.youtube.com/watch?v=QPZ0pIK_wsc) | |
import "fmt" | |
func fizzbuzz(i int) (text string) { | |
fizz := i%3 == 0 | |
buzz := i%5 == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Initialize terraform so that the ansible-terraform-openstack dynamic | |
# inventory script can succeed. | |
bin_dir=${bin_dir:-$( cd "${BASH_SOURCE[0]%/*}" && pwd )} | |
source "$bin_dir/init.sh" # shared config with ansible, cidb, etc | |
export TF_VAR_OS_USERNAME="$OS_USERNAME" | |
export TF_VAR_OS_PASSWORD="$OS_PASSWORD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"roles": [ | |
{ | |
"operation": "read", | |
"resource": "widgets", | |
"name": "widget-reader" | |
}, | |
{ | |
"operation": "write", | |
"resource": "widgets", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu -o pipefail | |
set -xv | |
ssh_args='-i ./aws-jira.pem -o StrictHostKeyChecking=no -o PubkeyAuthentication=yes' | |
ssh_host=ubuntu@XXX.XXX.XXX.XXX | |
# Stop services so our backups are integral |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import yaml | |
def get_content(file='clouds.yaml'): | |
with open(file, 'r') as stream: | |
return yaml.safe_load(stream) | |
def set_content(file='clouds.yaml', content=None): | |
with open(file, 'wt') as stream: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Solution to exercise at https://tour.golang.org/methods/18 | |
// Exercise: Stringers | |
// Make the IPAddr type implement fmt.Stringer to print the address as a dotted quad. | |
// For instance, IPAddr{1, 2, 3, 4} should print as "1.2.3.4". | |
package main | |
import ( | |
"fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Square root implementation using Newton's Method | |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) (z float64) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu -o pipefail | |
ping_url='http://localhost:8081/artifactory/api/system/ping' | |
source /var/opt/jfrog/artifactory/etc/default | |
ARTIFACTORY_PIDFILE="$ARTIFACTORY_PID" | |
: ${START_TMO:=120} |
I hereby claim:
- I am shalomb on github.
- I am shalomb (https://keybase.io/shalomb) on keybase.
- I have a public key whose fingerprint is 6234 6401 0750 80B1 DADD D4EA C9DF B9FD 0BFC A396
To claim this, I am signing this object: