Video: https://www.youtube.com/watch?v=oDOw5tB3Udw
Install the python interpreter for your operating system.
Video: https://www.youtube.com/watch?v=oDOw5tB3Udw
Install the python interpreter for your operating system.
Course Video: https://youtu.be/kLZgQWjnUz0?si=FxrEqaLQu7B8A2Cr
List of all built-in Python functions: https://docs.python.org/3/builtins/functions.html
Use the input() function to read input from the user.
sudo dnf update -ysudo dnf install dnf-plugins-core -ysudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.reposudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y| #!/bin/bash | |
| cd /etc/yum.repos.d | |
| sudo mkdir original_repos | |
| sudo cp -v *.repo original_repos | |
| sudo sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo | |
| sudo sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo | |
| sudo sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo | |
| sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | |
| sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | |
| sudo yum clean all |
Getting help
Searching, pulling & listing images
| <?php | |
| function rmdirRecursive(string $dir) { | |
| $iter = new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS); | |
| $it = new RecursiveIteratorIterator($iter, RecursiveIteratorIterator::CHILD_FIRST); | |
| foreach($it as $file) { | |
| if ($file->isDir()) { |
| #!/bin/bash | |
| #Removes old revisions of snaps | |
| #CLOSE ALL SNAPS BEFORE RUNNING THIS | |
| set -eu | |
| LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | | |
| while read snapname revision; do | |
| snap remove "$snapname" --revision="$revision" | |
| done | |
| // Tested with jQuery v3.3.1 | |
| $( document ).ready(function() { | |
| var doVisualUpdates = true; | |
| document.addEventListener('visibilitychange', function(){ | |
| doVisualUpdates = !document.hidden; | |
| }); | |
| // code below changes the background every 10 seconds for the div with id back-overlay-slider |
| <?php | |
| // This script is intended to fix the php built-in server issue with urls that | |
| // contain a .something at the end. The built-in server tries to always treat | |
| // such urls as static assets when sometimes they are routes meant to be | |
| // forwarded to the index.php. See below for more info: | |
| // | |
| // https://bugs.php.net/bug.php?id=61286 | |
| // https://github.com/slimphp/Slim/issues/359 | |
| // https://gonzalo123.com/2012/10/15/how-to-rewrite-urls-with-php-5-4s-built-in-web-server/ | |
| // https://gist.github.com/aenglander/8e2f83c4526fccdcdead |