Skip to content

Instantly share code, notes, and snippets.

View dominikb1888's full-sized avatar

Dominik Böhler dominikb1888

View GitHub Profile
@dominikb1888
dominikb1888 / .block
Created October 4, 2024 12:03 — forked from Berzeg/.block
Electrocardiogram
license: gpl-3.0
height: 300
@dominikb1888
dominikb1888 / rust-command-line-utilities.markdown
Created July 3, 2024 18:29 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
# @dataclass
class Person:
"""A custom data type that represents data for a person."""
def __init__(self, given_name: str, family_name: str, age: int, address: str):
self.given_name = given_name
self.family_name = family_name
self.age = age
self.address = address
def __repr__(self):
@dominikb1888
dominikb1888 / .env
Created January 26, 2023 11:11 — forked from mtilson/.env
how to rebuild your web app container on every commit with local 'docker-compose' and 'post-commit' git hook [docker] [docker-compose] [git]
APPNAME=myapp
APPVERSION=latest
### Keybase proof
I hereby claim:
* I am dominikb1888 on github.
* I am dominikb1888 (https://keybase.io/dominikb1888) on keybase.
* I have a public key ASDoBuVGJb9Hyh83kFOo9Vus2ZLWhAuK7ZVHdGK1Ws46CQo
To claim this, I am signing this object:
from rich.table import Table
def rich_df(df):
table = Table()
for col in df.columns:
table.add_column(str(col))
for row in df.values.tolist():
table.add_row(*[str(item) for item in row])
return table
@dominikb1888
dominikb1888 / brdiff.fish
Created December 22, 2021 20:05
Create a horizontal split in vim for the same file in different branches
function brdiff
set -l paths
for branch in (git branch -l | fzf -m | tr -d '[*+ ]')
if [ $branch = "master" ]
set -a paths $argv[1]
else
git worktree add "../$branch"
set -a paths "../$branch/$argv[1]"
end
end
Verifying that +dominikb1888 is my blockchain ID. https://onename.com/dominikb1888