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 Zoom Web Client with less clicking | |
// @description Make using Web Client in Zoom a default and require less clicking. | |
// @author Marek ‘saji’ Augustynowicz <[email protected]> | |
// @copyright ISC | |
// @version 1.0.3 | |
// @icon https://st1.zoom.us/zoom.ico | |
// @supportURL https://gist.github.com/marek-saji/184024f096be7b9ddf54272d6d225af8 | |
// | |
// @updateURL https://gist.githubusercontent.com/marek-saji/184024f096be7b9ddf54272d6d225af8/raw |
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
#!/usr/bin/env bash | |
# Very naive completion for nx <https://www.npmjs.com/package/nx>. | |
# | |
# - Requires jq(1) to be present for completion of targets. | |
# - Uses _get_comp_words_by_ref and __ltrim_colon_completions which are | |
# usully found in /etc/bash_completion | |
# | |
# Gist: https://gist.github.com/marek-saji/dee1df3cd7af3f6b74e608ab1d7ec473 | |
# |
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
#!/usr/bin/env -S node --experimental-import-meta-resolve | |
import { fileURLToPath } from 'node:url'; | |
import { readFile } from 'node:fs/promises'; | |
import hyphenopoly from 'hyphenopoly'; | |
const hyphenator = hyphenopoly.config({ | |
exceptions: { | |
'en-us': 'en-han-ces', | |
}, |
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/sh | |
set -eu | |
print_help () | |
{ | |
printf "Link dot files\n" | |
printf "Usage: link.sh [--dry-run]\n" | |
} | |
if echo " $* " | grep -E ' (-h|--help) ' |
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
I am attesting that this GitHub handle marek-saji is linked to the Tezos account tz1d3J15MX3hWjEkT447G1Lzdrh7hqXmQRbU for tzprofiles | |
sig:edsigu5Dhfptkbx2Zr1dzt12WySVUYbEfBXuQyFsFK7PJNJ7xkYpX4Q2CcDf84xgHdsBqUCkgFDuifzsbkmfwvfvy2JYgGQajeH |
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
MY_HOSTS="list of hosts I own" | |
_dff () | |
{ | |
local df | |
df="$( | |
TAIL=+1 | |
{ | |
echo / | |
echo /tmp |
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/sh | |
# | |
# Display a summary of what you’ve been working on since yesterday | |
# Copyright 2020 Marek Augustynowicz | |
# Licensed under ISC license <https://opensource.org/licenses/ISC> | |
# | |
# https://gist.github.com/marek-saji/fd107bbd01d5436ca751effec335dae4 | |
# GistID: fd107bbd01d5436ca751effec335dae4 | |
set -e |
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/sh | |
# | |
# Display a summary of what you’ve been working on since yesterday | |
# | |
set -e | |
HEADER_FORMAT="\n\033[34m# %s\033[0m\n" | |
GIT_LOG_FORMAT="$( git config --get pretty.me --default="%C(green)(%cd) %C(reset)%s%C(yellow)%d %C(red)%h%C(reset)" )" |
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/sh | |
foo () | |
{ | |
echo stdout | |
echo stderr 1>&2 | |
return 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
<?php | |
ini_set('display_errors', true); | |
for ($i = 1; $i <= 4; $i += 1) | |
{ | |
echo 'out', $i, PHP_EOL; | |
if ($stderr = fopen('php://stderr', 'a')) | |
{ | |
fprintf($stderr, "err{$i}\n"); | |
} | |
} |
NewerOlder