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
mutation DeleteContribution($user: UID!, $option: LocalID!) { | |
deleteContribution(user: $user, option: $option) { | |
...MutationErrors | |
... on MutationDeleteContributionSuccess { | |
data { | |
...List_UserContributions_Pending_remove | |
...List_UserContributions_Paid_remove | |
...List_UserContributions_Options_insert | |
id | |
} |
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
internet | |
renater | |
cluster proxmox: { | |
hyperviseurs: { | |
iota | |
sigma | |
omega | |
} |
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
#!/usr/bin/env ruby | |
require "uri" | |
require "net/http" | |
# dumb websites | |
# maps hosts to allowed >=400 http status codes | |
exceptions = { | |
"twitter.com": 400, | |
"www.fiverr.com": 403 |
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
#!/usr/bin/env ruby | |
if ["-h", "--help"].include? ARGV[0] | |
puts "Usage: #{__FILE__}" | |
puts " Include all recipes" | |
puts " #{__FILE__} including recipe1 recipe2 ..." | |
puts " Only include the specified recipes" | |
puts " #{__FILE__} excluding recipe1 recipe2 ..." | |
puts " Exclude the specified recipes" | |
exit 0 |
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 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 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 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 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 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 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; |
NewerOlder