Skip to content

Instantly share code, notes, and snippets.

View VladRassokhin's full-sized avatar

Vladislav Rassokhin VladRassokhin

View GitHub Profile
@VladRassokhin
VladRassokhin / raid_ephemeral.sh
Last active August 29, 2015 14:27 — forked from joemiller/raid_ephemeral.sh
detect all ephemeral disks on EC2 then stripe together in a raid-0 vol mounted at /mnt
#!/bin/bash
#
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe
# mounted at /mnt. It should be run early on the first boot of the system.
#
# Beware, This script is NOT fully idempotent.
#
METADATA_URL_BASE="http://169.254.169.254/2012-01-12"
@andrewmriley
andrewmriley / gist:6401eef48859519f483c
Last active April 11, 2024 18:41
Copy your current git branch name to clipboard
## Choose one and add it as an alias or throw it in a script ##
### Modern Git Thanks to @Pezmc
# Linux/Unix Wayland
git branch --show-current | wl-copy
# Linux/Unix X11
git branch --show-current | xclip -selection clipboard
# MacOS
@dcode
dcode / Guest OS Descriptors by VMware Platform.md
Last active March 27, 2024 00:13
When using Packer (or other vmx editing needs), I needed to know what the `guest_os_type` should be according to what platform it was running on. Here you go. If it isn't listed in a column, it didn't exist at that time.
ESXi 6.5 ESXi 6.7 VMware Fusion 11 Guest Description
CRXPod1-64 VMware CRX Pod 1
CRXSys1-64 VMware CRX Sys 1
amazonlinux2-64 Amazon Linux 2 or higher, 64-Bit
asianux3Guest asianux3Guest asianux3 Asianux Server 3
asianux3_64Guest asianux3_64Guest asianux3-64 Asianux Server 3, 64-Bit
asianux4Guest asianux4Guest asianux4 Asia Linux 4
asianux4_64Guest asianux4_64Guest as