Skip to content

Instantly share code, notes, and snippets.

View nnarain's full-sized avatar
🚀
Heya!

Natesh Narain nnarain

🚀
Heya!
View GitHub Profile
@nnarain
nnarain / agnoster-newline.zsh-theme
Created December 6, 2020 17:58 — forked from nweddle/agnoster-newline.zsh-theme
Agnoster ZSH Theme with New Line
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@nnarain
nnarain / blocklist.txt
Created May 17, 2019 21:25
PiHole BlockLists
https://dbl.oisd.nl/
#!/bin/bash
#Author: Guido Diepen
#Convenience script that can help me to easily create a clone of a given
#data volume. The script is mainly useful if you are using named volumes
#First check if the user provided all needed arguments
if [ "$1" = "" ]
@nnarain
nnarain / home-assistant-nginx-reverse-proxy.conf
Last active February 10, 2019 21:21
Home assistant NGINX reverse proxy
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
#server_name myhome;
listen 80;
listen [::]:80;
{
"label": "cppcheck",
"group": "test",
"command": "cppcheck src/gameboycore --enable=all -q",
"options": {
"cwd": "${workspaceFolder}"
},
"type": "shell",
"problemMatcher": {
"owner": "cpp",
https://cliutils.gitlab.io/modern-cmake/
@nnarain
nnarain / references.txt
Created August 19, 2018 21:28
Emulator References
Nintendo 64
-----------
* http://n64devkit.square7.ch/
from neopixel import *
from Queue import Queue
from SimpleXMLRPCServer import SimpleXMLRPCServer
from threading import Thread
from argparse import ArgumentParser
import logging
import time
class BacklightDriver:
# Find open ssh ports on network
nmap -sS -p 22 192.168.10.0/24
from myplugins import BasePlugin
from argparse import ArgumentParser
class Plugin1(BasePlugin):
def __init__(self):
BasePlugin.__init__(self, 'plugin1')
def init_parser(self, parser):
parser.add_argument('-t', '--topics')