$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
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'; | |
import PubSub from 'pubsub-js'; | |
class App extends Component { | |
state = { show: true }; | |
render() { | |
return ( | |
<div className="App"> | |
<button onClick={() => this.setState(state => ({ show: !state.show }))}> | |
{this.state.show ? 'Hide panel' : 'Show panel'} |
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
# Convert it into pkcs12 format | |
openssl pkcs12 -export -out jenkins.p12 -inkey certificate.key -in certificate.crt -name "jenkins-cert" | |
# Create keystore if not exist | |
https://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html | |
# Import | |
keytool -importkeystore -srckeystore jenkins.p12 -srcstoretype pkcs12 -destkeystore keystore.jks |