View Codename.js
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
class Codename { | |
constructor (parser) { | |
this._parser = parser | |
return this | |
} | |
parse (version) { | |
this._version = version || '0.0.0' | |
const [major, minor, patch] = this._version.split('.') | |
this._major = (this._parser.major) ? (this._parser.major[major] || major) : major |
View hdb-cluster-add-full.json
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
{ | |
"operation": "add_node", | |
"name": "harper-edge", | |
"host": "harper-edge", | |
"port": 62344, | |
"subscriptions": [ | |
{ | |
"channel": "default:sensor_data", | |
"subscribe": true, | |
"publish": false |
View hdb-cluster-add.json
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
{ | |
"operation": "add_node", | |
"name": "harper-edge", | |
"host": "harper-edge", | |
"port": 62344, | |
"subscriptions": [] | |
} |
View hdb-compose-full.yaml
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
services: | |
harper-edge: | |
image: harperdb/harperdb | |
container_name: harper-edge | |
ports: | |
- "9900:9925" | |
- "9901:9926" | |
- "62000:62344" | |
environment: | |
- HDB_ADMIN_USERNAME=admin |
View hdb-compose.yml
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
services: | |
harper-edge: | |
image: harperdb/harperdb | |
container_name: harper-edge | |
ports: | |
- "9900:9925" | |
- "9901:9926" | |
- "62000:62344" | |
environment: | |
- HDB_ADMIN_USERNAME=admin |
View caesarShift-1.js
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
/** | |
* Esse código funciona usando o código de cada caractere digitado e realizando a modificação para outro caractere de acordo com o número da chave | |
* Para entender melhor de onde vem os números de cada alfabeto, veja o código abaixo | |
*/ | |
// const alphabet = 'abcdefghijklmnpqrstuvwxyz' | |
// const capital = alphabet.toUpperCase() | |
// for (let i = 0; i < alphabet.length; i++) { | |
// console.log(alphabet[i], alphabet.charCodeAt(i)) | |
// // a 97 |
View helm-h10.sh
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
helm install \ | |
--create-namespace \ | |
-n database \ | |
--set env.ADMIN_USERNAME=harperdb \ | |
--set env.ADMIN_PASSWORD=harperdb \ | |
harperdb ./harperdb |
View helm-h9.yaml
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
--- | |
# Source: harperdb/templates/persistentVolumeClaim.yaml | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: harperdb-data | |
namespace: database | |
spec: | |
resources: | |
requests: |
View helm-h8.sh
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
helm template ./harperdb \ | |
-n database \ | |
--set env.ADMIN_USERNAME=harperdb \ | |
--set env.ADMIN_PASSWORD=harperdb |
View helm-h7.yaml
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
name: harperdb | |
service: | |
port: 9925 | |
env: | |
ADMIN_USERNAME: | |
ADMIN_PASSWORD: |
NewerOlder