Skip to content

Instantly share code, notes, and snippets.

View johnphho's full-sized avatar

John Ho johnphho

  • Ottawa, Ontario, Canada
View GitHub Profile
@brc
brc / vmware-tools.md
Last active May 18, 2018 11:35
Installing VMWare tools in Arch Linux

Install OEM VMwareTools

git clone https://github.com/rasa/vmware-tools-patches.git
cd vmware-tools-patches
curl -O https://softwareupdate.vmware.com/cds/vmw-desktop/fusion/6.0.5/2209127/packages/com.vmware.fusion.tools.linux.zip.tar
for i in {0..6}; do sudo mkdir -pv /etc/init.d/rc${i}.d; done
sudo pacman -S net-utils
./untar-and-patch-and-compile.sh
@ccashwell
ccashwell / github_ssh.sh
Created November 8, 2012 22:29
Bash Scripting: OAUTH2 Authorization, Generating SSH keys and Adding Keys to GitHub
#!/bin/bash
# This is an example of OAUTH2 authorization via GitHub and adding a new (optionally generated) SSH key to your account.
# If generated, the key is put in the default location with no password. Security is obviously relaxed for brevity's sake. Enjoy.
read -p "GitHub Username: " uname
read -s -p "GitHub Password: " passwd
if [[ "$uname" == "" || "$passwd" == "" ]]; then
echo -e "\n\nCan't set up your GitHub SSH keys without authorization. You're on your own now, champ."
exit 1
fi