Skip to content

Instantly share code, notes, and snippets.

View danieljimenez's full-sized avatar

Daniel danieljimenez

  • Texas
  • 13:33 (UTC -05:00)
View GitHub Profile
@danieljimenez
danieljimenez / test.sh
Created February 27, 2017 02:01 — forked from anonymous/test.sh
#!/usr/bin/env bash
#
#
# 2017-02-26 7:01 PM
#
# Bash "strict mode header".
IFS=$'\n\t'
set -euo pipefail
# Path to this script.
@danieljimenez
danieljimenez / test.sh
Created February 27, 2017 02:00 — forked from anonymous/test.sh
#!/usr/bin/env bash
#
#
# 2017-02-26 7:01 PM
#
# Bash "strict mode header".
IFS=$'\n\t'
set -euo pipefail
# Path to this script.
@danieljimenez
danieljimenez / test.sh
Created February 27, 2017 02:00 — forked from anonymous/test.sh
#!/usr/bin/env bash
#
#
# 2017-02-26 7:01 PM
#
# Bash "strict mode header".
IFS=$'\n\t'
set -euo pipefail
# Path to this script.
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Contributor: Adam Edwards
1. Install chocolatey – http://chocolatey.org
2. Install PSReadline to give PowerShell readline power – use the –emacs mode in your PowerShell profile so you have history search and other keyboard behavior like bash: https://github.com/lzybkr/PSReadLine
3. Use chocolatey to install ConEmu, a terminal replacement that supports ANSI colors, dynamic resizing, “normal” text selection and cut and paste, and lots of other customizations: cinst conemu. And set the startup shell for ConEmu to PowerShell (not cmd.exe)
4. Use chocolatey to install an editor – if you’re not already an emacs or vim person, use it to install Atom or Sublime, or Notepad++
5. Always use PowerShell – do not use cmd.exe
6. Install ChefDK and use chef shell-init powershell to get at your Chef Ruby environment.
7. Use Pantry – it can automate #1, 3, 4, and 6 and will probably have support for #2. https://github.com/chef/pantry-chef-repo
8. If you get stuck on a box where you don’t an editor or chocolatey and need to e