Skip to content

Instantly share code, notes, and snippets.

View nitinsatish's full-sized avatar
🎯
Focusing

Nitin nitinsatish

🎯
Focusing
View GitHub Profile
@nitinsatish
nitinsatish / jd_deploy.md
Last active May 10, 2022 06:42
[jdeployer new image deployment] #juniper
  1. If jdeployer needs to be built. This happens when we want to incorporate new JD code.
cd Repos/atom/jdeployerSaaS
./jdeployer_image_builder.sh
  1. Tag this new JD image
docker tag jdeployer:220422 svl-artifactory.juniper.net/atom-docker/atom-of/mukil/jdeployer:R1.2
@nitinsatish
nitinsatish / regions_code.md
Created January 13, 2022 08:24
[AWS regions]#aws

Python code

regions = [r['RegionName'] for r in boto3.client('ec2').describe_regions()['Regions']]
@nitinsatish
nitinsatish / docker_image_cleanup.md
Created December 16, 2021 12:45
[Docker image cleanup] #docker
docker image prune -f
docker rmi $(docker images -q)
docker rm -v $(docker ps -qa)
@nitinsatish
nitinsatish / git_branch_issues.md
Last active May 20, 2021 10:17
[Git branch issues] #git

Make sure you've pulled the new upstream branch into your local repo:

  1. First, ensure your working tree is clean (commit/stash/revert any changes) Then,

git fetch upstream

to retrieve the new upstream branch 2. Create and switch to a local version of the new upstream branch (newbranch):

@nitinsatish
nitinsatish / ls.rst
Created April 16, 2021 07:50 — forked from amitsaha/ls.rst
How does `ls` work?

How does ls work?

I wanted to be really able to explain to a fair amount of detail how does the program ls actually work right from the moment you type the command name and hit ENTER. What goes on in user space and and in kernel space? This is my attempt and what I have learned so far on Linux (Fedora 19, 3.x kernel).

How does the shell find the location of 'ls' ?

@nitinsatish
nitinsatish / tail.py
Created February 6, 2021 09:47 — forked from amitsaha/tail.py
Simple implementation of the tail command in Python
'''
Basic tail command implementation
Usage:
tail.py filename numlines
'''
import sys
import linecache
@nitinsatish
nitinsatish / influxdb-setup.md
Created October 19, 2020 10:09 — forked from travisjeffery/influxdb-setup.md
Guide to setting up InfluxData's TICK stack

Guide to setting up InfluxData's TICK stack

InfluxData's T.I.C.K. stack is made up from the following components:

Component Role
Telegraf Data collector
InfluxDB Stores data
Chronograf Visualizer
@nitinsatish
nitinsatish / System Design.md
Created December 15, 2019 10:10 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@nitinsatish
nitinsatish / System Design.md
Created December 15, 2019 10:10 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@nitinsatish
nitinsatish / nginxproxy.md
Created August 26, 2019 11:14 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers