Skip to content

Instantly share code, notes, and snippets.

#!/bin/env -S deno -q run
import yargs from 'https://deno.land/x/yargs/deno.ts'
function readStdin(): AsyncIterable<string> {
return {
[Symbol.asyncIterator]: async function* () {
const buffer = new Uint8Array(1024);
const decoder = new TextDecoder();
@metaquanta
metaquanta / audit_command.sh
Created December 13, 2020 11:29
How to SyscallFilter a systemd unit
#!/bin/bash
# $1 is the command to audit (it will be run)
echo "my pid: $$"
# Log all chidren of this shell
auditctl -a always,exit -S all -F ppid=$$
$1
@metaquanta
metaquanta / gist_dark_mode.js
Created January 17, 2021 20:20
Fix GitHub Gist's dark mode
// ==UserScript==
// @name dark mode - gist.github.com
// @namespace Violentmonkey Scripts
// @match https://gist.github.com/*
// @grant none
// @version 1.0
// @author [email protected]
// @description 1/15/2021: Gist deserves the same dark mode as GitHub.
// ==/UserScript==
document.firstElementChild.setAttribute("data-color-mode", "dark");