Skip to content

Instantly share code, notes, and snippets.

View himanshusinghs's full-sized avatar

Himanshu Singh himanshusinghs

View GitHub Profile
@himanshusinghs
himanshusinghs / RNFirebaseMock.js
Last active March 14, 2019 08:53
React Native Firebase Mock
'use strict'
export class Database {
ref = (path) => {
if (!this[path]) {
this[path] = new Reference(path)
}
return this[path]
}
}
@himanshusinghs
himanshusinghs / iptables.sh
Created March 9, 2017 06:41
IP Tables redirection and revert to default
#For redirection
#sudo iptables -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 8080
#!/bin/sh
#
# rc.flush-iptables - Resets iptables to default values.
#
# Copyright (C) 2001 Oskar Andreasson <bluefluxATkoffeinDOTnet>
#
# This program is free software; you can redistribute it and/or modify