This file contains hidden or 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
//! ```cargo | |
//! [dependencies] | |
//! spez = "0.1.2" | |
//! ``` | |
use spez::spez; | |
use core::marker::PhantomData; | |
#[derive(Debug)] pub enum Cooked {} | |
#[derive(Debug)] pub enum Raw {} |
This file contains hidden or 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
for x in *-*; do pushd $x >/dev/null; echo $x; cargo test -q --no-run; just -f ../Justfile -d . test; read dummyvar; popd; clear; done |
This file contains hidden or 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
cargo tree -e no-dev --duplicates --depth 0 | sed '/^$/d' | grep -v 'dependencies]' | uniq | cut -d ' ' -f 1 | uniq -d |
This file contains hidden or 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
gh repo set-default $(git remote get-url upstream | sed 's/.*github.com[:/]\(.*\).git/\1/') |
This file contains hidden or 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 sync-fork() { | |
local origin_url=$(git config --get remote.origin.url) | |
local fork_repo="" | |
if [[ $origin_url =~ github\.com[:/]([^/]+/[^/.]+) ]]; then | |
fork_repo="${BASH_REMATCH[1]}" | |
else | |
echo "Error: Could not parse origin remote URL" | |
return 1 | |
fi | |
local upstream_url=$(git config --get remote.upstream.url) |
This file contains hidden or 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
sudo apt install libgdk3.0-cil libatk1.0-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev libxdo-dev -y |
This file contains hidden or 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
gifopt() { | |
local inputgif="${1:?Missing input GIF filename}" | |
local quality="${2:-80}" | |
if ! [[ "$quality" =~ ^[0-9]+$ ]] || [ "$quality" -lt 1 ] || [ "$quality" -gt 100 ]; then | |
echo "Quality parameter must be an integer from 1 to 100" >&2 | |
return 1 | |
fi | |
local tmpdir="$(mktemp -d)" |
This file contains hidden or 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
[package] | |
name = "trunk-hello-world" | |
version = "0.1.0" | |
edition = "2024" | |
[lib] | |
crate-type = ["cdylib"] | |
path = "lib.rs" | |
[dependencies] |
This file contains hidden or 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
# This file is automatically @generated by Cargo. | |
# It is not intended for manual editing. | |
version = 4 | |
[[package]] | |
name = "bumpalo" | |
version = "3.17.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" |
This file contains hidden or 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
PR_CMDS=$(gh search prs --limit 100 --owner $(gh api user -q '.login') --author pre-commit-ci[bot] --state open --json repository,number | jq -r '.[] | "gh pr merge \(.number) -R \(.repository.nameWithOwner) -s -d"' | awk '{printf "%s%s", (NR==1 ? "" : " && \n"), $0} END{print ""}'); echo "$PR_CMDS"; eval "$PR_CMDS" |
NewerOlder