Skip to content

Instantly share code, notes, and snippets.

View mikepsinn's full-sized avatar
💭
Attaining universal consciousness

Mike P. Sinn mikepsinn

💭
Attaining universal consciousness
View GitHub Profile
@satooshi
satooshi / junit.php
Last active October 4, 2022 06:09
Parse JUnit xml log generated by PHPUnit (phpunit ---log-junit build/logs/junit.xml) and print elapsed time each test case. If you want to color time at certain threshold time, get ColorCLI class (see https://gist.github.com/satooshi/4750401).
<?php
function run($path)
{
$xml = simplexml_load_file($path);
$project = $xml->testsuite;
echo sprintf("total: %s msec", formatMsec($project['time'])) . PHP_EOL;
foreach ($project->testsuite as $testsuite) {
@mikepsinn
mikepsinn / install-choco-script.bat
Last active December 30, 2021 13:36
Windows server Choco automated install script
:: Download this and execute as admin
:: Install choco .exe and add choco to PATH
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco feature enable -n allowGlobalConfirmation
:: Just install node stuff manually. Trust me.
:: choco install nodejs-lts --install-directory='C:\nodejs' -fy
:: npm install -g gulp [email protected] [email protected] bower
@stormisOld
stormisOld / Jenkinsfile
Created September 4, 2019 11:48
Jenkinsfile for php static analysis using docker
#!/usr/bin/env groovy
properties([
pipelineTriggers([
triggers: [
[
$class: 'com.cloudbees.jenkins.plugins.BitBucketTrigger',
]
]
]),
PHP 17 hrs 58 mins ██████████▍░░░░░░░░░░ 49.5%
JavaScript 6 hrs 6 mins ███▌░░░░░░░░░░░░░░░░░ 16.8%
Other 3 hrs 26 mins █▉░░░░░░░░░░░░░░░░░░░ 9.5%
YAML 2 hrs 7 mins █▏░░░░░░░░░░░░░░░░░░░ 5.8%
HTML 1 hr 36 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.5%