[Unit]
Description=FRP Server Daemon
[Service]
Type=simple
ExecStartPre=-/usr/sbin/setcap cap_net_bind_service=+ep /opt/bin/frps
ExecStart=/opt/bin/frps -c /opt/etc/frps.ini
Restart=always
This file contains 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
# | |
# Original idea: | |
# https://discourse.haproxy.org/t/haproxy-unable-to-redirect-to-https-when-terminating/2158 | |
# | |
# Stats: | |
# https://blog.sleeplessbeastie.eu/2020/01/29/how-to-use-haproxy-stats-socket | |
# | |
# Global | |
global |
This file contains 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
! Title: Personal_filter by machsix | |
! Expires: 4 days | |
! Download link: https://gist.githubusercontent.com/machsix/bc579deb5b8138a0a1ce8b36b152a30c/raw/ | |
anime1.me##script:inject(abort-on-property-read.js, eSX9S3upNm) | |
||xr0*.cc^$script | |
||xr0*.xyz^$script | |
||worldcup1.com/imgs/*.gif$image |
This file contains 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
<table style="max-width:1300px;"> | |
<thead> | |
<tr> | |
<th><i class="fa fa-qrcode" aria-hidden="true"></i></th> | |
<th align="center">Address</th> | |
<th align="right">Port</th> | |
<th align="center">UID</th> | |
<th align="center">Network</th> | |
<th align="center">Path</th> | |
<th align="center">TLS</th> |
This file contains 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 | |
# CHANGE THESE | |
API=1aeb5xxxxxxxxxx9dd194c56d07caf311 | |
EMAIL="example@gmail.com" | |
DOMAIN="example.net" | |
LOG_DEV="/var/log/ddns.json" | |
get_zone_id () { | |
local zone_id=`curl -fs -X GET "https://api.cloudflare.com/client/v4/zones" \ |
This file contains 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
// https://stackoverflow.com/questions/48014050/wait-promise-inside-for-loop | |
// let each promise in for to finish | |
function test(n) { | |
let promiseChain = Promise.resolve(); | |
for (let i = 0; i < n; i++) { | |
const makePromise = (j) => () => new Promise((resolve,reject)=> { | |
setTimeout(resolve, j*1000); | |
}).then(()=>{ | |
console.log(j); | |
if (j < 5 ) { |
This file contains 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 | |
BITLOCKER_PARTITION="${1}" | |
BITLOCKER_PASSWORD="${2}" | |
function usage() { | |
echo "$(basename ${0}) <partition> <password>" | |
echo "Unlocks and mounts a bitlocker partition as read-only" | |
echo "Get by lsblk -f" | |
} |
This file contains 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 OwO, whats this :D | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author Christopher König | |
// @include * | |
// @connect api.awau.moe | |
// @grant GM_registerMenuCommand | |
// @grant GM_setValue |
This file contains 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
const {spawnSync} = require("child_process"); | |
const path = require("path"); | |
const gitLog = function(cwd, obj, magicKey) { | |
magicKey = "^^" || magicKey; | |
cwd = cwd || "."; | |
const args = ["log"]; | |
let logFormat = { | |
commit: "%H", |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
NewerOlder