By Gabriel Staples
TODO:
- Look into this one: https://gist.github.com/juanca/669c59f15a17e20022b8bd78b12889e6.
References:
By Gabriel Staples
TODO:
References:
git filter-branch --tree-filter 'git ls-files -z | xargs -0 dos2unix' -- --all |
# -*- coding: utf8 -*- | |
""" | |
A simple monkeypath for the pstats module to be able to see sub-millisecond timings | |
If display value is 0.000, display the time in microseconds | |
""" | |
import pstats | |
def f8(x): |
/** | |
* Example: | |
* | |
* <ng-container *rerender='changingInput'> | |
* this content will be re-rendered everytime `changingInput` changes | |
* </ng-container> | |
*/ | |
import { Directive, | |
Input, |
{ | |
"type": "object", | |
"required": ["Statement"], | |
"additionalProperties": false, | |
"properties": { | |
"Version": { | |
"type": "string", | |
"enum": ["2008-10-17", "2012-10-17"] | |
}, | |
"Id": { |
# GIT heart FZF | |
# ------------- | |
is_in_git_repo() { | |
git rev-parse HEAD > /dev/null 2>&1 | |
} | |
fzf-down() { | |
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
} |
pipeline { | |
agent { | |
label 'jenkins-worker-light' | |
} | |
triggers { | |
cron(env.BRANCH_NAME == 'master' ? '*/15 * * * *' : '') | |
} | |
options { | |
timeout(time: 60, unit: 'SECONDS', activity: false) | |
} |
No, you are not allowed to change the copyright notice. Indeed, the license text states pretty clearly:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
But you are allowed to add a copyright notice.
If you want to keep the MIT license, which is what I would advise you to do, you only need to add a single line to the license file, before or after Copyright (c) 2012 Some Name
with your own copyright notice. The final LICENSE
file will look like this:
The MIT License (MIT)
@NonCPS | |
def parseJson(txt){ | |
def lazyMap = new groovy.json.JsonSlurper().parseText(txt) | |
def map = [:] | |
for ( prop in lazyMap ) { | |
map[prop.key] = prop.value | |
} | |
return map; | |
} |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |