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/sh | |
# DESCRIPTION: | |
# this script will create a virtual machine on an ESXi 6+ hypervisor. | |
# it will create a small vm to specification from the vmx template config. | |
# it will create a small thin provisioned disk with 8G as OS drive. | |
# it will mount an ISO image and have the cdrom ready for install. | |
# | |
# pre-reqs: this script needs to be in the root-path of the vmfs datastore where you want to deploy vms. | |
# pre-reqs: this script needs to have the cwd changed to basedir of this script. |
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 | |
# | |
# let's make an ansible rpm for offline deployment | |
# | |
yum makecache | |
yum -y update | |
# rpm build deps |
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 | |
# | |
# let's make an offline repo of mfu software | |
# | |
# deps | |
yum install -y yum-utils-1.1.31-40.el7.noarch | |
# |
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
# goodies | |
lsof | |
tree | |
# info tools | |
net-tools # provides ifconfig, netstat | |
bind-utils # provides host | |
# performance tools | |
sysstat |
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
yum install -y epel; yum makecache | |
yum install -y golang-godoc golang-docs | |
cat < 'eof' > /etc/systemd/system/godoc.service | |
[Unit] | |
Description = golang godoc web server | |
[Service] | |
ExecStart=/usr/bin/godoc -http :8080 | |
Restart=always |
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
# Reload the file with Prefix r. | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
set -g mouse off | |
set -g default-terminal "screen-256color" | |
# bar style | |
set -g status-style fg=white,bold,bg=black | |
setw -g window-status-style fg=cyan,bg=black | |
setw -g window-status-current-style fg=white,bold,bg=red |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00 |
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
#cloud-config | |
autoinstall: | |
version: 1 | |
early-commands: | |
- systemctl stop ssh # otherwise packer tries to connect and exceed max attempts | |
- hostnamectl set-hostname ubuntu-00 # update hostname even for the installer environment | |
- dhclient # re-register the updated hostname | |
network: |
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
#!ipxe | |
# ubuntu focal 20.04 | |
# $seedfrom used to find the user-data and meta-data files by nocloud-net provider for cloud-init. | |
# the trailing slash is important, the cloud-init sticks 'meta-data' or 'user-data' right after it, without prepending a forward slash. | |
set seedfrom http://repo/files/ubuntu2004/ | |
# $base url is where the vmlinuz and initrd live. | |
# they were fished out from the live-server iso file. the iso file is also in this directory. | |
set base http://repo/files/ubuntu2004 |
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 | |
IMAGE=empty.iso | |
BUILD=/dev/null | |
mkisofs -r -V "Empty ISO" -J -l -o $IMAGE $BUILD |
OlderNewer