Skip to content

Instantly share code, notes, and snippets.

MK kohenkatz

  • Silver Spring, MD
Block or report user

Report or block kohenkatz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kohenkatz / script.js
Created May 16, 2019
UserScript to widen the Site Switcher dropdown in the Ubiquiti Unifi Controller
View script.js
// ==UserScript==
// @name Widen Unifi Site Switcher
// @namespace
// @version 0.1
// @description The Unifi Site Switcher defaults to 200px. We want it wider!
// @author Moshe Katz
// @match https://your.unifi.controller.domain/*
// @grant none
// ==/UserScript==
kohenkatz / phpcs.xml
Created Aug 8, 2018
PHPCS config for a Laravel project that uses tabs
View phpcs.xml
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>PHP_CodeSniffer Standards</description>
kohenkatz / check_dns_dig.go
Created Jun 14, 2018
A nagios `check_dns` alternative that uses dig instead of nslookup
View check_dns_dig.go
package main
import (
kohenkatz /
Last active May 18, 2018
"PostBin" is a simple server that logs all requests to files in TEMP. Partially based on

How to run

php -S postbin.php
kohenkatz /
Created Apr 27, 2018
Git Flow introduction

How to set up git-flow

Installation - if using git on the command line


sudo bash install stable
kohenkatz / dslreports.scpt
Last active Nov 9, 2017
Mojo Wifi Testing
View dslreports.scpt
tell application "Safari"
-- if it is running then
-- quit
-- delay 5
-- end if
open location ""
delay 1
kohenkatz / helpers.js
Created Oct 22, 2017
Cookie Clicker "Helpers"
View helpers.js
function makeCookie() {
Game.shimmerTypes.golden.time = Game.shimmerTypes.golden.maxTime;
function clickVisibleCookies() {
Game.shimmers.forEach(function(item) {
if (item.type === 'golden') {;
View RouteServiceProvider.php
namespace App\Providers;
use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
import os
import sys
import csv
import datetime
import time
import twitter
def test():
kohenkatz /
Last active Aug 28, 2017 — forked from stbuehler/
How to run a FastCGI process as a service under Systemd, based on
set -e
if [ "${LISTEN_PID}" != $$ ]; then
echo >&2 "file descriptors not for us, pid not matching: '${LISTEN_PID}' != '$$'"
exit 255
if [ "${LISTEN_FDS}" != "1" ]; then
You can’t perform that action at this time.