For drive x:
sudo mkdir /mnt/x/
sudo mount -t drvfs X: /mnt/x/
To remove x:
# Define the exam structure in arrays | |
# CCNP ENCORE v1.0 from https://learningcontent.cisco.com/documents/exam-topics/350-401-ENCORE+Blueprint+-+Public.pdf | |
$first = "Architecture", | |
"Explain the different design principles used in an enterprise network", | |
"Analyze design principles of a WLAN deployment", | |
"Differentiate between on-premises and cloud infrastructure deployments", | |
"Explain the working principles of the Cisco SD-WAN solution", | |
"Explain the working principles of the Cisco SD-Access solution", | |
"Describe concepts of wired and wireless QoS", |
#!/bin/bash | |
# Go through all *bin directories on a system and list file types | |
DIRS='/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin' | |
EXCLUDE_REGEX='ELF|symbolic' | |
while IFS= read -r dir; do | |
[ -d ${dir} ] || continue # verify dir exists | |
[ "$(ls -A ${dir})" ] || continue # verify dir is not empty |
#!/bin/bash | |
# Read an input file and find the sum/count/average/median | |
# ! Does not do any validation of the input ! | |
FILE='numbers.txt' # where the file is just a list of numbers, one per line | |
# Read input file line-by-line | |
while IFS= read -r num; do | |
sum=$((sum + num)) |
version: "3.8" | |
services: | |
pc: | |
image: ubuntu:20.04 | |
volumes: | |
- ./volumes/apt.sh:/apt.sh:ro | |
command: ["sh", "-c", "/apt.sh"] | |
tty: true |
#!/bin/bash | |
# A poem written just in HTTP header responses | |
# Source: https://ja.cob.land/http2-204-a-poem | |
curl --head https://ja.cob.land/http2-204 |
#!/bin/bash | |
# translate source engine keybinds from one keyboard layout (e.g. QWERTY) to another (DVORAK / COLEMAK) | |
FILE='test.cfg' | |
rm -f $FILE | |
touch $FILE | |
qwerty='`1234567890\-=qwertyuiop[]\\asdfghjkl;'\''zxcvbnm,./' | |
dvorak='`1234567890[]'\'',.pyfgcrl/=\\aoeuidhtns\-;qjkxbmwvz' |
#!/bin/bash | |
# Find the map with the fewest completions on tempus in a given tier | |
# change these variables if you want to use a different class | |
# or filter by a different tier | |
CLASS="soldier" # Options are "soldier" or "demo" | |
TIER="5" | |
if [ $CLASS == "soldier" ]; then |