| Shortcut | Description |
|---|---|
| Ctrl+Shift+P | command prompt |
| Ctrl+Alt+P | switch project |
| Ctrl+P | go to file |
| Ctrl+G | go to line |
The following document is intended to be a quick guide to getting you setup for doing local development with Chef. This guide was created on my MacBook, but should work fine with Linux, and Windows workstations as well.
- Workstation - A workstation is a computer that is configured to run various Chef command-line tools that synchronize with a chef-repo, author cookbooks, interact with the Chef server, interact with nodes, or applications like Chef Delivery
- Node - A node is any machine—physical, virtual, cloud, network device, etc.—that is under management by Chef.
- Chef Server- The Chef server acts as a hub for configuration data. The Chef server stores cookbooks, the policies that are applied to nodes, and metadata that describes each registered
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Post-commit hook that decrypts files containing '$ANSIBLE_VAULT' | |
| # | |
| # File should be .git/hooks/post-commit and executable | |
| CRYPT_TAG='^\$ANSIBLE_VAULT' | |
| EXIT_STATUS=0 | |
| wipe="\033[1m\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The MIT License (MIT) | |
| Copyright (c) 2015 Justin Perry | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Exports Issues from a specified repository to a CSV file | |
| Uses basic authentication (Github username + password) to retrieve Issues | |
| from a repository that username has access to. Supports Github API v3. | |
| """ | |
| import csv | |
| import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -o errexit | |
| # Author: David Underhill | |
| # Script to permanently delete files/folders from your git repository. To use | |
| # it, cd to your repository's root and then run the script with a list of paths | |
| # you want to delete, e.g., git-delete-history path1 path2 | |
| if [ $# -eq 0 ]; then | |
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cat << EOF > /etc/apt/sources.list | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse |
NewerOlder

