Skip to content

Instantly share code, notes, and snippets.

@sts10
sts10 / rust-command-line-utilities.markdown
Last active May 2, 2024 11:00
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
@Buravo46
Buravo46 / sample_1.cpp
Last active May 2, 2024 10:57
【DXLib】画像をコマ送りアニメーションするプログラム。
#include "DxLib.h"
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
ChangeWindowMode(TRUE);
int GHandle[ 4 ] ;
int i ;
if( DxLib_Init() == -1 ) // DXライブラリ初期化処理
@hubgit
hubgit / README.md
Last active May 2, 2024 10:55
Remove metadata from a PDF file, using exiftool and qpdf. Note that embedded objects may still contain metadata.

Anonymising PDFs

PDF metadata

Metadata in PDF files can be stored in at least two places:

  • the Info Dictionary, a limited set of key/value pairs
  • XMP packets, which contain RDF statements expressed as XML

PDF files

@ctokheim
ctokheim / sam_bam_tricks.sh
Created March 13, 2015 20:09
SAM/BAM tricks
#########################################
# Convert Sam to Bam with a header:
# -b output bam
# -S input sam
#########################################
samtools view -bS sample.sam > sample.bam
#########################################
# convert Sam to Bam without a header
# -b output bam
{
"dns": {
"servers": [
{
"tag": "dns_proxy",
"address": "https://google.dns/dns-query",
"address_resolver": "dns_resolver",
"strategy": "ipv4_only",
"detour": "proxydns"
},
@troykelly
troykelly / INTEGRATION.md
Last active May 2, 2024 10:51
Automatically mount rclone mounts

Automatic Rclone Mounting and Unmounting on macOS

Prerequisites

  • rclone configured with remotes.
  • The mounting script is properly set up.
  • brew package manager for installing sleepwatcher.

Steps

@veloii
veloii / README.md
Last active May 2, 2024 10:51
raycast-like wofi config

Wofi command to run:

wofi --width=900 --height=500 --gtk-dark -a --allow-images --show drun

@dhh
dhh / linux-setup.sh
Last active May 2, 2024 10:49
linux-setup.sh
# CLI
sudo apt update -y
sudo apt install -y \
git curl \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
@mobzystems
mobzystems / 7-zip.psm1
Last active May 2, 2024 10:49
7-Zip commands for PowerShell
<#
Powershell Module 7-Zip - 7-Zip commands for PowerShell
The functions in this module call 7za.exe, the standAlone version of 7-zip to perform various tasks on 7-zip archives.
Place anywhere, together with 7za.exe and 7zsd.sfx. 7za.exe is required for all operations; 7zsd.sfx for creating self
extracting archives.
http://www.7-zip.org
Import-Module [Your path\]7-Zip