| 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
| # https://fedoraproject.org/wiki/PackagingDrafts/Go | |
| %global commit 63fe64c471e7d76be96a625350468dfc65c06c31 | |
| %global shortcommit %(c=%{commit}; echo ${c:0:7}) | |
| Name: example-app | |
| Version: 1.0.0 | |
| Release: 6%{?dist} | |
| Summary: This application is an example for the golang binary RPM spec | |
| License: ASL 2.0 | |
| URL: http://www.example-app.io |
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
| import glob | |
| import os | |
| import re | |
| import subprocess | |
| root = "/Volumes/Data/baiduyun/一年级L11_L15" | |
| def sort_by_file_index(path: str): | |
| bn = os.path.basename(path) |
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
| #! /usr/bin/env python3 | |
| # Note and TBF: make sure the name is already sorted | |
| # 没有 歡樂頌1】第8, 必须是 歡樂頌1】第08集 | |
| import os | |
| import glob | |
| import re | |
| import argparse | |
| parser = argparse.ArgumentParser("rename video names") |
NewerOlder

