Skip to content

Instantly share code, notes, and snippets.

View ackerleytng's full-sized avatar

Ackerley Tng ackerleytng

View GitHub Profile
@ackerleytng
ackerleytng / config
Last active September 9, 2024 16:40
Sway config to let Google Meet Picture-in-Picture view pop up, but not steal focus
# Let Google Meet PIP view popup, but not steal focus
for_window [title="^Meet - [ -~]+(?!Google Chrome)$"] {
floating enable
resize set width 20ppt height 20ppt
move position 80ppt 80ppt
}
no_focus [title="^Meet - [ -~]+(?!Google Chrome)$" floating]
@ackerleytng
ackerleytng / improved-lkml.js
Created February 25, 2024 13:29
Tampermonkey script to improve kernel patch reading experience
// ==UserScript==
// @name Improved-LKML
// @version 2024-02-23
// @description Improve kernel patch reading experience
// @author ackerleytng
// @match https://lore.kernel.org/*
// @grant GM_addStyle
// @grant GM_getResourceText
// @resource IMPORTED_CSS https://lore.kernel.org/linux-mm/userContent.css
// ==/UserScript==
;;; projectile-ag.el --- The silver searcher with interactive searching with completing-read interface, for consult -*- lexical-binding: t; -*-
;; Copyright (C) 2020 by Ackerley TNG
;; Author: Ackerley TNG <[email protected]>
;; URL: https://github.com/ackerleytng/emacs-projectile-ag
;; Version: 0.0.1
;; Package-Requires: ((emacs "25.1") (projectile "2.0"))
;; This program is free software; you can redistribute it and/or modify
@ackerleytng
ackerleytng / toggleAdsOfferUp.js
Last active November 29, 2020 18:42
UserScript that allows you to toggle ads on OfferUp
// ==UserScript==
// @name OfferUp Toggle Ads
// @namespace https://offerup.com/
// @version 0.1
// @description Allows you to toggle ads on OfferUp
// @author ackerleytng
// @match https://offerup.com/search/*
// @grant GM_addStyle
// ==/UserScript==
@ackerleytng
ackerleytng / index.js
Created October 22, 2020 02:22
LDAP adapter for Keycloak
const ldap = require('ldapjs');
const fs = require('fs');
const axios = require("axios");
const https = require("https");
const querystring = require('querystring');
const server = ldap.createServer();
const authenticate = async (req, res, next) => {
if (req.dn.toString() !== 'cn=keycloak' ||
! main x stuff
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintslight
Xft.hinting: true
Xft.antialias: true
Xft.rgba: rgb
Xft.dpi: 96
@ackerleytng
ackerleytng / config.h
Created July 12, 2020 05:49
config.h for suckless terminal
/* See LICENSE file for copyright and license details. */
/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "SauceCodePro Nerd Font Mono:style=Regular:pixelsize=13:antialias=true:autohint=true";
static int borderpx = 2;
@ackerleytng
ackerleytng / .zprofile
Last active January 3, 2023 13:50
zsh config
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
@ackerleytng
ackerleytng / openwrt-stubby-dnstls.sh
Last active January 18, 2022 13:01
Script to easily configure openwrt for dnstls from cli on the router itself
#!/bin/sh
# Taken from https://openwrt.org/docs/guide-user/services/dns/dot_dnsmasq_stubby
# Provided so it's easy to run from command line
# Install packages
opkg update
opkg install dnsmasq stubby
# Enable DNS encryption

Disambiguation of Authorization Terms

This is a preliminary attempt to coordinate the use of terms for authorization purposes.

There are many conflicting/duplicate definitions of terms in the world of authorization, because it is actually not easy to understand, and this has resulted in the use of different terms in different implementations.

In fact, this document https://profsandhu.com/workshop/role-group.pdf