sudo pacman -Sy --noconfirm base-devel git curl openssh inetutils
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 bash | |
# Add drop shadows to any pictures in the current folder | |
for file in *.png | |
do | |
convert $file \( +clone -background black -shadow 50x10+5+5 \) +swap -background none -layers merge +repage "$file"_shadow.png | |
done |
Based on An End of the Year Retrospective by Pat Kua.
Go through your planning tools (e.g. personal and work calendars, to-do lists, journals, etc) and list any events or activities (by month) of significance to you. Capture these as if you were a neutral bystander.
Examples might include: “Moved house”, “Took part in a virtual panel”, or “Read Lord of the Rings for the 2nd time”
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
require 'httparty' | |
def fetch(url) | |
response = HTTParty.get(url) | |
response.parsed_response | |
end | |
# Setting content type didn't work 😢 | |
def to_json_request(url) | |
url.gsub('challenge', 'challenge.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
frozen_string_literal: true | |
# A leaky bucket rate limiter for Ruby | |
# | |
# @see https://www.mikeperham.com/2020/11/09/the-leaky-bucket-rate-limiter/ | |
# @see https://en.wikipedia.org/wiki/Leaky_bucket | |
class RateLimit | |
class Error < StandardError | |
attr_accessor :retry_in |
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
# Drop this into ~/.config/atuin/themes/tokyo-night.toml, then reference it in atuin.conf | |
# | |
# See https://docs.atuin.sh/guide/theming/ | |
[theme] | |
name = "tokyo-night" | |
parent = "default" | |
[colors] | |
AlertInfo = "#73daca" | |
AlertWarn = "#e0af68" |
OlderNewer