This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() { |