Skip to content

Instantly share code, notes, and snippets.

#!/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."
#!/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
#!/bin/bash
CURRENTDATE=$(date +"%m-%d-%Y")
sudo mkdir /home/miles/backup/$CURRENTDATE
sudo tar czf /home/miles/backup/$CURRENTDATE/backup.tar.gz /home/*
@miaoles
miaoles / main.odin
Last active October 28, 2024 12:16
vulkan-tutorial.com Triangle with Odin
// 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"