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
| #!/bin/sh | |
| # Tcl ignores the next line -*- tcl -*- \ | |
| exec /usr/local/opt/tcl-tk/bin/wish "$0" -- "$@" | |
| # Copyright © 2005-2016 Paul Mackerras. All rights reserved. | |
| # This program is free software; it may be used, copied, modified | |
| # and distributed under the terms of the GNU General Public Licence, | |
| # either version 2, or (at your option) any later version. | |
| if {[catch {package require Tcl 8.6-} err]} { |
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
| -- arr to track timers for repeating keys | |
| local repeatTimers = {} | |
| -- function to start repeating an action | |
| local function startRepeating(key, action) | |
| -- run action immediately on press | |
| action() | |
| -- if already running, skip | |
| if repeatTimers[key] then return end | |
| -- Start repeating every 0.1 seconds |
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
| # Sample workflow for building and deploying a Next.js site to GitHub Pages | |
| # | |
| # To get started with Next.js see: https://nextjs.org/docs/getting-started | |
| # | |
| name: Deploy Next.js site to Pages | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: ["main"] |
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
| gh repo list gerwld --limit 4000 | while read -r repo _; do | |
| gh repo clone "$repo" "$repo" | |
| done |
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
| { | |
| "media screen only (max)": { | |
| "prefix": "mas", | |
| "body": [ | |
| "@media only screen and (max-width: $1px) {", | |
| "$2", | |
| "}" | |
| ] | |
| }, | |
| "media screen only (min)": { |
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
| 1) - Copypaste all as one line: | |
| git config --global user.email "[email protected]" && | |
| git config --global user.name "your_username" && | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install --force-bottle gh && | |
| ssh-keygen -t rsa -b 4096 -C "[email protected]" && | |
| ssh-add ~/.ssh/id_rsa && | |
| gh auth login | |
| 1.1) Click Enter 6 times |
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
| This list was compiled from https://web.archive.org/web/20230911135706/https://docs.docker.com/desktop/release-notes/, retrieved on 2024-05-24 | |
| It appears links for later updates than 4.22.1 are currently (as of early Aug 2024) being kept up to date on https://docs.docker.com/desktop/release-notes, I'm not going to continuously update this but others may in the comments below, so check that link or the comments if you need a later version than 4.22.1. | |
| The information may not be correct in all cases, or may have changed since archive.org archived the page. At time of posting, I spot-checked a few links and they appeared to be good, but really, all I've done is copied, pasted, and visually formatted the information I found on archive.org, so no warrantee that it's good. | |
| If the download links don't work, sometimes archive.org has the download archive, and you can try adding https://web.archive.org/web/20230911135706/ to the beginning of the URL. For instance, as of this writing, the 4.22.1 Windows download i |
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
| // fastest speed, no-limits, high bitrate | |
| yt-dlp -f "bestvideo[height<=1080]+bestaudio/best" --no-wait --max-downloads 1 --concurrent-fragments 8 --retries 10 --fragment-retries 10 https://www.youtube.com/watch?v=MDZC8VDZnV8 |
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
| require('crypto').randomBytes(48, function(err, buffer) { var token = buffer.toString('hex'); console.log(token); }); | |
| // or | |
| node -e "console.log(require('crypto').randomBytes(64).toString('hex'))" | |
| // or | |
| openssl rand -base64 32 |
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
| /** | |
| * This part injects element before DOMContentLoaded event, | |
| * and reaplies it each time React / Other framework rerenders the parent component. | |
| * | |
| * @returns void | |
| */ | |
| ;(() => { | |
| let observer; | |
| function injectButton() { |
NewerOlder