Skip to content

Instantly share code, notes, and snippets.

@lightszentip
lightszentip / rust-command-line-utilities.markdown
Created July 31, 2024 10:06 — 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
@lightszentip
lightszentip / logstash-start-script
Created December 29, 2018 20:04
Logstash start script
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: logstash
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start logstash with system logs
@lightszentip
lightszentip / hostsfile.py
Last active March 5, 2017 18:58 — forked from jtyr/hostsfile.py
Ansible dynamic inventory script that reads any Ansible hosts file and transforms it into the JSON data structure.
!/usr/bin/python
#####
#
# Description
# -----------
#
# This is an Ansible dynamic inventory script that reads any Ansible hosts file
# and transforms it into the JSON data structure.
#
#!/bin/bash
#
##### Backup Script for my local Filesystem
##### run only if I have connection with my secure home wlan
# Get the wlan essid
essid=$(iwgetid -r)
echo $essid;
# check the name, exit otherwise
if [ "$essid" = "nameofmywlan" ]
then
package com.iw.immowebapp.webapp;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.env.Environment;
import org.thymeleaf.spring4.SpringTemplateEngine;