Skip to content

Instantly share code, notes, and snippets.

Avatar

Saager Mhatre dexterous

View GitHub Profile
@dexterous
dexterous / devops-maturity.md
Last active Jun 4, 2021
Article text from "Is DevOps Falling into the Maturity Trap?"
View devops-maturity.md

Is DevOps Falling into the Maturity Trap?

@DevOpsSummit #CloudNative #Serverless #DevOps

BY JASON BLOOMBERG

APRIL 29, 2018 07:00 PM EDT

Guest post by Intellyx Principal Analyst Charles Araujo

I was at a conference recently when I saw it. I sighed and shook my head.

View ArtIsNotAboutYou.md

Art is Not About You

Forked from a community statement about Clojure

The only people entitled to say how art 'ought' to work are people who make art, and the scope of their entitlement extends only to their own art.

Just because someone creates something does not imply they owe the world a change in their status, focus and effort, e.g. from artist to community manager.

As an appreciator of a piece of art you are not thereby entitled to anything at all. You are not entitled to a say in how it evolves. You are not entitled to timely updates. You are not entitled to the attention of the artist. You are not entitled to having value attached to your complaints. You are not entitled to this explanation.

View path_props.clj
(->> (System/getProperties)
(filter #(clojure.string/ends-with? (key %) ".path"))
(map #(clojure.string/join "\n\t" (cons (key %) (clojure.string/split (val %) (re-pattern java.io.File/pathSeparator)))))
(clojure.string/join "\n\n")
(println))
View cond-build-run.sh
#!/bin/bash -e
if [[ -n "$DEBUG" ]]; then
set -x
PS4='+ [ $(date +%T) ] '
fi
if [[ -f ./main.exe && ./main.exe -ot ./main.cs ]]; then
echo -n "Compiled binary outdated; removing... "
@dexterous
dexterous / settings.json
Last active May 5, 2021
Windows Terminal Settings
View settings.json
// This file was initially generated by Windows Terminal 0.11.1121.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@dexterous
dexterous / move_from_dead_letter.py
Last active Oct 5, 2018
Some people just don't get how to do concurrency/parallelism right. (sigh!)
View move_from_dead_letter.py
import boto3
import sys
import Queue
import threading
work_queue = Queue.Queue()
sqs = boto3.resource('sqs')
from_q_name = sys.argv[1]
@dexterous
dexterous / TestHarnessHTTPServer.groovy
Last active Oct 21, 2020
Quick and dirty HTTP server for functional tests that presents itself as a Future.
View TestHarnessHTTPServer.groovy
import java.util.concurrent.CompletableFuture
import java.util.concurrent.TimeUnit
import java.util.concurrent.CancellationException
import java.util.concurrent.TimeoutException
import java.net.InetSocketAddress
import com.sun.net.httpserver.HttpServer
import com.sun.net.httpserver.HttpHandler
import com.sun.net.httpserver.HttpExchange
View sum-of-squares.clj
(defn sum [coll]
(apply + coll))
(defn squares [coll]
(map #(* % %) coll))
(def first-n take)
(defn integers []
(iterate inc 1))
@dexterous
dexterous / fizzbuzz
Created Oct 7, 2017
A succinct bash fizzbuzz
View fizzbuzz
#!/bin/bash -e
#set -o xtrace
if [[ $# -lt 1 ]]; then
echo '
Usage: fizzbuzz upto
upto: The number upto which to count
'
@dexterous
dexterous / an-american-bakt.md
Last active Mar 15, 2017
An American Bakt[sic]?? -Jason K
View an-american-bakt.md

As posted on Facebook; and subsequently deleted

As an American and a self confessed Indophile, I had a lot of insights I gleaned while traversing the length and breadth of the country. Incidentally I take care of funded projects and this exposes me to a interactions with the poor and ultra poor of the country. Hopefully I will debunk a few myths about India, which my North American colleagues should know, along with some Indians who will hopefully read this post:

  1. Like it or leave it, the hinterland of India is firmly behind Modi. They don't give a rat's ass if you call them his followers, or "bakts" as I have heard. For the first time they have a leader and a party that has gone through almost 3 years without a single financial scam against their name. For a country used to spectacular monetary frauds and a silent PM who took plausible deniability to laughable proportions, this is a great and welcome change
  2. Muslim don't hate Modi. Educated intelligent non Muslims (read Hindus) hate him more! Simply