---
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
generated.by: 8gwifi.org
name: pvo.0
namespace: default
This file contains 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
#!/usr/bin/env bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
else | |
create_user(){ | |
pass=$(perl -e 'print crypt($ARGV[0], "password")' $password) | |
useradd -m -p "$pass" "$username" | |
[ $? -eq 0 ] && echo "User $username has been added to system!" || echo "Failed to add a user!" |
This file contains 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
from openpyxl import Workbook | |
import json | |
import requests | |
workbook = Workbook() | |
sheet = workbook.active | |
row = 1 | |
########################### VARIABLES ######################################################### |
This file contains 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
# list contianer | |
docker ps -a | |
# remove single contianer | |
docker rm ID_or_Name ID_or_Name | |
# stop and remove all contianers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
# remove all image | |
docker rmi $(docker images -a -q) | |
# login into docker contianer |