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
// Get all results | |
const imageResults = document.querySelectorAll('[jsname="N9Xkfe"]'); | |
console.log('Number of image results:', imageResults.length); | |
// This array will be filled with image urls later | |
const imageSourceUrls = []; | |
// Iterate through results and subscribe to attribute change events | |
imageResults.forEach(imageResult => { | |
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
#include <ESP8266WiFi.h> | |
#include <DNSServer.h> | |
#include <ESP8266WebServer.h> | |
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager | |
#include <ESP8266HTTPClient.h> | |
#include <ESP8266httpUpdate.h> | |
const int FW_VERSION = 1; | |
const char* FW_VERSION_URL = "http://<domain>/<project>/version"; | |
const char* FW_IMAGE_URL = "http://<domain>/<project>/img.bin"; |
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
#!/usr/bin/env bash | |
#Settings: | |
REPODIR="/home/websites/Plauder" | |
BRANCH="develop" | |
echo "Starting Plauder update" | |
cd $REPODIR | |
git checkout $BRANCH | |
git reset --hard HEAD |
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
# First add a nodejs system user | |
# useradd -M -s nodejs | |
# Github Repo: https://github.com/Waterfront97/WebCheck | |
[Unit] | |
Description=Controls WebChecker | |
After=network.target apache2.service | |
[Service] | |
User=nodejs |
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
[Unit] | |
Description=Controls Gamerino Channelwatcher REST API | |
After=network.target mysql.service | |
[Service] | |
User=nodejs | |
ExecStart=/usr/bin/node /home/websites/TSChannelWatcher/api/index.js | |
Restart=always | |
[Install] |
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
[Unit] | |
Description=Control Gitea Sourcecontrol | |
Requires=network.target mysql.service | |
[Service] | |
User=gitea | |
ExecStart=/home/websites/gitea/gitea | |
Restart=on-failure | |
[Install] |