This file contains hidden or 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
| *.o | |
| execve | |
| execv | |
| # autoconf | |
| .deps | |
| Makefile | |
| Makefile.in | |
| aclocal.m4 | |
| *.cache |
Demonstration of the difference between approaches https://superuser.com/a/663694/442895 and https://superuser.com/a/496421/442895 :
The test files were generated with:
$ </dev/random base64 | tr -s \\n \ | head -c 1000000 > file1.txt
For file2.txt I copied file1.txt and manually removed the 800th and the 80th characters.
This file contains hidden or 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
| // create a bookmark with this value, or paste it directly in the address bar and press return | |
| javascript:(() => {document.querySelector('[data-disable-with^=Loading]')?.click(); setTimeout(()=> document.querySelectorAll('.Details-content--closed').forEach(x => x.click()), 4000)})() |
This file contains hidden or 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
| # Copyright © 2022 Hraban Luyat | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU Affero General Public License as published | |
| # by the Free Software Foundation, version 3 of the License. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| # GNU Affero General Public License for more details. |
This file contains hidden or 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 | |
| # Convert a movie file to gif and copy its contents to clipboard. | |
| # | |
| # Technically: creates a .gif file in a temp dir and copies the path to | |
| # clipboard, but that should be transparent. | |
| set -euo pipefail | |
| input="${1?Usage: $0 <input>}" |
My fork of https://gist.github.com/jamesmacfie/2061023e5365e8b6bfbbc20792ac90f8 , adapted to also switch Emacs.
Copy the Python script to the following location:
$HOME/Library/Application Support/iTerm2/Scripts/AutoLaunch/
Create the directory if it doesn't exist. Reboot iTerm2, and say "Yes" if it
This file contains hidden or 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
| // Don't want to bother creating types for an untyped dependency? Put | |
| // this file anywhere in your codebase: | |
| declare module 'third-party-module' | |
| // You can add multiple lines, one for each module. |
This file contains hidden or 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
| (defun n->r (n) | |
| (let* ((band (isqrt n)) | |
| (bandstart (expt band 2)) | |
| (nextstart (expt (1+ band) 2))) | |
| (list (min band (- n bandstart)) | |
| (min band (- nextstart n 1))))) | |
| (defun init-rar (size) | |
| (let ((ar (make-array (list size size)))) | |
| (dotimes (n (expt size 2)) |
A is the first letter of the alphabet.
The next letter is B for Botato
NewerOlder