Skip to content

Instantly share code, notes, and snippets.

View vg's full-sized avatar
🐳
πŸŒŠπŸŒŠβ›΅πŸŒŠπŸŒŠπŸŒŠ

ΰ€΅ΰ₯‡ΰ€£ΰ₯ ΰ€—ΰ₯‹ΰ€ͺΰ€Ύΰ€² vg

🐳
πŸŒŠπŸŒŠβ›΅πŸŒŠπŸŒŠπŸŒŠ
View GitHub Profile
@vg
vg / keybase.md
Created March 15, 2019 06:52
keybase.md

Keybase proof

I hereby claim:

  • I am vg on github.
  • I am vg (https://keybase.io/vg) on keybase.
  • I have a public key whose fingerprint is 39F7 322E 8F6E CB19 5723 7E30 38FA 2F16 93E2 777B

To claim this, I am signing this object:

@vg
vg / tutorial.md
Created January 23, 2019 16:48 — forked from Hengjie/tutorial.md
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.

Summary

We attach the SATA HDDs as a RDM (Raw Device Mapper) into an existing virtual disk in the command line, then on the web app

|=-----------------------------------------------------------------------=|
|=----------------------------=[ BootChess ]=----------------------------=|
|=-----------------------------------------------------------------------=|
|=------------------------=[ by Baudsurfer/rsi ]=------------------------=|
|=-----------------------------------------------------------------------=|
1 - Introduction
1.1 - Why make tiny programs ?
1.2 - Proving know-how remains valued
@vg
vg / create-iso.sh
Created September 9, 2017 00:26 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
@vg
vg / slack-pagerduty-oncall.py
Created August 15, 2017 08:11 — forked from devdazed/slack-pagerduty-oncall.py
Updates a Slack User Group with People that are on call in PagerDuty
#!/usr/bin/env python
from __future__ import print_function
import json
import logging
from urllib2 import Request, urlopen, URLError, HTTPError
from base64 import b64decode
@vg
vg / openstack-cheatsheet.txt
Created July 11, 2017 01:23 — forked from elemoine/openstack-cheatsheet.txt
OpenStack cheatsheet
keystone
--------
keystone tenant-list
openstack project list
keystone tenant-create --name <tenant-name> --description <tenant-desc> --enabled true
openstack project create <project-name> --description <project-desc> --enable
keystone user-create --name <user-name> --tenant <tenant-name> --pass <user-password> --email <user-email> --enabled true
@vg
vg / quicktime-hangouts-recording.md
Created May 22, 2017 03:49 — forked from caseywatts/quicktime-hangouts-recording.md
Quicktime Hangouts Recording (using soundflower for audio)

Short link to this page: caseywatts.com/quicktime

Scenario: You want to talk with someone over google hangouts (like for a user study), and you want to record BOTH:

  • the system output audio (from them)
  • the microphone audio (from you)

(screenshots below in a comment)

General Setup (do this once)

@vg
vg / keybase.md
Last active April 10, 2016 00:37
keybase.md

Keybase proof

I hereby claim:

  • I am vg on github.
  • I am vg (https://keybase.io/vg) on keybase.
  • I have a public key whose fingerprint is 18A0 A4DB B7F1 5C96 1230 28FD F2C9 EF15 5DF8 FC44

To claim this, I am signing this object:

@vg
vg / 0.unix5e.echo.c
Last active August 29, 2015 13:57
echo.c implementations
main(argc, argv)
int argc;
char *argv[];
{
int i;
argc--;
for(i=1; i<=argc; i++)
printf("%s%c", argv[i], i==argc? '\n': ' ');
}