To be ran with:
- model:
claude-3-opus-20240229 - temperature:
0.0
Context: https://twitter.com/VictorTaelin/status/1776677635491344744
To be ran with:
claude-3-opus-202402290.0Context: https://twitter.com/VictorTaelin/status/1776677635491344744
Hi! This is a pair of scripts to easily embed LaTeX figures in Markdown documents.
Before using them, please
TEX_DIR to be the folder where you want to keep the LaTeX stuff (./attachments/diagrams will be fine if you're using Obsidian);PREAMBLE and POSTAMBLE the LaTeX code to sandwitch the code of your figures before compilation;Then, you can use them like this:
| #!/usr/bin/env bash | |
| DB=${1:-my-host} | |
| PORT=${2:-10864} | |
| echo "Opened tunnel on port $PORT to $DB through websocket..." | |
| ssh -N -L localhost:$PORT:/var/run/postgresql/.s.PGSQL.5432 $DB | |
| echo "Closed!" |
| #!/usr/bin/env bash | |
| git filter-branch --env-filter ' | |
| OLD_MAIL="[email protected]" | |
| NEW_NAME="Paolo Brasolin" | |
| NEW_MAIL="[email protected]" | |
| if [ "$GIT_COMMITTER_EMAIL" = "$OLD_MAIL" ] | |
| then |
Place the formatter in ~/.timetrap/formatters/det.rb and then run
t week -f detto obtain
2019-11-18 10:23 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■⠅⠅⠅⠅⠅⠅⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂
| rndch () { cat /dev/urandom | LC_ALL=C tr -dc '[:graph:]' | head -c $1; }; |
| def self.humanize_bytes(size) | |
| %w[b Kb Mb Gb Tb Pb Eb Zb Yb].reduce(size) do |magnitude, unit| | |
| break "#{magnitude}#{unit}" if magnitude < 1024 | |
| magnitude / 1024 | |
| end | |
| end | |
| def self.humanize_bytes(size) | |
| return "#{size}b" if size < 1024 | |
| return "#{size}Kb" if (size /= 1024) < 1024 |