Skip to content

Instantly share code, notes, and snippets.

@BuZZ-dEE
BuZZ-dEE / rust-command-line-utilities.markdown
Created February 23, 2023 15:40 — 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
@BuZZ-dEE
BuZZ-dEE / tmux-cheatsheet.markdown
Created January 27, 2018 00:06 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
interface NumericTest {
boolean computeTest(int n);
}
public static void main(String args[]) {
NumericTest isEven = (n) -> (n % 2) == 0;
NumericTest isNegative = (n) -> (n < 0);
// Output: false
System.out.println(isEven.computeTest(5));

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@BuZZ-dEE
BuZZ-dEE / intellij_shortcuts.txt
Created January 30, 2016 22:33
Shortcuts for Jetbrains Intellij IDEA
Organize imports: Ctrl + Alt + O
@BuZZ-dEE
BuZZ-dEE / Checkstyle pre-commit hook
Created January 20, 2016 17:52 — forked from davetron5000/Checkstyle pre-commit hook
Pre Commit Hook for running checkstyle on changed files
#!/usr/bin/perl
#
# Pre-commit hook for running checkstyle on changed Java sources
#
# To use this you need:
# 1. checkstyle's jar file somewhere
# 2. a checkstyle XML check file somewhere
# 3. To configure git:
# * git config --add checkstyle.jar <location of jar>
# * git config --add checkstyle.checkfile <location of checkfile>
@BuZZ-dEE
BuZZ-dEE / evolution_update_error.txt
Created January 14, 2016 20:55
Arch Linux Evolution Pacman update error
Löse Abhängigkeiten auf...
Suche nach in Konflikt stehenden Paketen...
Pakete (8) bijiben-3.18.2-2 empathy-3.12.11-1 evolution-3.18.3-2 evolution-data-server-3.18.3-2 folks-0.11.2-1 gnome-calendar-3.18.2.1-2 gnome-contacts-3.18.1-1 gnome-maps-3.18.2-1
Gesamtgröße der zu installierenden Pakete: 114,99 MiB
Prüfe Schlüsselring...
Prüfe Paketintegrität...
Lade Paket-Dateien...
@BuZZ-dEE
BuZZ-dEE / Instructions.md
Created October 19, 2015 17:03 — forked from pgilad/Instructions.md
Git commit-msg hook to validate for jira issue or the word merge

Instructions

  • copy the file commit-msg to .git/hooks/commit-msg
  • make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
  • Profit $$

Shell example

@BuZZ-dEE
BuZZ-dEE / youtube_download.txt
Created February 23, 2012 00:07
Eine Liste mit Befehlen zum Runterladen von Videos bei YouTube
youtube download:
verfügbare Formate # anzeigen : youtube-dl -F 'http://www.youtube.com/watch?v=ID'
Format # runterladen Audiomaterial in bester Qualität extrahieren : youtube-dl -t -f # --extract-audio --audio-format best 'http://www.youtube.com/watch?v=ID'
youtube-dl -t --prefer-free-formats --max-quality webm 'http://www.youtube.com/watch?v=ID'
youtube-dl -t --prefer-free-formats --max-quality webm --extract-audio --audio-format best 'http://www.youtube.com/watch?v=ID'
Alle Videos eines YouTube Channel runterladen und Audio extrahieren : youtube-dl -i -t -w --prefer-free-formats --max-quality webm -k --extract-audio --audio-format best 'http://www.youtube.com/watch?v=ID'
@BuZZ-dEE
BuZZ-dEE / audio_konvertierung.txt
Created February 23, 2012 00:04
Eine Liste mit Befehlen zur Konvertierung von Audiomaterial in andere Formate
Sox:
sox -S in.flac -r 44100 -C 8 out.flac
sox -S in.flac -r 44100 -C 8 -b 16 out.flac
sox -S in.flac -C 5 out.ogg VBR ~160kbps
sox -S in.flac -C 6 out.ogg VBR ~192kbps
sox -S in.flac -C -4 out.mp3 VBR ~165kbps
sox -S in.flac -C -3 out.mp3 VBR ~175kbps
sox -S in.flac -C -2 out.mp3 VBR ~190kbps
sox -S in.flac -C -2.0 out.mp3 VBR ~190kbps
sox -S in.flac -C -1 out.mp3 VBR ~225kbps