Skip to content

Instantly share code, notes, and snippets.

View makanikai's full-sized avatar

J. W. makanikai

View GitHub Profile
@makanikai
makanikai / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@makanikai
makanikai / config.boot for Google Fiber + TV + ER-Lite
Created January 23, 2017 11:39 — forked from stevejenkins/config.boot for Google Fiber + TV + ER-Lite
config.boot file for UBNT EdgeRouter Lite routers running v1.9.0+ to replace the Google Fiber Network Box (including Google TV)
firewall {
all-ping enable
broadcast-ping disable
ipv6-name WAN6_IN {
default-action drop
rule 10 {
action accept
description "Allow established/related"
state {
established enable
@makanikai
makanikai / README.md
Created July 1, 2021 14:59 — forked from pdanford/README.md
Launching iTerm2 from macOS Finder

Launching iTerm2 from macOS Finder

(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.

pdanford - April 2020


@makanikai
makanikai / mongo_prune_js.js
Created December 18, 2022 09:12 — forked from arevindh/mongo_prune_js.js
mongo_prune_js.js
// keep N-day worth of data
var days=7;
// change to false to have the script to really exclude old records
// from the database. While true, no change at all will be made to the DB
var dryrun=true;
var now = new Date().getTime(),
time_criteria = now ;
time_criteria_in_seconds = time_criteria / 1000;