- Guardian of the Sacred Rule (For
branch_protection_rule
) - "Protector of the code's purity, you enforce the sanctity of the branch." - The Divine Architect (For
branch_protection_rule.created
) - "Creator of the sacred laws, you establish the rules that shape the branch’s destiny." - Breaker of Chains (For
branch_protection_rule.deleted
) - "Releaser of bonds, you remove the constraints, allowing freedom to reign." - The Oracle's Edit (For
branch_protection_rule.edited
) - "Modifier of the divine decree, your changes resonate through the codebase." - Watcher of the Sentinel (For
check_run
) - "Overseer of the vigilant, ensuring the integrity of every check." - Final Judgment (For
check_run.completed
) - "Deliverer of the verdict, your assessment is the final word in the trials." - Genesis of the Watch (For
check_run.created
) - "Initiator of the watchful, your command brings the sentinel to life." - Invoker of the Sentinel (For
check_run.requested_action
) -
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
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
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/bash env | |
keygen() { | |
PREFIX="$HOME/.evm/" | |
KEY="$(echo "$PREFIX")key" | |
PUB="$(echo "$PREFIX")pub" | |
PRIV="$(echo "$PREFIX")priv" | |
ADDRESS="$(echo "$PREFIX")address" |
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
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(); |
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
(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 } |
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
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch *.sql' |
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
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} { |
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
const buffer = []; | |
function queue(e) { | |
buffer.push(e); | |
} | |
document.querySelectorAll( | |
`#root > | |
div > | |
div > | |
table > |
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
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 |
NewerOlder