This file contains hidden or 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
let request = require("request"); | |
var token = "XXXXXXXXXXXXXXX"; | |
request.get({ url : "https://my.sevdesk.de/api/v1/CheckAccountTransaction/?limit=-1", headers : { "Authorization" : token } }, | |
function (error, response, body) { | |
let transactions = JSON.parse(body); | |
for(var transaction of transactions.objects){ | |
if(transaction.checkAccount.id === "157622"){ | |
request.delete({ url : "https://my.sevdesk.de/api/v1/CheckAccountTransaction/"+transaction.id+"/", headers : { "Authorization" : token } }); | |
} |
This file contains hidden or 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
opkg update && opkg install block-mount kmod-fs-ext4 kmod-usb-storage e2fsprogs kmod-usb-ohci kmod-usb-uhci fdisk | |
block detect > /etc/config/fstab; \ | |
sed -i s/option$'\t'enabled$'\t'\'0\'/option$'\t'enabled$'\t'\'1\'/ /etc/config/fstab; \ | |
sed -i s#/mnt/sda1#/overlay# /etc/config/fstab; \ | |
cat /etc/config/fstab; | |
mkdir /tempupgrade | |
mount /dev/sda1 /tempupgrade | |
rm /tempupgrade/etc/.extroot-uuid |
This file contains hidden or 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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: rook-ceph-system | |
--- | |
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: cephclusters.ceph.rook.io | |
spec: |
This file contains hidden or 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
void Main() | |
{ | |
string webhookUrl = "https://discordapp.com/api/webhooks/602563605837250567/XWwqCqUc45sdSd3wfgdfggfjOSJ93fJQ0l-VjawpHh_UbYOzI324234234sShS6Pcx8b"; | |
new DiscordEmbedWebhookRequest() { | |
Embeds = new List<UserQuery.DiscordEmbedWebhookRequest.DiscordEmbed>(){ | |
new UserQuery.DiscordEmbedWebhookRequest.DiscordEmbed(){ | |
Title = "Fancy" | |
} | |
} | |
}.SendSync(webhookUrl); |
This file contains hidden or 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
object NotificationCommand "notify-teams" { | |
import "plugin-notification-command" | |
command = [ PluginDir + "/teams_connector.py" ] | |
arguments += { | |
"--h" = "$hostn$" | |
"--hn" = { | |
description = "Host" | |
value = "$host_name$" | |
} | |
"--ho" = { |
This file contains hidden or 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
su | |
for full in /dev/block/platform/soc/1d84000.ufshc/by-name/*; do | |
name=$(basename $full) | |
echo "Now backing up: $name" | |
dd if=$full of=/sdcard/full/$name | |
done |
OlderNewer