Skip to content

Instantly share code, notes, and snippets.

View Narayana108's full-sized avatar
🕉️
Reprogramming the brain

Nārāyaṇa Narayana108

🕉️
Reprogramming the brain
  • 127.0.0.1
View GitHub Profile
### Keybase proof
I hereby claim:
* I am narayana108 on github.
* I am narayana (https://keybase.io/narayana) on keybase.
* I have a public key ASAfUmOXJtO2e4rKQOsSNnwZo6o2l2JOds11AHmxsrnjvAo
To claim this, I am signing this object:
@Narayana108
Narayana108 / downtime.py
Created September 21, 2020 12:39
Monitor website downtime
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import csv
import sys
import time
import socket
import datetime
import requests
@Narayana108
Narayana108 / postgres-docker-compose.yaml
Last active September 24, 2021 18:52
postgres - docker run and compose
# Username is postgres
# Database is postgres
version: '3.1'
services:
db:
image: postgres
restart: alwayshttps://gist.github.com/Narayana108/06d64e0699cbc8c165337ce9cbdda9a4
environment:
@Narayana108
Narayana108 / Local HTTP Server With Ruby and Python
Last active May 26, 2022 03:34
Simple Local HTTP Server With Ruby and Python
# Run a local HTTP server to display your HTML site in the browser
# Ruby HTTP server
ruby -run -e httpd . -p 8000
# Python HTTP server
python -m http.server
@Narayana108
Narayana108 / wc3_reforged_installation_guide.md
Last active September 2, 2023 14:31
Warcraft III Reforged installation guide via Lutris (Linux)

Warcraft III Reforged installation guide via Lutris

My setup:

  • Computer: Lenovo Thinkpad X1 Carbon 7th Gen - Drivers: Intel Vulkan
  • OS: EndevourOS (Arch Linux)
  • WM: BSPWM

Prerequisites:

Make sure you have all the prerequisites installed like drivers and wine for Lutris.

@Narayana108
Narayana108 / font-install.sh
Last active December 1, 2023 15:04
Installing TTF fonts on Debian
# Find the font that you want here:
# https://github.com/ryanoasis/nerd-fonts/releases/
# Then download and install
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip
dtrx JetBrainsMono.zip
sudo cp -avr JetBrainsMono/ /usr/share/fonts/truetype/
fc-cache -f -v
rm JetBrainsMono.zip