Super simple helper class to use OpenPGP.js without getting an headache
See https://github.com/openpgpjs/openpgpjs
npm i openpgp
Super simple helper class to use OpenPGP.js without getting an headache
See https://github.com/openpgpjs/openpgpjs
npm i openpgp
#!/bin/bash | |
set -e | |
set -x | |
# Directory to save the JSON files and images | |
mkdir -p coolcats | |
cd coolcats | |
# Loop from 1 to 9999 |
' Save presentation as pptm then create a macro in "View > Macros", run it | |
Sub MkVideo() | |
If ActivePresentation.CreateVideoStatus <> ppMediaTaskStatusInProgress Then | |
ActivePresentation.CreateVideo FileName:=Environ("USERPROFILE") & "\Desktop\video.wmv", _ | |
UseTimingsAndNarrations:=True, _ | |
VertResolution:=1080, _ | |
FramesPerSecond:=60, _ | |
Quality:=100 | |
Else: MsgBox "There is another conversion to video in progress" | |
End If |
The goal of this this tutorial is to fully deploy a VM with multiple apps.
All the apps data will be stored in Docker volumes mounted to the host at /var/www/my-deploys
for easy edit and backup. The benefit of this is you can create a GitHub repository and store all your configuration files in one place.
To deploy the docker-compose.yml
of the apps below into Portainer, go to Stacks
> Add stack
.
#!/bin/bash | |
# Check if script is ran by root user -> exit | |
if [[ $EUID -eq 0 ]]; then echo "This script should not be ran by root!"; exit 1; fi | |
# Stop script on error | |
set -e | |
set -o pipefail | |
sudo apt update |
cd /var/www
git clone git@github.com:dgtlmoon/changedetection.io.git
cd changedetection.io
Edit the configuation
nano docker-compose.yml
{ | |
"singleQuote": true, | |
"semi": false, | |
"trailingComma": "all", | |
"arrowParens": "avoid", | |
"printWidth": 140 | |
} |
Install Prometheus, Prometheus Pushgateway and Grafana. Put them behind NGINX reverse proxy, get a TLS certificate, and run the service on startup with systemd.
Do a replace all of prometheus-pushgateway.example.com and grafana.example.com with your own domains.
chmod u+x ./install_metrics_agents.sh
const fetch = require('node-fetch') | |
{ | |
const apiPrefix = 'https://discord.com/api/v9' | |
var delay = ms => new Promise(res => setTimeout(res, ms)) | |
var qs = obj => | |
Object.entries(obj) | |
.map(([k, v]) => `${k}=${v}`) | |
.join('&') |
% Code support | |
\usepackage{listings} | |
\usepackage{textcomp} | |
% | |
% ECMAScript 2015 (ES6) definition by Gary Hammock | |
% | |
\lstdefinelanguage[ECMAScript2015]{JavaScript}[]{JavaScript}{ | |
morekeywords=[1]{await, async, case, catch, class, const, default, do, |