Docs: https://docs.joinmastodon.org/admin/tootctl/
Remove locally cached copies of media attachments from other servers.
Already doing this in crontab.
""" | |
Change the constants below. | |
""" | |
fileName = "INSERT FILENAME" | |
API = "INSERT API-WRITE-KEY" | |
nodeID = 13 | |
urlString = "http://emoncms.org/input/bulk.json?time=%d&apikey=%s&data=[" | |
import pandas as pd |
#include <ESP8266WiFi.h> | |
void setup() { | |
Serial.begin(115200); | |
delay(1000); | |
Serial.printf("\nTry connecting to WiFi with SSID '%s'\n", WiFi.SSID().c_str()); | |
WiFi.mode(WIFI_STA); | |
WiFi.begin(WiFi.SSID().c_str(),WiFi.psk().c_str()); // reading data from EPROM, last saved credentials | |
while (WiFi.status() == WL_DISCONNECTED) { |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE > backup.sql | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | gzip > backup.sql.gz | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | bzip2 > backup.sql.bz2 | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
gunzip < backup.sql.gz | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
bunzip2 < backup.sql.bz2 | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE |
# This script work on any system using systemd as the init process. | |
# It works on Debian/Raspbian Jessie. | |
# If you have Debian/Rapbian Wheezy and want to use this script with systemd | |
# follow the information here : https://wiki.debian.org/systemd | |
# To easily download, install and set at startup: | |
# wget -O /tmp/download https://gist.github.com/Belphemur/3f6d3bf211b0e8a18d93/download && sudo tar -zxf /tmp/download --strip-components 1 -C /etc/systemd/system/ && sudo systemctl --reload-daemon && sudo systemctl enable Node-RED | |
# To consult the log : journalctl -u Node-RED | |
[Unit] |
Docs: https://docs.joinmastodon.org/admin/tootctl/
Remove locally cached copies of media attachments from other servers.
Already doing this in crontab.
On low memory devices like the arduino and esp8266 you do not want strings to be stored in RAM. This occurs by default on these systems. Declare a string const char * xyz = "this is a string"
and it will use up RAM.
The solution on these devices is to allow strings to be stored in read only memory, in Arduino this is the PROGMEM macro. Most of my experience is with the ESP8266 which is a 32bit micros controller. This device stores PROGMEM data in flash. The macro PROGMEM on ESP8266 is simply
#define PROGMEM ICACHE_RODATA_ATTR
const crypto = require('crypto'); | |
var encryptionAlgorithm = "aes-256-ctr"; | |
function decryptCreds(key, cipher) { | |
var flows = cipher["$"]; | |
var initVector = Buffer.from(flows.substring(0, 32),'hex'); | |
flows = flows.substring(32); | |
var decipher = crypto.createDecipheriv(encryptionAlgorithm, key, initVector); | |
var decrypted = decipher.update(flows, 'base64', 'utf8') + decipher.final('utf8'); |
Marlin/Configuration{,_adv}.h
)
nvim -d {Marlin,config/Artillery/Genius}/Configuration.h
, same for Configuration_adv.h
LIN_ADVANCE
instead of S_CURVE_ACCELERATION
(don't work together)TFT-config.ini
)
With the release of Vivaldi 2.2, this page is now obsolete and unmaintained. Widevine is fetched automatically on post install of our official packages. The information below and the script are left for historical reasons but will not be updated.
If you are using something newer than Vivaldi 2.2, you should not be using this script as there is simply no need. Any need you think you have for it would be a bug IMHO and thus should be logged in a bug report. Before you do so however, you should also checkout the Vivaldi help page on Widevine, on Linux
A bunch of people asked how they could use this script with pure Chromium on Ubuntu. The following is a quick guide. Though I still suggest you at least try Vivaldi. Who knows, you might like it. Worried about proprietary componants? Remember that libwidevinecdm.so is a b