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 / git-svn-commit
Created June 8, 2015 19:18
Git SVN (Subversion) commit
#!/bin/bash
msgFlag="$1"
msg="$2"
shift 2
if [ "$msgFlag" == "-m" ]; then
if [[ -f "$msg" || -d "$msg" ]]; then
echo "The second argument needs to be the commit message."
else
\ProvidesFile{absender.lco}
\KOMAoptions{%
% fromemail=true, % Email wird im Briefkopf angezeigt
% fromphone=true, % Telefonnumer wird im Briefkopf angezeigt
% fromfax=true, % Faxnummer wird im Briefkopf angezeit
% fromurl=true, % URL wird im Briefkopf angezeigt
% fromlogo=true, % Logo wird im Briefkopf angezeigt
% subject=titled, % Druckt "Betrifft: " vor dem Betreff
locfield=wide, % Breite Absenderergänzung (location)