Skip to content

Instantly share code, notes, and snippets.

From: http://web.archive.org/web/20160904174444/http://andreafrancia.it/2010/03/understanding-the-output-of-rsync-itemize-changes.html
As you may know the rsync's --delete options if misused could make severe damage.
To prevent this you can use the --itemize-change and the --dry-run options to figure out how the command will behave before launching the real one.
The output will be something like that:
.d..t..g... ./
.f...p.g... Something.pdf
@Humoud
Humoud / new_domains.sh
Created April 23, 2020 17:35
Tracking Newly Registered Domains
#!/bin/bash
# upgraded and modified from: https://isc.sans.edu/forums/diary/Tracking+Newly+Registered+Domains/23127/
TODAY=`date --date="-1 day" +"%Y-%m-%d"`
PARAM=`echo -n "$TODAY.zip" | base64`
DESTDIR="/opt/dns/domains"
URL="https://whoisds.com/whois-database/newly-registered-domains/$PARAM/nrd"
USERAGENT="DataBot/1.0"
TEMPFILE=`mktemp /tmp/wget_XXXXXX.zip`
@xd003
xd003 / selenium-setup.sh
Last active April 21, 2024 13:33
Bash Script to setup Python + Selenium + chromedriver on a Headless Chrome Browser
#!/usr/bin/env bash
echo "This script will setup webdriver of your choice for selenium and create a template script with appropriate settings"
sleep 2
echo "This Script only supports Linux 64 bit and arm64/aarch64 kernel architecture currently"
sleep 2
uname="$(uname -m)"
case $uname in
arm64|aarch64|x86_64 )
@sxiii
sxiii / README-Remove-Locales.md
Last active September 12, 2024 12:59
Remove Unnecessary Locales Fedora

Small guide that helps to free up space by removing unneccessary locales from Fedora
With some additional information on how to make more space on your system (advices in the end)
Tried on Fedora 34, but should work on other distros as well (RPM-Based?)

Step 0. Bonus step -- check available space before procedure:

df -lh

Step 1. Enter the locales directory

cd /usr/share/locale/

Step 2. Check that there is files to remove

ls

@ruario
ruario / authy-fetch-extract-snap.md
Last active March 3, 2025 12:54
How to download and install Twilio Authy on a desktop Linux system without snap support
  • Make an install directory somewhere convenient and switch to it
mkdir -p ~/.local/share/authy
cd ~/.local/share/authy
  • Fetch the current Authy snap
@arun54321
arun54321 / ntfs3 driver & no-root mount.md
Last active September 21, 2024 04:07
ntfs3 driver & no-root mount [Tested on Fedora 35]

/etc/udisks2/mount_options.conf

[defaults]
btrfs_defaults=noatime,autodefrag,compress=zstd
ntfs3_defaults=uid=1000,gid=1000,noatime
ntfs3_allow=uid=1000,gid=1000,prealloc

/etc/udev/rules.d/ntfs3_by_default.rules

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active May 30, 2025 17:12
Make Firefox fast again