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
{ | |
"media screen only (max)": { | |
"prefix": "mas", | |
"body": [ | |
"@media only screen and (max-width: $1px) {", | |
"$2", | |
"}" | |
] | |
}, | |
"media screen only (min)": { |
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
git config --global user.email "@gmail.com" | |
git config --global user.name "anyname" | |
gh auth login # Then > https > website | |
ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
ssh-add ~/.ssh/id_rsa | |
pbcopy < ~/.ssh/id_rsa.pub | |
settings > ssh and > add new ssh > paste, save, done |
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
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 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 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 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() { |
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
(() => { | |
function injectButton(parent) { | |
if (parent.querySelector(".pf_lb2")) return; // Prevent duplicates | |
const wrapper = document.createElement("div"); | |
wrapper.innerHTML = `<!-- CONTENT -->`; | |
parent.prepend(wrapper); | |
} | |
function waitForReactElement(attempts = 0, maxAttempts = 100) { |
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
{ | |
// CMD Shift P > Snippets: Configure Snippets | |
"Add Module exports": { | |
"prefix": "me", | |
"body": ["module.exports = "], | |
"description": "Module exports" | |
}, | |
"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
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
export PATH="/usr/local/opt/ruby/bin:$PATH" | |
#17 java | |
export JAVA_HOME=$(/usr/libexec/java_home -v 17) |
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
/** | |
* This script automates the process of unblocking your own blocked Instagram users list. | |
* It unblocks users one-by-one to avoid hitting rate limits or breaking the page. | |
* | |
* WARNING: This function directly manipulates the DOM and depends on the current HTML | |
* structure of Instagram's website to work. If Instagram implements changes to the | |
* activity page layout, structure, or functionality, this script may break or cause | |
* unexpected behavior. Use at your own risk and always review code before running it. | |
**/ |
NewerOlder