Note
test
Warning
test
Tip
test
document.querySelectorAll('.SelectMenu-item').forEach(item => { | |
if (item.textContent.includes('Read and write')) { | |
item.click(); | |
} | |
}); | |
// Sometimes you might need to trigger a change event for the clicks to take effect | |
// This part is optional and depends on how GitHub's front-end is implemented | |
document.querySelectorAll('input[type=radio]').forEach(radio => { | |
if (radio.value === 'write') { |
Note
test
Warning
test
Tip
test
#!/bin/bash env | |
keygen() { | |
PREFIX="$HOME/.evm/" | |
KEY="$(echo "$PREFIX")key" | |
PUB="$(echo "$PREFIX")pub" | |
PRIV="$(echo "$PREFIX")priv" | |
ADDRESS="$(echo "$PREFIX")address" |
const { execSync } = require('child_process'); | |
function runYarn() { | |
// Run yarn ci command | |
try { | |
execSync('yarn ci'); | |
console.log('yarn ci ran successfully'); | |
} catch (err) { | |
// Extract the error message | |
const errorMessage = err.stderr.toString(); |
(function scrapeServers() { | |
const servers = document.querySelectorAll(`[data-list-item-id^="guildsnav___"]`); | |
// console.log(servers); | |
const database = {}; | |
servers.forEach(server => { | |
const guildsnav = server.getAttribute(`data-list-item-id`); | |
const serverId = guildsnav.match(/\d+$/igm)?.pop(); | |
if (!serverId) { return } |
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch *.sql' |
javascript:(function () { | |
const id = "inDomConsole"; | |
if (document.getElementById(id) === undefined) return; | |
const consoleElement = document.createElement("details"); | |
consoleElement.id = id; | |
const scopedStyle = document.createElement("style"); | |
const container = document.createElement("div"); | |
scopedStyle.textContent = ` | |
#${id} { |
const buffer = []; | |
function queue(e) { | |
buffer.push(e); | |
} | |
document.querySelectorAll( | |
`#root > | |
div > | |
div > | |
table > |
git diff --summary | grep --color 'mode change 100755 => 100644' | cut -d' ' -f7- | xargs chmod +x | |
git diff --summary | grep --color 'mode change 100644 => 100755' | cut -d' ' -f7- | xargs chmod -x |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash | |
. ~/.nvm/nvm.sh | |
nvm install node | |
node -e "console.log('Running Node.js ' + process.version)" |