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
# qcow2 -> qcow2compress | |
qemu-img convert -O qcow2 -c vm-103-disk-0.qcow2 vm-103-disk-0-comp.qcow2 | |
# lvm-thin -> qcow2 | |
qemu-img convert -O qcow2 /dev/lvm-thin/vm-103-disk-1 vm-103-disk-1.qcow2 | |
# lvm-thin -> qcow2compress oneline | |
qemu-img convert -O qcow2 -c $(pvesm path lvm-thin:vm-103-disk-1) vm-103-disk-1.qcow2 | |
# qcow2 -> raw |
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 | |
# | |
# "kubectl top nodes" based -> metric-servers or heapster needed | |
# possible CSV output w/o line 21 | |
# | |
# output example: | |
# worker-1: 2 % ; 5 % memory | |
# worker-2: 10 % ; 86 % memory | |
# 2019/10/04,17.43.08,CPU & RAM,6%,45% | |
# |
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 | |
# stop and disable fwd 4 systemd linux host | |
systemctl stop firewalld | |
systemctl disable firewalld | |
# accept, flush and delete all iptables rules and chains | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT |
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 | |
# VNC multi-user/multiple access generator | |
# CentOS-7 tested | |
# account: user-1:user-1, user-2_user-2, etc | |
#useradd/passwd loop | |
for i in {1..5}; do useradd user-$i; done; | |
for i in {1..5}; do echo user-$i | passwd user-$i --stdin; done; | |
# xvnc configurations |
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
lsblk | |
fdisk /dev/sde | |
fdisk /dev/sdf | |
mkfs.ext4 /dev/sde1 | |
mkfs.ext4 /dev/sdf1 | |
reboot | |
lsblk | |
vgdisplay | |
pvcreate /dev/sde1 | |
vgextend pve /dev/sde1 |
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
# power server off | |
racadm serveraction powerdown | |
# power server on | |
racadm serveraction powerup | |
# perform server power cycle | |
racadm serveraction powercycle | |
# force hard server power reset |
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
--- | |
- hosts: hosts | |
connection: local | |
name: Configure Server Power Setting | |
gather_facts: False | |
tasks: | |
- name: Configure Server Power Setting | |
dellemc_change_power_state: | |
idrac_ip: "{{ idrac_ip }}" |
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 | |
# Script that import VMware images (ovf based) to Proxmox VE | |
# Your VM_NAME needs to be the same for: VM_NAME (directory) and VM_NAME.ovf | |
PROXMOX_USER=root | |
PROXMOX_PASS=ch4ng3m3! | |
PROXMOX_HOST=1.2.3.4 | |
PROXMOX_PORT=22 | |
PROXMOX_STORAGE=local-lvm | |
VM_PATH=/mnt/hgfs/shared/VM-Backup/ |
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
rm -f $HISTFILE && unset HISTFILE && exit |
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
ovftool.exe "C:\Your\Path\metasploitable-linux-2.0.0\Metasploitable2-Linux\Metasploitable.vmx" "C:\Your\Path\metasploitable\metasploitable.ovf" |
OlderNewer