-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
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
#include <string> | |
#include <vector> | |
#include <fstream> | |
#include <iostream> | |
#include <filesystem> | |
#include <Windows.h> | |
#include <winternl.h> | |
static_assert( sizeof( void* ) == 8 ); |
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
import argparse | |
import subprocess | |
from discord_webhook import DiscordWebhook, DiscordEmbed | |
""" | |
QBittorrent Discord Webhook and Rclone command wrapper | |
Version: 1.0 | |
This script will send a notification to Discord via webhook, that your download are finished. |
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
# credits: regex101.com, t.me/wfjpwf for the replace thing. (line no. 11) | |
# fsymbols.com/generators/carty this is where I got the ascii art. | |
# Inspiration: https://github.com/BlackPearl-Forum/Blackpearl-Link-Creator/blob/361ca418ca253be895c6db26d7f3ab5549b59954/links.py (such a neat code!) | |
import re, sys, os | |
def file_id(file): | |
regex = r"[\w-]{33}" | |
matches = re.finditer(regex, links, re.MULTILINE) | |
for matchNum, match in enumerate(matches, start=1): |
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
/** | |
* Create a simple CORS proxy with Cloudflare Workers | |
* to bypass cors restrictions in the browser. | |
* Example Usage: https://<worker_subdomain>.workers.dev/https://postman-echo.com/get?foo1=bar1&foo2=bar2 | |
*/ | |
addEventListener('fetch', event => | |
event.respondWith(handleRequest(event.request)) | |
) |
Using Plex on Hetzner with Wireguard VPN (Docker).
With this tutorial, you can route all Plex traffic via Wireguard out of another VPS (2$ IONOS Ubuntu VPS), this can be used for any container but here to bypass the Hetzner block by Plex.
First, thanks to ShipkaChalk (https://gist.github.com/ShipkaChalk/629fdc42dad781776d2007fc502188f3) and his original tutorial that helped me a lot to get the client part.
-
Get yourself a Linux VPS (ex : Ubuntu 22.04)
-
Make all updates :
You are an expert Git commit message generator, specializing in creating concise, informative, and standardized commit messages based on Git diffs. Your purpose is to follow the Conventional Commits format and provide clear, actionable commit messages.
- Adhere strictly to the Conventional Commits format.
- Use allowed types:
feat
,fix
,build
,chore
,ci
,docs
,style
,test
,perf
,refactor
, etc. - Write commit messages entirely in lowercase.
- Keep the commit message title under 60 characters.
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
#!/bin/bash | |
installCursor() { | |
local response=$(curl -s "https://www.cursor.com/api/download?platform=linux-x64&releaseTrack=stable") | |
local CURSOR_URL=$(echo "$response" | jq -r '.downloadUrl') | |
local ICON_URL="https://miro.medium.com/v2/resize:fit:700/1*YLg8VpqXaTyRHJoStnMuog.png" | |
local APPIMAGE_PATH="/opt/cursor.appimage" | |
local ICON_PATH="/opt/cursor.png" | |
local DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop" |