(defn pair
[]
[(rand) (rand)])
(defn pairs
This file contains hidden or 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
yum updateinfo | less -NFiX | |
yum check-update --security | |
yum updateinfo --security | |
yum updateinfo list --security | less -NFiX | |
yum updateinfo list updates | grep Critical | |
yum list available kernel | |
uname -r | |
yum update --security | |
reboot | |
yum update-minimal --advisory RHSA-2018:1965 --security |
This file contains hidden or 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
#Accept the VMware End User License Agreement | |
vmaccepteula | |
# clear paritions and install | |
clearpart --firstdisk --overwritevmfs | |
install --firstdisk --overwritevmfs --novmfsondisk | |
#set the root password | |
rootpw VMw@re1 |
This file contains hidden or 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
############################################################################################################## | |
# https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#upgrading-powershell-and-net-framework | |
# | |
# The username and password parameters are stored in plain text in the registry. Make sure the Remove-Item | |
# commands are run, check them after the script finishes to ensure no credentials are still stored on the host. | |
# | |
# The ConfigureRemotingForAnsible.ps1 script is intended for training and development purposes only and | |
# should not be used in a production environment, since it enables settings (like Basic authentication) | |
# that can be inherently insecure. | |
############################################################################################################## |
This file contains hidden or 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
{ | |
"builders": [ | |
{ | |
"type": "hyperv-iso", | |
"output_directory": "./output-{{ user `os_name` }}-base-hyperv/", | |
"temp_path": "C:\\ClusterStorage\\HYPData01\\PackerTemplates\\temp", | |
"vm_name": "{{ user `os_name` }}-base", | |
"iso_url": "{{ user `iso_url` }}", | |
"iso_checksum": "{{ user `iso_checksum` }}", | |
"iso_checksum_type": "sha1", |
simple VM created with terraform-provider-proxmox
- one core
- 512MB RAM
- Ubuntu netinstall CDROM
- 32GB IDE HDD
- bridged network interface
This file contains hidden or 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/sh | |
# | |
# This script outputs "stdout" to stdout and "stderr" to stderr. | |
# | |
# Try it like this and observe the differences: | |
# | |
# out-vs-err.sh 2>&1 >/dev/null | |
# out-vs-err.sh >/dev/null 2>&1 | |
# | |
# See <http://stackoverflow.com/questions/10508843/what-is-dev-null-21/10508862#comment48709328_10508843> |
This file contains hidden or 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
Add-PSSnapin VMware.VimAutomation.Core | |
Add-PSSnapin VMware.VimAutomation.VDS | |
$viserver = 'vi_server' | |
$credentials = Get-Credential | |
Connect-VIServer -Server $viserver -Credential $credentials | |
Write-Output | |
#Adpter type to retrive |
This file contains hidden or 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
# /etc/network/interfaces | |
# | |
auto lo | |
iface lo inet loopback | |
# device: eth0 | |
iface eth0 inet manual | |
# IPv4 bridge | |
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!) |
NewerOlder