Skip to content

Instantly share code, notes, and snippets.

View nikhiljohn10's full-sized avatar

Nikhil John nikhiljohn10

View GitHub Profile
@nikhiljohn10
nikhiljohn10 / traefik.yml
Created August 4, 2022 05:52
Traefik Configuration with TLS
global:
checkNewVersion: true
sendAnonymousUsage: false
log:
level: ERROR
filePath: /var/log/traefik-log.log
accessLog:
filePath: /var/log/traefik-access.log
@nikhiljohn10
nikhiljohn10 / docker-compose.yml
Last active August 2, 2022 22:14
Docker Compose for Docker on VPS
version: "3.9"
services:
proxy:
image: "traefik:latest"
container_name: proxy
restart: always
depends_on:
- donet
@nikhiljohn10
nikhiljohn10 / ssh-setup.sh
Last active August 4, 2022 06:05
Github SSH Key Generation
[[ "$1" == "" ]] && echo "Please give email id as argument" && exit
ssh-keygen -t ed25519 -C "$1"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
echo "Your Public SSH Key is:"
cat ssh-add ~/.ssh/id_ed25519.pub
git config --global user.email "$1"
echo
echo "Run following to config git:"
echo " git config --global user.name \"Your Name\""
@nikhiljohn10
nikhiljohn10 / py.build.3.10.5.sh
Last active July 28, 2022 12:16
Python 3.10.5 Build Script for Ubuntu
#!/usr/bin/env bash
LOCAL_USER=$(whoami)
PREFIX="/home/$LOCAL_USER/.local"
SOURCE="$PREFIX/src"
BINARY="$PREFIX/bin"
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
@nikhiljohn10
nikhiljohn10 / sputnik_hunt.py
Created July 25, 2021 14:52
Co-Win Kerala Sputnik Hunt 1.0
#!/usr/bin/env python3
import requests
import argparse
from time import sleep
from os import system, name
from datetime import datetime
'''
==============================
@nikhiljohn10
nikhiljohn10 / docker-compose.yml
Created November 24, 2018 19:36
Portainer Registry Stack
version: "3.2"
services:
cache:
image: redis:alpine
volumes:
- cache:/bitnami/redis/data
networks:
- registry
environment: