Skip to content

Instantly share code, notes, and snippets.

View ackerleytng's full-sized avatar

Ackerley Tng ackerleytng

View GitHub Profile
@ackerleytng
ackerleytng / README.md
Last active April 24, 2020 05:04
Vagrantfile for trying out keycloak-quickstarts/app-authz-photoz

Try app-authz-photoz

Note, this is different from app-authz-uma-photoz

Quickstart

vagrant up
Description='Sample netctl config for Wireless@SGx'
Interface=wlp2s0
Connection=wireless
Security=wpa-configsection
ESSID=Wireless@SGx
IP=dhcp
WPAConfigSection=(
'ssid="Wireless@SGx"'
'key_mgmt=WPA-EAP'
'eap=PEAP'
(ns snort-parser.core
(:require [instaparse.core :as insta]))
(def variables-parser
(insta/parser
"variable-definitions = variable-definition (newline variable-definition)* newline?
variable-definition = var | portvar | ipvar
var = 'var' whitespace variable-name whitespace var-value
var-value = #'\\S+'
@ackerleytng
ackerleytng / mirror-0x-centos
Last active January 3, 2019 23:17
Mirroring centos from mirror.0x.sg
wget --recursive --no-parent --no-host-directories \
--reject 'index.html*' \
--exclude-directories 'centos/2*' \
--exclude-directories 'centos/3*' \
--exclude-directories 'centos/4*' \
--exclude-directories 'centos/5*' \
--exclude-directories 'centos/6*' \
--exclude-directories 'centos/7' \
--reject 'HEADER.html' \
--exclude-directories 'centos/HEADER.images' \
@ackerleytng
ackerleytng / remotes-schema.json
Created October 18, 2017 11:47
Using jsonschema to validate
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Remotes array",
"type": "array",
"items": {
"title": "Remote",
"type": "object",
"properties": {
"name": {
"description": "The name of this remote machine",