Skip to content

Instantly share code, notes, and snippets.

Stanislav Popov popstas

Block or report user

Report or block popstas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
shr00mie /
Last active Jan 14, 2020
Let's Encrypt SSL for ESXi
## -------------------------------=[ Info ]=--------------------------------- ##
# Generate letsencrypt cert on local server and scp to esxi target.
# Designed and tested on Ubuntu 16.04LTS.
# Assumes you have upnp control over local network. Tested with Ubiquiti USG.
# Dependencies:
# miniupnpc (sudo apt install miniupnpc)
Hengjie /
Last active Jan 19, 2020
How to passthrough SATA drives directly on VMWare ESXI 6.5 as RDMs

How to passthrough SATA drives directly on VMWare EXSI 6.5 as RDMs

There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.

A word about VMWare ESXI 6.7

There is now an option while editing your VM's settings to add a New raw disk when you click `Add ha

gwillem / ansible-bootstrap-ubuntu-16.04.yml
Created Jun 16, 2016
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
View ansible-bootstrap-ubuntu-16.04.yml
# Add this snippet to the top of your playbook.
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
- hosts: all
gather_facts: False
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
maxivak /
Last active Oct 29, 2019
Building Docker image with Packer and provisioning with Ansible

Building Docker image with Packer and provisioning with Ansible



  • Packer is used to build image from a base image, perform provisions and store (commit) the final image.

  • We use provisioners and Packer templates to do the actual work to create the final image.

  • We use Ansible for provisioning.

Nasawa / index.js
Last active Jul 9, 2018
Experimental Hain plugin to quickly convert Timestamps
View index.js
'use strict';
module.exports = (pluginContext) =>
function search(query, res)
var d = new Date(query * 1000);
id: '1',
View digitalocean ping test
#! /bin/bash
# This script runs on os x.
SITES=( "" \
"" \
"" \
"" \
"" \
"" \
View gist:5469009
type T struct {
A int
B string
t := T{23, "skidoo"}
s := reflect.ValueOf(&t).Elem()
typeOfT := s.Type()
for i := 0; i < s.NumField(); i++ {
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
saetia / gist:1623487
Last active Jan 18, 2020
Clean Install – OS X 10.11 El Capitan
View gist:1623487

OS X Preferences

most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
You can’t perform that action at this time.