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
var createAndUpdateCommand = args.AzureRepository.Apply( | |
r => $@" | |
$policy = az repos policy list --repository-id {r.Id} --branch {r.DefaultBranch} --detect false --project {r.ProjectId} --organization https://dev.azure.com/XXXXXX | Out-String | ConvertFrom-Json | Where-Object {{ $_.type.displayName -eq 'Minimum number of reviewers' }} | Select-Object -Property id; | |
if([string]::IsNullOrEmpty($policy.id)) {{ | |
az repos policy approver-count create --allow-downvotes false ` | |
--blocking true ` | |
--branch {r.DefaultBranch} ` | |
--creator-vote-counts false ` | |
--enabled true ` |
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 com.cloudbees.plugins.credentials.*; | |
import com.cloudbees.plugins.credentials.domains.Domain; | |
import org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl; | |
println "Jenkins credentials config file location=" + SystemCredentialsProvider.getConfigFile(); | |
println "" | |
def fileName = "<nameOfFile>" // e.g appsettings.Development.json | |
SystemCredentialsProvider.getInstance().getCredentials().stream(). |
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
sudo service mysqld stop | |
sudo yum -y erase mysql-config mysql55-server mysql55-libs mysql55 | |
sudo yum -y install mysql57-server mysql57 | |
sudo service mysqld start | |
sudo yum -y install php71 php71-cli php71-common php71-devel php71-mysqlnd php71-pdo php71-xml php71-gd php71-intl php71-mbstring php71-mcrypt php71-opcache php71-pecl-apcu php71-pecl-imagick php71-pecl-memcached php71-pecl-redis php71-pecl-xdebug | |
sudo alternatives --set php /usr/bin/php-7.1 | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/bin/composer |
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
// ==UserScript== | |
// @name EE Scaper | |
// @namespace http://jono20201.com/ | |
// @version 0.1 | |
// @description Collate information about EE data plans | |
// @author Jonathan Martin | |
// @include https://myaccount.ee.co.uk/* | |
// @grant unsafeWindow | |
// @grant GM_setValue | |
// @grant GM_getValue |
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
<code_scheme name="PSR2 + Arrays"> | |
<PHPCodeStyleSettings> | |
<option name="ALIGN_KEY_VALUE_PAIRS" value="true" /> | |
<option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" /> | |
<option name="ALIGN_PHPDOC_COMMENTS" value="true" /> | |
<option name="ALIGN_ASSIGNMENTS" value="true" /> | |
<option name="COMMA_AFTER_LAST_ARRAY_ELEMENT" value="true" /> | |
<option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" /> | |
<option name="PHPDOC_WRAP_LONG_LINES" value="true" /> | |
<option name="LOWER_CASE_BOOLEAN_CONST" value="true" /> |
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
var elixir = require('laravel-elixir'), | |
glob = require('glob'), | |
i; | |
Elixir.config.notifications = false; | |
var cssBuildPath = "public/css-build/", | |
jsBuildPath = "public/js-build/"; | |
var lessFiles = glob.sync("*", { |