This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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"); |
OlderNewer