This list is useful to be used in combination with the command synopkg
, the commands that require the ID of the packages are:
start
stop
restart
pause
install_from_server
// ==UserScript== | |
// @name TinyMCE Shortcuts | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Add custom shortcuts for TinyMCE editor. | |
// @author https://github.com/joeperpetua | |
// @match <URL> | |
// @grant none | |
// ==/UserScript== |
const sleep = async (time, unit) => { | |
switch(unit){ | |
case 'ms': | |
return new Promise(resolve => setTimeout(resolve, time)); | |
break; | |
case 's': | |
return new Promise(resolve => setTimeout(resolve, time*1000)); | |
break; |
// ==UserScript== | |
// @name Busuu Power Tools | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Add useful functionalities to Busuu website. | |
// @author http://github.com/joeperpetua | |
// @match https://www.busuu.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=busuu.com | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name MyFitnessPal - Graph Average values | |
// @version 0.1 | |
// @description Add button to calculate AVG values for MFP reports for Calories, Net Calories, Protein, Carbs and Fat. | |
// @author https://github.com/joeperpetua | |
// @match https://www.myfitnesspal.com/reports | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=myfitnesspal.com | |
// @grant none | |
// ==/UserScript== |
#!/usr/bin/sh | |
HELP='false' | |
while getopts ":hm:s:" flag | |
do | |
case "${flag}" in | |
h) HELP='true';; | |
m) METHOD=${OPTARG};; | |
s) SHARED_FOLDER=${OPTARG};; | |
\?) echo "Invalid option: -$OPTARG" >&2; exit 1;; |
#!/bin/sh | |
TASK_ID=3; | |
TASK_STATUS=$(synowebapi --exec api=SYNO.Backup.Task method=status version=1 task_id="$TASK_ID" additional='["last_bkp_result"]' | jq .data.last_bkp_result); | |
if [[ "$TASK_STATUS" == \"suspend\" ]]; then | |
echo "[$(date)] Backup is suspended" >> /volume1/hb_auto_resume.log; | |
echo "[$(date)] Resuming backup..." >> /volume1/hb_auto_resume.log; | |
synowebapi --exec api=SYNO.Backup.Task method=resume task_id="$TASK_ID" version=1 >> /volume1/hb_auto_resume.log; | |
else | |
echo "[$(date)] Backup is not suspended." >> /volume1/hb_auto_resume.log; |
#!/bin/sh | |
HELP='false'; | |
DSM_MAJOR=0; | |
DSM_MINOR=0; | |
CONF_PATH=''; | |
while getopts ":ho:n:" flag | |
do | |
case "${flag}" in | |
h) HELP='true';; |
#!/bin/sh | |
TASK_ID=11; | |
REQ_VERSIONS=10; | |
SUCC_VERSIONS=0; | |
# Use a temporary file to store the JSON output | |
tmpfile=$(mktemp) | |
synowebapi --exec api=SYNO.ActiveBackup.Task method=list load_verify_status=true load_versions=true filter='{"task_id": '$TASK_ID', "data_formats": [1,4]}' version=1 | jq .data.tasks[0].versions > "$tmpfile" |
const sleep = async (time) => { | |
return new Promise(resolve => setTimeout(resolve, time)); | |
} | |
(async () => { | |
let counter = 1; | |
while (true) { | |
console.log(`==== Exporting page ${counter} ====`); | |
await sleep(1000); | |
console.log(' Getting check...'); |