Skip to content

Instantly share code, notes, and snippets.

View russt's full-sized avatar

Russ Tremain russt

View GitHub Profile
@russt
russt / esxidate
Last active August 29, 2015 14:23
alias to generate esxcli command to set time and date
#alias to generate esxcli command to set time and date
#this is a csh/tcsh alias:
alias esxidate date -u '"+esxcli system time set --year=%Y --month=%m --day=%d --hour=%H --min=%M --sec=%S"'
#Usage:
% esxidate
esxcli system time set --year=2015 --month=06 --day=17 --hour=20 --min=42 --sec=12
#Use it to set the time on your esxi host via ssh:
% ssh myesxi `esxidate`
@russt
russt / godocserver.plist
Created December 5, 2014 01:22
how to setup godoc server on mac os x
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.golang.doc.example</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/godoc</string>
<string>-http=:6060</string>