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
# Requires the cryptography package from pip | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives import serialization | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
# Generate RSA private key | |
private_key = rsa.generate_private_key(public_exponent=65537, key_size=2048, backend=default_backend()) | |
# Serialize private key to PEM format |
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
import os | |
def process_directory(root): | |
for root, dirs, files in os.walk(root): | |
for name in files: | |
if name.endswith(".new"): | |
print("Renamed -> ", name) | |
os.rename(os.path.join(root, name), os.path.join(root, name.replace(".new", ""))) | |
process_directory(os.path.dirname(os.path.realpath(__file__))) |
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
<div> | |
@if ($paginator->hasPages()) | |
@php(isset($this->numberOfPaginatorsRendered[$paginator->getPageName()]) ? $this->numberOfPaginatorsRendered[$paginator->getPageName()]++ : $this->numberOfPaginatorsRendered[$paginator->getPageName()] = 1) | |
<nav role="navigation" aria-label="Pagination Navigation" class="flex items-center justify-between"> | |
<div class="flex justify-between flex-1 sm:hidden"> | |
<span> | |
@if ($paginator->onFirstPage()) | |
<span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-700 cursor-none leading-5 rounded-md"> | |
{!! __('pagination.previous') !!} |
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
#/bin/bash -xe | |
systemctl stop corosync.service | |
systemctl stop pve-cluster.service | |
systemctl stop corosync | |
systemctl stop pve-cluster | |
pmxcfs -l | |
rm /etc/pve/corosync.conf | |
rm /etc/corosync/* | |
rm /var/lib/corosync/* |