Skip to content

Instantly share code, notes, and snippets.

View kale887's full-sized avatar
:electron:

Aditya Kale kale887

:electron:
  • Mckinsey & Company
  • NJ/NY
View GitHub Profile
@broady
broady / Developing for speed.md
Last active November 8, 2018 04:40
Developing for speed: minimizing app latency at scale - Next '17

Developing for speed: minimizing app latency at scale - Next '17

You know that latency matters. Lower latency correlates to an increase in user engagement, sales and user satisfaction. In this session, we'll talk about sources of latency, how to investigate it (including benchmarking, profiling and tracing), how to minimize it and how to approach application design and make architectural decisions with latency in mind.

Talk page on Next '17 site

Video: https://www.youtube.com/watch?v=G8KuiDimU9w

Slides: Link TBD

@jonico
jonico / Jenkinsfile
Last active March 5, 2025 22:51
Example for a full blown Jenkins pipeline script with CodeQL analysis steps, multiple stages, Kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, …
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8
@hummus
hummus / gist:8592113
Last active September 26, 2024 01:29
aws cli + jq example
wget http://stedolan.github.io/jq/download/linux64/jq
aws ec2 describe-instances --filters "Name=tag:Name,Values=$NAME" \
"Name=instance-state-name,Values=running" \
| jq -r \
".Reservations[] | .Instances[] | .InstanceId" \
aws ec2 describe-volumes --filters \
"Name=status,Values=available" \
| jq -r ".Volumes[] | .VolumeId" \
@solar
solar / install.sh
Created October 16, 2012 09:56
install zookeeper with supervisord
#!/usr/local/bin/zsh
version="3.4.4"
priority="30404"
sudo mkdir -p /var/log/zookeeper /usr/local/zookeeper /var/zookeeper
curl -L http://ftp.kddilabs.jp/infosystems/apache/zookeeper/zookeeper-${version}/zookeeper-${version}.tar.gz | tar zx
sudo cp -r zookeeper-${version} /usr/local/zookeeper/${version}
sudo cp ./zookeeper.sh /usr/local/zookeeper/
sudo cp ./zoo.cfg /etc/