Skip to content

Instantly share code, notes, and snippets.

View gr4p3LCL's full-sized avatar
🐧
accumulating knowledge

Camryn gr4p3LCL

🐧
accumulating knowledge
  • 36SYC4288082354
View GitHub Profile
use std::io;
// Borrowed from https://rosettacode.org/wiki/Strip_a_set_of_characters_from_a_string#Rust
fn main() {
let mut input = String::new();
println!("\nString to disemvowel:");
io::stdin()
.read_line(&mut input)
.expect("something wrong");
@gr4p3LCL
gr4p3LCL / nb_arch
Last active July 4, 2022 14:55
neofetch --colors 13 7 7 13 --ascii_colors 11 15 13 8 --ascii nb_arch
${c1} -`
.o+`
`ooo/
`+oooo:
`+oooooo:
${c2} -+oooooo+:
`/:-:++oooo+:
`/++++/+++++++:
`/++++++++++++++:
${c3} `/+++ooooooooooooo/`
#!/bin/bash
echo 'Input:'
read FIN
echo
echo 'Output:'
read FOUT
echo
tar cvf ${FOUT}.tar $FIN
PROMPT="%{$fg_bold[red]%}[%{$fg_bold[yellow]%}%n%{$fg_bold[green]%}@%{$fg_bold[blue]%}%m %{$fg_bold[magenta]%}%d%{$fg_bold[red]%}]%{$reset_color%}$ "
@gr4p3LCL
gr4p3LCL / backup.bash
Last active November 7, 2021 15:07
Backup bash script
#!/bin/bash
# Simple bash script to backup a directory to a bunzip2 archive (gunzip moar like cringezip)
user=$(whoami)
# I made this in a weird way but I don't care
while [ ${user} = ${user} ]
do
home=/home/$user
out=${home}/${user}_DMs_$(date +%Y-%m-%d_%H:%M:%S).tar