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 | |
CONTINUE=true | |
main_menu () { | |
echo "Enter the letter for one of the following options:" | |
echo "1. Display today's date and time." | |
echo "2. Display first 5 lines of top command's output." | |
echo "3. Display a list of who is logged in." | |
echo "4. Display disk usage for /home/admin in human readable format." |
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 | |
CONTINUE=false | |
USERNAME=null | |
GROUPNAME=null | |
check_username () { | |
if [ id -u "$USERNAME" >/dev/null 2>&1 ]; then | |
echo 'This user already exists.' | |
CONTINUE=false |
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 | |
CURRENTDATE=$(date +"%m-%d-%Y") | |
sudo mkdir /home/miles/backup/$CURRENTDATE | |
sudo tar czf /home/miles/backup/$CURRENTDATE/backup.tar.gz /home/* |
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
// vulkan-tutorial.com Triangle with Odin | |
// also has personal tweaks/additions, explicit naming, entire enum names | |
package main | |
import fmt "core:fmt" | |
import math "core:math" | |
import os "core:os" | |
import str "core:strings" | |
import glfw "vendor:glfw" |
OlderNewer