:put [/ip cloud get public-address]
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
const express = require('express'); | |
const fs = require("fs"); | |
const readline = require("readline"); | |
const app = express(); | |
const port = 3003; | |
let ip; | |
let userName; | |
// Process JSON in request body | |
app.use(express.json()); |
- In Namecheap, Open Account > SSL Certificates from the navbar.
- Pres RENEW, REISSUE or ACTIVATE depending on which button you see and get to the point where it asks for CSR
- Go to https://decoder.link/csr_generator to generate a CSR.
- Copy text from the
CSR
andPRIVATE KEY
somewhere safe. - Go back to Namecheap and paste the
CSR
to the CSR box. The domain name should be read from theCSR
. - Next, for the DCV method, choose whatever you wish to use to validate that you have control over the domain and pass the validation process.
- After validation you can download the certificate files as a zip file from the SSL details page.
- Extract the certificate files from the zip file.
- Create a new empty text file with the same name as the .crt in the zip but with .key extension (DOMAIN_NAME.key).
- Paste the
PRIVATE KEY
text into the text file and save it.
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
Index: crypto.js | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/crypto.js b/crypto.js | |
new file mode 100644 | |
--- /dev/null (date 1634904787281) | |
+++ b/crypto.js (date 1634904787281) | |
@@ -0,0 +1,58 @@ |
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
const {JWK, JWS} = require('node-jose') | |
const fs = require('fs') | |
const {join} = require('path') | |
const jwkToPem = require('jwk-to-pem') | |
const jwt = require('jsonwebtoken') | |
const certDir = '.cert' | |
const keystoreFile = join(certDir, 'keystore.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
Windows terminal | |
Kuidas PHPs koodi siluda [Xdebug] | |
Kuidas Vim editoris teksti asendada | |
Kuidas SSHga faile kopeerida arvutite vahel [scp] | |
Kuidas varem kopeeritud tekste taaskasutada uuesti kopeerimata (ditto) | |
MySQL andmebaasist tõmmisfaili loomine (mysqldump) | |
MySQLis tulemi kuvamine ridade asemel CSV loendina (GROUP_CONCAT) | |
Kuidas PHPs massiivi teisendada sõneks (implode) ja vastupidi (explode). PHP massivist viimase liikme eemaldamine (array_pop) | |
Kuidas PHPga MySQL päringuid luua ja tulemit vormindada HTML-iks | |
Kuidas MySQLis ainult erinevaid kasutatud väärtuseid saada (DISTINCT) |
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
ssh -C [email protected] "mysqldump -u myLiveUser -pMyLivePass myLiveDb --no-tablespaces" | mysql -u myLocalUser -pMyLocalPass myLocalDb | |
# -C use compression |
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
#!/bin/bash | |
# Dumps the database specified in a MONGO_URL variable in the .env file to dump folder in the current directory | |
# Restores collections from dump folder in current directory to a database specified in a MONGO_URL variable in the .env file | |
# Usage: refresh_mongodb.sh [--dump] | |
# | |
# Get connection string from .env | |
export $(cat .env | sed 's/#.*//g' | xargs) | |
echo $MONGO_URL |
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
./wacs --target iissite --siteid 1 --validation selfhosting --installation "iis,script" --script "C:/letsencrypt/Scripts/PSScript.bat" --scriptparameters "C:/letsencrypt/Scripts/ImportSSTP.ps1 {5} 1" | |
Type a message |
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
<Configuration ID="e1eb0c63-77fb-499f-8959-3510f701a383"> | |
<Add OfficeClientEdition="64" Channel="PerpetualVL2019"> | |
<Product ID="Standard2019Volume" PIDKEY="6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK"> | |
<Language ID="et-ee" /> | |
<Language ID="en-us" /> | |
<ExcludeApp ID="Groove" /> | |
<ExcludeApp ID="OneNote" /> | |
<ExcludeApp ID="Publisher" /> | |
</Product> | |
<Product ID="LanguagePack"> |