Skip to content

Instantly share code, notes, and snippets.

View ranjanashish's full-sized avatar

Ashish Ranjan ranjanashish

  • IIT Madras
  • Chennai, India
View GitHub Profile

macOS

Setup homebrew

Install homebrew

Refer to the installation instruction provided on the homepage.

NOTE: Once the installation script is done, it will display "Next steps". Follow them to complete the configuration.

@ranjanashish
ranjanashish / k8s-jprofiler-attach.sh
Created March 18, 2020 02:29 — forked from smola/k8s-jprofiler-attach.sh
Attach JProfiler agent to a JVM running in a Kubernetes pod
#!/bin/bash
set -e
if [[ -z ${K8S_JVM_POD} ]]; then
echo "K8S_JVM_POD not defined"
exit 1
fi
EXEC="kubectl exec ${K8S_JVM_POD}"
CP="kubectl cp ${K8S_JVM_POD}"

Vim

Install linters and fixers

shfmt

Windows

WinGet

winget install --source winget --exact --id 7zip.7zip
winget install --source winget --exact --id Amazon.AWSCLI
winget install --source winget --exact --id Docker.DockerDesktop
winget install --source winget --exact --id EclipseAdoptium.Temurin.21.JDK
winget install --source winget --exact --id EpicGames.EpicGamesLauncher
@ranjanashish
ranjanashish / tox.ini
Created June 2, 2018 03:35
tox configuration for python projects
[tox]
envlist = py36
skipsdist = True
[testenv]
deps = -rrequirements/dev.txt
commands = pytest --full-trace -x --cov-report term --cov-report html --cov={{ project_name }}
[flake8]
exclude = tests/*
@ranjanashish
ranjanashish / nginx.conf
Created June 2, 2018 03:32
nginx configuration for python projects
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@ranjanashish
ranjanashish / uwsgi.ini
Created June 2, 2018 03:30
uwsgi configuration for python projects
[uwsgi]
socket = %d/uwsgi.sock
chmod-socket = 666
chdir = %d/..
wsgi-file = wsgi_gevent.py
callable = app
gevent = 500
master = true
workers = 1
stats = 0.0.0.0:5001
@ranjanashish
ranjanashish / .dockerignore
Created June 2, 2018 03:23
docker configuration for python projects
# git
.git/
.gitignore
# python
htmlcov/
.tox/
.coverage
# vim