Skip to content

Instantly share code, notes, and snippets.

View swalberg's full-sized avatar

Sean Walberg swalberg

View GitHub Profile
function _ssh_completion() {
perl -ne 'print "$1 " if /^Host (.+)$/' ~/.ssh/config
}
complete -W "$(_ssh_completion)" ssh
sean~/play/visionTest (master)$ ./gradlew build --stacktrace
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'visionTest'.
> Failed to notify project evaluation listener.
> jaci.gradle.deploy.artifact.ArtifactsExtension.artifact(Ljava/lang/String;Ljava/lang/Class;Lgroovy/lang/Closure;)Ljaci/gradle/deploy/artifact/Artifact;
* Try:
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
# Update to point to wherever they're installed
. /usr/local/etc/bash_completion.d/git-prompt.sh
. /usr/local/etc/bash_completion.d/git-completion.bash
PS1="\[$BLUE\]\u\[$YELLOW\]\[$YELLOW\]\w\[\033[m\]\[$MAGENTA\]\$(__git_ps1)\[$WHITE\]\$ "
<html><head>
<title>SourceForge</title>
<!-- <script src="/js/jquery.com/jquery-1.11.0.min.js"></script> -->
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="https://sourceforge.net/js/mirrors.js"></script>
<script src="/js/sf.js"></script>
<script>
var DR_loc = DR_parse_hash_url();
if (DR_loc) {
DR_sf_main(DR_loc);
@swalberg
swalberg / gist:1ad5de8235a204cc13bdc98601b537f3
Last active September 27, 2017 15:26 — forked from mattjbarlow/gist:242b66cdae6938d34419
Chef Shell in Test Kitchen
cd C:\Users\vagrant\AppData\local\Temp\kitchen
C:\opscode\chef\embedded\bin\gem install chef-zero
C:\opscode\chef\embedded\bin\chef-zero -d # or run this in another window with out -d
knife cookbook upload -a -c client.rb
C:\Users\vagrant\AppData\local\Temp\kitchen> knife cookbook upload -a -c client.rb -k .\client.pem -s http://localhost:8889 -o .
chef-shell -z -c client.rb -o '<YOUR RECIPE>'
tell application "System Events"
tell application "Slack" to activate
key code 18 using {command down}
delay 1
keystroke "/status clear"
delay 0.5
key code 36
delay 0.3
keystroke "/away "
delay 0.5
tell application "System Events"
tell application "Slack" to activate
key code 18 using {command down}
delay 1
keystroke "/status pomodoro"
delay 0.5
key code 36
delay 0.3
keystroke "/away "
delay 0.5
Recipe: aspera::users
* chef_gem[vault] action install (up to date)
* aspera_user[sea] action create
- create sea
- set unix_user to "sea"
- create sea
- set password to "initial"failure
Missing User/Group data: User sea does not appear to exist on the computer (User not found)
This file has been truncated, but you can view the full file.
[{"pid":78038,"tid":1547,"ts":135999022028,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc","src_func":"PushOntoImmediateIncomingQueueLocked"},"dur":89,"tdur":62,"tts":416345},
{"pid":78038,"tid":1547,"ts":135999022077,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":16,"tdur":14,"tts":416370},
{"pid":78038,"tid":1547,"ts":135999022098,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":7,"tdur":4,"tts":416391},
{"pid":78038,"tid":1547,"ts":135999022106,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":6,"tdur":3,"tts":416399},
{"pid":78038,"tid":1547,"ts":13600105977
@swalberg
swalberg / vmware_chef.md
Last active September 13, 2016 22:26
VMware and Chef Tools

VMware and Chef tools

Chef and VMware are a natural pairing and there are several tools available to enhance the integration.

Knife is a command-line tool that provides an interface between a local chef-repo and the Chef server and allows you to manipulate objects on the Chef server. Knife plugin allows your computer to talk to a 3rd party systems like vSphere or vRA. A plugin can create a VM in vSphere and then bootstrap it with Chef, for example, or it can expose your vRa catalog to your workstation so you don't need to use a GUI.

The following are the main interfaces with VMware and Chef our "knife" plugins.