This file contains 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
aws codebuild list-builds-for-project --project-name XXXXX --max-items 100 \ | |
| jq '.ids[]' -r \ | |
| xargs aws codebuild batch-get-builds --ids \ | |
| jq '.builds | sort_by(.buildNumber) | .[] | {buildNumber,startTime,buildStatus} * (.phases|map({key:.phaseType,value:.durationInSeconds})|from_entries)' \ | |
| mlr --j2p cat |
This file contains 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
aws codebuild list-builds-for-project --project-name XXXXX --max-items 100 \ | |
| jq '.ids[]' -r \ | |
| xargs aws codebuild batch-get-builds --ids \ | |
| jq '.builds | sort_by(.buildNumber) | .[] | {buildNumber,startTime,buildStatus} * (.phases|map({key:.phaseType,value:.durationInSeconds})|from_entries)' \ | |
| mlr --j2p cat |
This file contains 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
function success(t){ | |
return new Promise(resolve => { | |
setTimeout(() => { | |
resolve(); | |
}, t); | |
}) | |
} | |
function error(t){ | |
return new Promise((resolve, reject) => { |
This file contains 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 node | |
// @see https://qiita.com/soarflat/items/1a9613e023200bbebcb3 | |
function sampleResolve(value) { | |
return new Promise(resolve => { | |
setTimeout(() => { | |
resolve(value); | |
}, 1000); | |
}) |
This file contains 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
<?php | |
namespace strpos { | |
function startsWith($haystack, $needle) { | |
return (strpos($haystack, $needle) === 0); | |
} | |
function endsWith($haystack, $needle) { | |
return strrpos($haystack, $needle, 0) === strlen($haystack) - strlen($needle); | |
} | |
} |
This file contains 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 | |
# | |
### BEGIN INIT INFO | |
# Required-Start: $network | |
# Should-Start: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO | |
# | |
# chkconfig: 2345 98 02 |
This file contains 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 | |
# | |
# chkconfig: 2345 11 89 | |
. /etc/init.d/functions | |
[ -x /sbin/ip ] || exit 1 | |
[ "$EUID" != "0" ] && exit 4 | |
case "$1" in |
This file contains 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 | |
####################################################################### | |
# TEST | |
# | |
# export OCF_ROOT=/usr/lib/ocf | |
# export OCF_RESKEY_service_dir=/service/dummy | |
# export OCF_RESKEY_svc_bin=/usr/bin/svc | |
# export OCF_RESKEY_svstat_bin=/usr/bin/svstat | |
# |
NewerOlder