Skip to content

Instantly share code, notes, and snippets.

@manero6
manero6 / script.py
Last active March 23, 2022 09:07
The parent_directory function returns the name of the directory that's located just above the current working directory. Remember that '..' is a relative path alias that means "go up to the parent directory". Fill in the gaps to complete this function.
import os
def parent_directory():
# Create a relative path to the parent
# of the current working directory
relative_parent = os.path.join("..")
# Return the absolute path of the parent directory
return os.path.abspath(relative_parent)
print(parent_directory())
@manero6
manero6 / Vagrantfile
Created March 29, 2021 17:25
Vagrant Fedora all Spins (LibVirt and VirtualBox)
# -*- mode: ruby -*-
# vi: set ft=ruby :
VM_BOX = ENV["VM_BOX"] || "fedora/33-cloud-base"
VM_RAM = ENV["VM_RAM"] || "1536"
VM_CPU = ENV["VM_CPU"] || "2"
### Fedora Spins -> https://spins.fedoraproject.org
spins = %w(
gnome