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
| require ["date", "fileinto", "variables"]; | |
| if date :matches "date" "year" "*" { | |
| set "year" "${1}"; | |
| } | |
| if date :matches "date" "month" "*" { | |
| if string :matches "${1}" "?" { | |
| set "month" "0${1}"; | |
| } else { |
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
| /** | |
| * Handle redirects with cloudflare worker to avoid duplication | |
| * https://forum.sympl.io/t/configure-auto-discover-for-mail-setup/94/6 | |
| */ | |
| export default { | |
| async fetch(request) { | |
| const url = new URL(request.url); | |
| if (url.pathname === "/.well-known/autoconfig/mail/config-v1.1.xml") { | |
| const targetUrl = `https://autoconfig.${url.hostname}/mail/config-v1.1.xml`; | |
| return fetch(targetUrl, request); |
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
| // ==UserScript== | |
| // @name fix-paimon-moe | |
| // @namespace https://jogerj.com | |
| // @version 0.2.1 | |
| // @description Fixes for paimon.moe! | |
| // @author JogerJ | |
| // @match https://paimon.moe/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=paimon.moe | |
| // @downloadUrl https://gist.github.com/jogerj/985b6d3112f96027eee599f91f87a211/raw/fix-paimon-moe.user.js | |
| // @run-at document-start |
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
| // ==UserScript== | |
| // @name Paimon.moe Wish Import fix | |
| // @namespace https://jogerj.com | |
| // @version 0.3.0 | |
| // @description (DEPRECATED) Modify request body to api.paimon.moe/corsproxy on paimon.moe | |
| // @author JogerJ | |
| // @match https://paimon.moe/wish/import* | |
| // @downloadUrl https://gist.github.com/jogerj/5ab40acfb77e0fd3c89de7c798a3b4b8/raw/paimon-moe-fix-wish-import.user.js | |
| // @grant none | |
| // @license MIT |
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 | |
| # add-illegal-windows-filename-check-pre-commit.sh: Sets up a pre-commit hook to check for illegal Windows filename characters | |
| # Author: Jonathan Joewono (jogerj) | |
| # Date: 12 Feb 2024 | |
| # Version: 0.1.0 | |
| # DESCRIPTION: | |
| # This script adds a pre-commit hook to your Git repository that checks for any filenames that contain | |
| # characters illegal in Windows. Whenever you attempt to commit changes, this hook will run and prevent |
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 | |
| source /root/telegram.sh | |
| fixes_dir="/root" | |
| check_website="nextcloud.acme.com" | |
| ip_address="$(dig +short @1.1.1.1 $check_website)" | |
| if [ "x$ip_address" == "x" ]; then |
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
| javascript:(function()%7Bwindow.location.href %3D 'https%3A%2F%2Ftxtify.it%2F' %2B window.location.href%7D)() |
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
| Add-Type -AssemblyName System.Web | |
| Write-Host "Paimon.moe Wish Importer" -ForegroundColor Cyan | |
| Write-Host "1. Open Genshin Impact in this PC" | |
| Write-Host "2. Then open the wish history and wait it to load" | |
| Write-Host "3. When you are ready press [ENTER] to continue! (or any key to cancel)" | |
| Write-Host "Waiting..." | |
| $keyInput = [Console]::ReadKey($true).Key | |
| if ($keyInput -ne "13") { |
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 | |
| TELEGRAM_BOT_TOKEN="botid:token" | |
| CHAT_ID="1234567890" | |
| send_telegram () { | |
| title="$1" | |
| timestamp="$(date -R)" | |
| msg="$title\n$timestamp\n\n$(echo "$2" | sed -z -e 's|\\|\\\\|g' -e 's|\n|\\n|g' -e 's|\t|\\t|g' -e 's|\"|\\"|g')" | |
| entities="[{\"offset\":0,\"length\":${#title},\"type\":\"bold\"},{\"offset\":$((${#title}+1)),\"length\":${#timestamp},\"type\":\"italic\"}]" |
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
| #!/usr/bin/env bash | |
| OS="$(cat /etc/os-release)" | |
| if [[ $(echo -e $OS | grep "Ubuntu 18") ]]; then | |
| wget -N download.zextras.com/zcs-9.0.0_OSE_UBUNTU18_latest-zextras.tgz; | |
| elif [[ $(echo -e $OS | grep "Ubuntu 20") ]]; then | |
| wget -N download.zextras.com/zcs-9.0.0_OSE_UBUNTU20_latest-zextras.tgz; | |
| elif [[ $(echo -e $OS | grep -e "Red Hat Enterprise Linux" -e "CentOS") ]]; then | |
| if [[ $(cat /etc/redhat-release | grep "release 7") ]]; then |
NewerOlder