View reset-to-initial-commit.sh
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` |
View hide-scrollbar.js
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== |
View discord-bot-send-message.sh
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" }' |
View suppress-warnings.cjs
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); |
View curl-performance.sh
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" | |
} | |
View keybase.md
Keybase proof
I hereby claim:
- I am o-az on github.
- I am askii (https://keybase.io/askii) on keybase.
- I have a public key ASD98QEZFdoBJUPWQUl_oFR6gzfKC5kyy-UH3ORhb31CvAo
To claim this, I am signing this object:
View sleep.ts
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') { |
View wrangler.json
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "The name of the project" | |
}, | |
"main": { | |
"type": "string", |
NewerOlder