Skip to content

Instantly share code, notes, and snippets.

View christophersjchow's full-sized avatar

Christopher Chow christophersjchow

View GitHub Profile

Keybase proof

I hereby claim:

  • I am christophersjchow on github.
  • I am christopherchow (https://keybase.io/christopherchow) on keybase.
  • I have a public key ASCLB6hrDcq8BW9xjdI22OVRn4gZx6E1bkij0KmCsT7YWgo

To claim this, I am signing this object:

var crypto = require('crypto');
var base64url = require('base64url');
/** Sync */
function randomStringAsBase64Url(size) {
return base64url(crypto.randomBytes(size));
}
@christophersjchow
christophersjchow / pipeline.conf
Last active May 22, 2024 19:51
Logstash pipeline and grok patterns for Unifi Dream Machine (UDM) 1.8.6
input {
udp {
port => 10514
type => unifi_syslog
}
}
filter {
if [type] == "unifi_syslog" {
grok {