Skip to content

Instantly share code, notes, and snippets.

@joshoohaah
joshoohaah / gist:63b433cb0b4adb11988b2ff67f513ce1
Last active December 26, 2018 19:22
Basic Tooling installation & Deployment of a dev workstation
packages = %w[ git conemu 7zip]
packages.each do |package_name|
chocolatey_package package_name
end
packages = %w[boxstarter]
packages.each do |package_name|
chocolatey_package package_name
end
@joshoohaah
joshoohaah / uninstall-task.xml.erb
Created August 23, 2017 16:12
uninstall scheduled task with no trigger
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<Triggers />
<Principals>
<Principal id="Author">
<RunLevel>HighestAvailable</RunLevel>
<UserId><%= @user_id %></UserId>
<LogonType>InteractiveToken</LogonType>
</Principal>
</Principals>
@joshoohaah
joshoohaah / deploy_task.rb
Created August 23, 2017 16:09
create an scheduled task with no trigger to execute
# Creates the Uninstall-Prerequisites scheduled task XML
template task_xml_path do
source 'uninstall-task.xml.erb'
variables(
user_id: user_id,
script_path: script_path,
log_path: log_path
)
action :create
end
---
driver:
name: ec2
region: us-east-1
availability_zone: us-east-1b
aws_ssh_key_id: devops_rsa
subnet_id: subnet-014c932a
security_group_ids: [sg-6e34540a, sg-572eac33] # default
tags:
role: app
@joshoohaah
joshoohaah / cloudSettings
Last active March 5, 2017 16:34
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-03-05T16:34:51.898Z","extensionVersion":"v2.5.1"}
@joshoohaah
joshoohaah / gist:1dc7f53c40bf5e7b8d6fbbaedc479594
Created May 25, 2016 13:18
jenkins jnlp slave error for windows file directory.
- Create jenkins_jnlp_slave[WinBuild]
* directory[/C:/jenkins] action create (up to date)
* group[jenkins-builder] action create (up to date)
* user[jenkins-builder] action create
================================================================================
Error executing action `create` on resource 'user[jenkins-builder]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
@joshoohaah
joshoohaah / gist:3ad88750b7fa43bfe8828ba54f0232ff
Last active April 20, 2016 17:56
kitchen converge -l debug run for Windows box that does not find .ps1 file (test-kitchen v 1.7.3)
$ kitchen converge -l debug
-----> Starting Kitchen (v1.7.3)
D [Vagrant command] BEGIN (vagrant --version)
D [Vagrant command] END (0m0.19s)
D [Vagrant command] BEGIN (vagrant plugin list)
D [Vagrant command] END (0m1.38s)
D Berksfile found at /Users/joshuaschneider/healthcare-dev/cookbooks/hc_ad_config/Berksfile, loading Berkshelf
D Berkshelf 4.3.2 library loaded
D winrm requested, loading winrm gem (["~> 1.6"])
D winrm is loaded.