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 reset --soft `git rev-list --max-parents=0 HEAD` |
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
// ==UserScript== | |
// @name Hide Scrollbar | |
// @namespace http://example.com | |
// @version 1 | |
// @grant GM_addStyle | |
// @include https://twitter.com/* | |
// @include https://x.com/* | |
// @include https://warpcast.com/* | |
// ==/UserScript== |
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
# replace CHANNEL_ID and BOT_SECRET with your values | |
curl --include \ | |
--request POST "https://discord.com/api/channels/CHANNEL_ID/messages" \ | |
--header "Content-Type: application/json" \ | |
--header "Authorization: Bot BOT_SECRET" \ | |
--data '{ "content": "lorem ipsum" }' |
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
const { emit: originalEmit } = process; | |
/** | |
* @param {string} event | |
* @param {{ name: string; }} error | |
*/ | |
function suppresser(event, error) { | |
return event === "warning" && error.name === "ExperimentalWarning" | |
? false | |
: originalEmit.apply(process, arguments); |
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 perf {: | |
curl --silent \ | |
--url "$1" \ | |
--output /dev/null \ | |
--write-out "\n%{time_total} sec\n%{size_download} bytes\n" | |
} | |
curl --silent --location \
--request POST \
--url 'https://spacex-production.up.railway.app' \
--header 'Content-Type: application/json' \
--data '{"query":"query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }","variable":{}}'
- T
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
/** | |
* @param ms milliseconds to sleep | |
* @returns void | |
*/ | |
export function sleep(ms: number): void { | |
/** | |
* In some environments such as Cloudflare Workers, Atomics is not defined | |
* setTimeout is used as a fallback | |
*/ | |
if (typeof Atomics === 'undefined') { |
Install GnuPG and GitHub official CLI tool. Instructions:
- GitHub CLI https://github.com/cli/cli#installation
- GnuPG https://gnupg.org
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
// Usage | |
console.log("\x1b[32m", "color colorr colorrrrr") | |
const colors = { | |
reset: "\x1b[0m", | |
bright: "\x1b[1m", | |
dim: "\x1b[2m", | |
underscore: "\x1b[4m", | |
blink: "\x1b[5m", | |
reverse: "\x1b[7m", |