Chef presently runs the resources in a recipe serially, one after the next. In this proposal, user-selected groups of resources will run their actions in parallel.
To run a group of resources in parallel, you write it this way:
| <?php | |
| $countries = array | |
| ( | |
| 'AF' => 'Afghanistan', | |
| 'AX' => 'Aland Islands', | |
| 'AL' => 'Albania', | |
| 'DZ' => 'Algeria', | |
| 'AS' => 'American Samoa', | |
| 'AD' => 'Andorra', |
| To remove a submodule you need to: | |
| Delete the relevant line from the .gitmodules file. | |
| Delete the relevant section from .git/config. | |
| Run git rm --cached path_to_submodule (no trailing slash). | |
| Commit and delete the now untracked submodule files. |
| # Windows PowerShell script to restore the right to set your desktop wallpaper when a group policy blocked it. | |
| # Must be executed as administrator. | |
| # Automates the steps described at http://neuralfibre.com/paul/it/how-to-block-your-corporate-wallpaper-in-windows | |
| Set-StrictMode -Version 2.0 | |
| function enable-privilege { | |
| param( | |
| ## The privilege to adjust. This set is taken from |
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Future; | |
| import java.util.concurrent.LinkedBlockingQueue; | |
| import java.util.concurrent.ThreadPoolExecutor; | |
| import java.util.concurrent.TimeUnit; | |
| public class FuturesA { | |
| public static void run() throws Exception { |
| # varnish | |
| sudo yum remove varnish* | |
| sudo rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el6/noarch/varnish-release-3.0-1.el6.noarch.rpm | |
| sudo yum install varnish-3.0.3 | |
| sudo yum install pcre-devel libedit libedit-devel | |
| # varnish source | |
| wget http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz | |
| tar -zxvf varnish-3.0.3.tar.gz | |
| ./configure |
| Msiexec.exe /qb- /l*vx %LogPath%\<file>.log REBOOT=ReallySuppress UILevel=67 ALLUSERS=2 /i <File>.msi |
| #!/bin/sh | |
| # Sublime Text 3 Install (last update: Monday 13 March 2017) | |
| # | |
| # No need to download this script, just run it on your terminal: | |
| # | |
| # curl -L git.io/sublimetext | sh | |
| # Detect the architecture |
Chef presently runs the resources in a recipe serially, one after the next. In this proposal, user-selected groups of resources will run their actions in parallel.
To run a group of resources in parallel, you write it this way:
| <NotepadPlus> | |
| <UserLang name="Cypher" ext="cypher" udlVersion="2.1"> | |
| <Settings> | |
| <Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
| <Prefix Keywords1="no" Keywords2="no" Keywords3="no" /> | |
| </Settings> | |
| <KeywordLists> | |
| <Keywords name="Comments">00// 01 02 03// 04</Keywords> | |
| <Keywords name="Operators1">( ) , = :</Keywords> | |
| <Keywords name="Folders in comment, open">CASE</Keywords> |