Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
Disclaimer: this step-by-step GIST has been created with no guarantees, I may have missed some steps because of distraction or chiptune improvised on-chair-dancing, so be patient and let me know if I must add or fix something.
This is the way for living long and prospering!
Download and install Raspberry Imager: https://www.raspberrypi.org/software/
--- | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners | |
name : debug | |
on : | |
push : | |
branches : [ "master" ] |
require "yaml" | |
require "twitter" | |
config = YAML.load_file(File.expand_path("~/.trc")).dig("profiles", "qyliss").each_value.first | |
last_status = ARGV.fetch(0) | |
twitter = Twitter::REST::Client.new do |t| | |
t.consumer_key = config.fetch("consumer_key") | |
t.consumer_secret = config.fetch("consumer_secret") |
#!/bin/bash | |
set -e | |
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc) | |
hex=$((cat <<EOF | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> |
This builds off the excellent work of @lmarkus & @dogeared. | |
The scripts below can be used in conjunction with the Slack Emoji Tools Google Chrome extension to export emojis from | |
one Slack team and import into another team. | |
Original work here: | |
* https://gist.github.com/lmarkus/8722f56baf8c47045621 | |
* https://gist.github.com/dogeared/f8af0c03d96f75c8215731a29faf172c |
ffmpeg -f concat -safe 0 -i <(for f in ./*.MP4; do echo "file '$PWD/$f'"; done) -c copy output.MP4 |
Sparked from this twitter conversation when talking about doing fast async rendering of declarative UIs in Preact
These examples show how it's possible to starve the main event loop with microtasks (because the microtask queue is emptied at the end of every item in the event loop queue). Note that these are contrived examples, but can be reflective of situations where Promises are incorrectly expected to yield to the event loop "because they're async".
setTimeout-only.js
is there to form a baseline