Skip to content

Instantly share code, notes, and snippets.

View Backtix's full-sized avatar
☠️

`Backtix` Backtix

☠️
View GitHub Profile
@Backtix
Backtix / fastsort
Last active August 24, 2023 03:47
Uniqe files and remove duplicate lines quickly (Sort optional)
#!/usr/bin/env bash
# Author: Backtix (https://github.com/Backtix)
# shellcheck disable=SC2086
R='\e[0;31m'
G='\e[0;32m'
Y='\e[0;33m'
N='\e[0m'
trap '[ -e "$tempfile" ] && rm "$tempfile"; exit 1' INT TERM
@Backtix
Backtix / crosssum.rs
Created February 22, 2023 02:38
Snippet: Takes a list of numbers as argument and calculates the cross sum for each
// Author: Backtix
// Topic: passwords, digits, analysis
// Desc: Takes a list of numbers as argument
// and calculates the cross sum for each
use std::env;
use std::fs::File;
use std::io::{BufRead, BufReader};
fn main() {