Skip to content

Instantly share code, notes, and snippets.

View skyrocknroll's full-sized avatar

Yuvaraj L skyrocknroll

View GitHub Profile
@skyrocknroll
skyrocknroll / nginx.md
Last active February 12, 2018 11:44
nginx keepalive performance tuning

Keepalive connections in upstream

upstream  microservieA {
server      10.0.0.10:57241;
keepalive 128;
}

location {
proxy_pass  microservieA;
proxy_http_version 1.1; 
@skyrocknroll
skyrocknroll / bash.md
Last active February 13, 2018 09:21
bash tricks xargs for loop
for a in `docker ps -q`; do echo =========$a======= ; docker exec -it $a supervisorctl status  ; done;
node {
// https://registry.hub.docker.com/_/maven/
def maven32 = docker.image('maven:3.2-jdk-7-onbuild');
stage 'Mirror'
// First make sure the slave has this image.
// (If you could set your registry below to mirror Docker Hub,
// this would be unnecessary as maven32.inside would pull the image.)
maven32.pull()
// We are pushing to a private secure docker registry in this demo.
@skyrocknroll
skyrocknroll / ubuntu.sh
Last active July 12, 2022 17:52
ubuntu 20.04 #ubuntu #setup
Install gnome-tweak-tool
* Glipper does not work any more use gnome extension which works awesome `https://extensions.gnome.org/extension/779/clipboard-indicator/`
* netspeed indicator
* Finally great launcher found https://github.com/Ulauncher/Ulauncher/
* Sound input device switcher https://extensions.gnome.org/extension/906/sound-output-device-chooser/
* Gtile https://extensions.gnome.org/extension/28/gtile/
* Printer https://extensions.gnome.org/extension/1218/printers/
* Very good Mac Theme https://github.com/vinceliuice/WhiteSur-gtk-theme https://www.gnome-look.org/p/1403328/
@skyrocknroll
skyrocknroll / main.go
Created January 8, 2018 02:33 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@skyrocknroll
skyrocknroll / protobuf.sh
Created November 3, 2017 07:50
Install protobuf 3 on ubuntu 16
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip
# Unzip
unzip protoc-3.4.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@skyrocknroll
skyrocknroll / health.md
Last active February 20, 2020 09:38
telegraf plugins to enable
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
@skyrocknroll
skyrocknroll / disk.md
Created October 15, 2017 16:30
Deleted file but still held by process inode disk space

sudo lsof -F sn0 | tr -d '\000' | grep deleted | sed 's/^[a-z]([0-9])n/\1 /' | sort -n