Skip to content

Instantly share code, notes, and snippets.

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
@mrlesmithjr
mrlesmithjr / ks.cfg
Created December 3, 2019 18:08
Packer Nested ESXi Builds
#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
@l1x
l1x / monte_carlo_pi_fast.md
Last active October 9, 2019 13:01
Monte Carlo Pi (Clojure)

Monte Carlo estimation for the value of π

Iteration 1

(defn pair
  []
  [(rand) (rand)])

(defn pairs
@realtebo
realtebo / configure_for_ansible_winrm.ps1
Last active August 10, 2020 03:28
Configure the local Windows 10 machine for be controlled remotely from ansible
##############################################################################################################
# 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.
##############################################################################################################
@janegilring
janegilring / Packer-Windows.json
Created April 27, 2018 05:42
Packer file for building Windows base images
{
"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",
@Nokius
Nokius / README.md
Created March 6, 2018 17:12
[Terraform][proxmox] small VM created with terraform on proxmox

terraform-provider-proxmox

simple VM created with terraform-provider-proxmox

  • one core
  • 512MB RAM
  • Ubuntu netinstall CDROM
  • 32GB IDE HDD
  • bridged network interface
@mattieb
mattieb / out-vs-err.sh
Last active November 21, 2021 10:34
makes output on both stdout and stderr
#!/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>
@KyleMartin901
KyleMartin901 / gist:dece3f19a1973e9a7533
Created March 31, 2015 21:35
Convert VMware VM NIC adapter from e1000 to VMXNET3
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
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active July 22, 2024 18:14
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@jpawlowski
jpawlowski / msys_hetzner-etc_network_interfaces
Created August 12, 2012 12:06
Debian network configuration for Proxmox VE server running on a Hetzner host
# /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!)