Skip to content

Instantly share code, notes, and snippets.

View cjmaxik's full-sized avatar
🤦‍♂️

CJMAXiK cjmaxik

🤦‍♂️
View GitHub Profile
@cjmaxik
cjmaxik / webhook.md
Last active April 16, 2026 06:36
Proxmox - Discord notification via Webhook

Proxmox - Discord notifications via Webhook

Note

If you have error 400 when sending the notification, that means that your message is too long, since Discord has a character limit of 2000. If you don't care about the logs, remove {{ escape message }} from the description field. Otherwise, seek another way to send notifications (i.e. via Cloudflare worker that truncates the description field).

image
  1. Add Notification Target
  • Endpoint name: Discord
  • Method: POST
@SimplicityGuy
SimplicityGuy / rclone-notify
Last active July 26, 2025 10:08
rclone with discord notifications
#!/bin/bash
if [ -e "rclone.env" ]; then
# NOTE: rclone.env specifies DISCORD_WEBHOOK_URL
# shellcheck source=/dev/null
source rclone.env
fi
rclone_sync() {
src=$1
@tvaliasek
tvaliasek / main.js
Created June 5, 2018 20:09
electron axios stream download with progress
import {ipcMain} from 'electron'
const fs = require('fs')
const axios = require('axios')
/* ... */
ipcMain.on('downloadFile', function (event, data) {
const filePath = data.filePath
const item = data.item