defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
-
get future version from current version
"future-version": "semver --increment $(node -e \"console.log(JSON.parse(process.env.npm_config_argv).original[1] || 'minor');\") $npm_package_version",
-
run node in shell
node -e "console.log('rimmer')"
https://nodejs.dev/en/learn/run-nodejs-scripts-from-the-command-line -
access npm args on run https://stackoverflow.com/questions/56532492/get-version-level-from-npm-script
npm i -D conventional-changelog-cli
npx lerna exec --concurrency 1 --no-sort --stream -- \
conventional-changelog \
--preset angular \
--infile CHANGELOG.md \
--same-file \
--release-count 0 \
--lerna-package \$LERNA_PACKAGE_NAME \
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
import React, {Component} from 'react'; | |
class Counter extends Component { | |
constructor(props) { | |
super(props) | |
} | |
render() { | |
<p>Counting: {this.props.count}</p> | |
} |
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 | |
class Article | |
{ | |
public function __construct() | |
{ | |
$this->db = new PDO('mysql:host=localhost;port=2020;dbname=LMC', 'editor', '123xyz'); | |
} | |
public function save($data) | |
{ | |
$sql = 'INSERT INTO articles VALUES (' . $_GET['id'] . ', ' . $data['title'] . ', ' . $data['content'] . ')'; |
- use Generic Webhook Trigger to send payload
- but it will work only if the workspace in Jenkins is created
- you must rescan branches first
- use Multibranch Scan Webhook Trigger
- it runs rescan of branches when new branch is created
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
for(i=0;i++<100;console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i)); |
Step 1: Install Sonar Qube Scanner on Jekins
- Manage Jenkins > Manage Plugins > Available > SonarQube Scanner for Jenkins
- Download: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
NewerOlder