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 up | |
| paru | |
| pnpm up -g | |
| rustup update | |
| gup update | |
| pipx upgrade-all | |
| opam upgrade | |
| gh extension upgrade --all | |
| cargo install-update -a | |
| gem update |
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
| #!/usr/bin/env ruby | |
| require "pathname" | |
| require "json" | |
| require "tty-prompt" | |
| require "pastel" | |
| conventional = true | |
| LABEL_TO_CONVENTIONAL = { | |
| bug: :fix, |
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
| #!/usr/bin/env ruby | |
| # Install dependencies: | |
| # - gem install tty-prompt | |
| # - gem install pastel | |
| # - https://cli.github.com | |
| # - npm install --global gitmoji-cli; gitmoji -u | |
| # (just to get the cached list of gitmojis at ~/.gitmoji/gitmojis.json, | |
| # you could write out that file yourself and not install gitmoji-cli) |
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
| import ( | |
| "strings" | |
| jsoniter "github.com/json-iterator/go" | |
| "unicode" | |
| ) | |
| // Usage: put | |
| // | |
| // json := jsoniter.ConfigFastest | |
| // setJSONNamingStrategy(lowerCaseWithUnderscore) |
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
| #!/usr/bin/env python3 | |
| # TODO overall completion % instead of single-countdown. | |
| """ | |
| Usage: | |
| pomodoro [SESSIONS] [CYCLES] [WORK] [BREAK] [PAUSE] | |
| pomodoro --total-cycles=TOTAL_CYCLES --sessions-of=CYCLES | |
| Arguments: | |
| SESSIONS Number of sessions (cycles then pause) [default: 9999] | |
| CYCLES Number of cycles (work then break) per session: [default: 4] |
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
| @media (prefers-color-scheme: dark) { | |
| :root { | |
| --gray-10: #202224; | |
| --gray-9: #3e4042; | |
| --gray-8: #555759; | |
| --gray-7: #6e7072; | |
| --gray-6: #848688; | |
| --gray-5: #aaacae; | |
| --gray-4: #c6c8ca; | |
| --gray-3: #dcdee0; |
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
| Artist | Title | |
|---|---|---|
| $stdout | Over Engineering | |
| 1f1n1ty, BilliumMoto | Stele, Prophecized | |
| 20syl | Inertia | |
| 20syl | Kodama | |
| 20syl, Oddisee | Ongoing Thing | |
| 20syl, Rita J | Voices | |
| 20syl | Swimming Stone | |
| 2smokeyy | Corn | |
| 2XM | Inperspect |
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
| from enum import Enum | |
| import re | |
| import sys | |
| from time import sleep | |
| from rich import inspect, print, traceback | |
| from bs4 import BeautifulSoup | |
| from typing import Callable, NamedTuple, Optional | |
| import requests | |
| from urllib3.util.url import Url, parse_url, LocationParseError | |
| from urllib.parse import urljoin |
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
| # Replace CHAN with desired 4chan.org/CHAN (eg 'c') and OUTFILE with a .html file to output the gallery to | |
| # Be sure that you have defined a $BROWSER | |
| curl https://a.4cdn.org/CHAN/catalog.json | jq "[.[].threads[] | {title: .sub?, post: (.last_replies[]? | { img: ((.tim? | tostring) + .ext?), comment: .com? })}]" | jq '[.[] | "<h2>\(.title)</h2><img src=https://i.4cdn.org/CHAN/\(.post.img) />"] | join("<hr>")' > OUTFILE && echo "<style>img{max-width:100vw}</style>" >> OUTFILE && $BROWSER OUTFILE |
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 startproject --description "Start a project." | |
| argparse --name="startproject" \ | |
| 'd/description=' \ | |
| 'h/help' \ | |
| 'p/path=' \ | |
| 'l/language=' \ | |
| 'o/owner=' \ | |
| 'k/kind=!startproject__validate_flag__kind' \ | |
| 'D/debug' \ | |
| -- $argv |