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
| 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"); |
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
| ${c1} -` | |
| .o+` | |
| `ooo/ | |
| `+oooo: | |
| `+oooooo: | |
| ${c2} -+oooooo+: | |
| `/:-:++oooo+: | |
| `/++++/+++++++: | |
| `/++++++++++++++: | |
| ${c3} `/+++ooooooooooooo/` |
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
| #!/bin/bash | |
| echo 'Input:' | |
| read FIN | |
| echo | |
| echo 'Output:' | |
| read FOUT | |
| echo | |
| tar cvf ${FOUT}.tar $FIN |
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
| PROMPT="%{$fg_bold[red]%}[%{$fg_bold[yellow]%}%n%{$fg_bold[green]%}@%{$fg_bold[blue]%}%m %{$fg_bold[magenta]%}%d%{$fg_bold[red]%}]%{$reset_color%}$ " |
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
| #!/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 |