Instantly share code, notes, and snippets.

View gist:516ea541cd4546ee3e17bfd7777ac365
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
* {
font-size: 12pt !important;
}
#threadTree treechildren:-moz-tree-row
{
height: 30px !important;
}
#folderTree treechildren:-moz-tree-row
{
View gist:471d66da69764502859dd9cb6aed748d

A sense of urgency

As a newcomer to the company, and indeed a returnee to larger companies after ten years in startups, I've been finding my feet and getting a sense of the culture of the organization. I'm really impressed by the principles of the organization. I'm especially taken with One Microsoft and the Growth Mindset constructs. Using these it has been easy to orient myself towards mission.

What was less appealing, and slightly disturbing, is a lack of a sense of urgency and ownership in the org. In a startup it is all about execution, you're a lean, capital constrained organization with limited human resources. You have to get the right stuff done in the finite window available to you. The tempo is fast, your goals are challenging, sometimes even seemingly unrealistic. But in the best organizations, individuals and teams move with a clear sense of mission and with urgency. They feel ownership and are deeply invested in their customer's success.

At Microsoft I'm struggling to see that sense of urgenc

View run_riemann_server.sh
#!/bin/bash
git clone https://github.com/riemann/riemann.git
cd riemann
lein deps
cat << EOF > ./riemann.config
; -*- mode: clojure; -*-
; vim: filetype=clojure
View gist:22824c421e7fff89c48834467d0cf1c1
[ 25.975058] traps: gnome-shell[3218] general protection ip:7f767ebebd12 sp:7fff707077e0 error:0 in libgobject-2.0.so.0.5600.1[7f767ebb6000+52000]
[ 26.821634] ACPI BIOS Error (bug): Failure creating [\_GPE.XTBT.SPRT], AE_ALREADY_EXISTS (20180105/dswload2-350)
[ 26.821651] No Local Variables are initialized for Method [XTBT]
[ 26.821653] Initialized Arguments for Method [XTBT]: (2 arguments defined for method invocation)
[ 26.821654] Arg0: 00000000f46ed3a8 <Obj> Integer 0000000000000005
[ 26.821662] Arg1: 000000002ad9e656 <Obj> Integer 0000000002060002
[ 26.821668] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20180105/psobject-252)
[ 26.821674] ACPI Error: Method parse/execution failed \_GPE.XTBT, AE_ALREADY_EXISTS (20180105/psparse-550)
[ 26.821683] ACPI Error: Method parse/execution failed \_GPE.XTBT, AE_ALREADY_EXISTS (20180105/psparse-550)
[ 26.821693] ACPI Error: Method parse/execution failed \_GPE._E42, AE_ALREADY_EXISTS (20180105/psparse-55
View Prometheus commands
kubectl create namespace monitoring
kubectl create -f ./prom-config-map-v1.yml -n monitoring
kubectl create -f ./prom-config-rules-map-v1.yml -n monitoring
kubectl create -f ./prom-deployment.yml -n monitoring
kubectl create -f ./prom-service.yml --namespace monitoring
View prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
# - "first.rules"
# - "second.rules"
scrape_configs:
- job_name: 'prometheus'
View serverspec.json
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
View gist:7a48e9c36cf6e7806e9398527611528e
Things to do in Italy.
* Venice
Campo del Ghetto - Jewish ghetto.
Guggenheim Venice - http://www.guggenheim-venice.it/
Murano - glass blowing - very touristy but super interesting to watch.
Doge's Palace.
Coffee in the Piazzo San Marco
Visit every bacari and drink spritz (Venice's tapas...)
View aws-ecs-deploy.sh
NAME=server
ECR=<repo_url>
VERSION=${BUILD_NUMBER}
TAG=${ECR}/${NAME}:${VERSION}
eval $(aws ecr get-login)
docker build -t $TAG .
if[ $? -ne 0 ];then
echo "Docker build failed exiting"
View asg_notifications_lambda.js
var https = require('https');
var util = require('util');
var webhook = '/services/webhook';
var errorMessage = "ERROR";
exports.handler = function(event, context) {
console.log(JSON.stringify(event, null, 2));
console.log('From SNS:', event.Records[0].Sns.Message);
var postData = {