r.dbCreate('mydb')
This file contains hidden or 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
| apiVersion: networking.k8s.io/v1 | |
| kind: NetworkPolicy | |
| metadata: | |
| name: allow-certmanager-solver | |
| namespace: kasten | |
| spec: | |
| ingress: | |
| - from: | |
| - namespaceSelector: {} | |
| podSelector: |
This file contains hidden or 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
| /* | |
| * Just copy and paste the code. | |
| */ | |
| package editabletableview; | |
| import java.time.LocalDate; | |
| import java.time.ZoneId; | |
| import java.time.format.DateTimeFormatter; | |
| import java.time.format.FormatStyle; | |
| import java.util.Date; |
This file contains hidden or 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
| apiVersion: storage.k8s.io/v1 | |
| kind: StorageClass | |
| metadata: | |
| name: do-block-storage-xfs | |
| provisioner: dobs.csi.digitalocean.com | |
| parameters: | |
| fsType: xfs | |
| reclaimPolicy: Retain | |
| volumeBindingMode: WaitForFirstConsumer |
This file contains hidden or 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: https://gist.github.com/fca66711eaf0440483eba42ee013311a | |
| ##################################### | |
| # How to Apply GitOps to Everything # | |
| # Combining Argo CD and Crossplane # | |
| # https://youtu.be/yrj4lmScKHQ # | |
| ##################################### | |
| # Referenced videos: | |
| # - Argo CD - Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4 |
This file contains hidden or 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
| GNU AFFERO GENERAL PUBLIC LICENSE | |
| Version 3, 19 November 2007 | |
| Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
| Everyone is permitted to copy and distribute verbatim copies | |
| of this license document, but changing it is not allowed. | |
| Preamble | |
| The GNU Affero General Public License is a free, copyleft license for |
This file contains hidden or 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
| brew install tinyproxy | |
| tinyproxy -c /usr/local/etc/tinyproxy/tinyproxy.conf -d | |
| Tests: | |
| NO AUTH | |
| curl -iv --noproxy "*" --location http://www.google.com | |
| AUTH FAIL |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>WebSocket demo</title> | |
| </head> | |
| <body> | |
| <div> | |
| <form> | |
| <label for="numberfield">Number</label> | |
| <input type="text" id="numberfield" placeholder="12"/><br /> |
This snippet is about cross-platform AES-GCM-256 encryption & decryption, Where payload is being encrypted using JAVA and decrypted using NODE
sample config :
{
"masterKey": "sfcpnnjFG6dULJfo1BEGqczpfN0SmwZ6bgKO5FcDRfI=",
"iterations": 2333,
"keyLength": 32,
"digest": "sha512"
This file contains hidden or 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
| const fs = require('fs'); | |
| const parser = require('fast-xml-parser'); | |
| const soapRequest = require('./soap'); | |
| const url = ''; // your SOAP service url | |
| const headers = { | |
| 'Content-Type': 'text/xml;charset=UTF-8', | |
| 'soapAction': '', // SOAP Action url, if needed |