Skip to content

Instantly share code, notes, and snippets.

View Brawl345's full-sized avatar

Brawl Brawl345

View GitHub Profile
@Brawl345
Brawl345 / Pacman-Sicherung.sh
Last active November 26, 2021 06:39
Skripte
#!/bin/bash
#
# Dieses Skript sichert die Namen der installierten Pakete (auch die aus dem AUR) in einer Liste, die Pacman.conf und die mirrorlist, damit du
# alle nach einer Neuinstallation einfach wiederherstellen kannst!
#
# Du benötigst:
# Pacman-Paketverwaltung
# libnotify
# tar
# angepasste Variablen für externe Festplatte.
@Brawl345
Brawl345 / addrepo.sh
Last active August 23, 2017 13:18
mountiso
#!/bin/bash
# adds arch repo to pacman.conf
# released under the GPLv3
# root check begin
try_sudo=1
if [[ $1 = --no-sudo ]]
then
try_sudo=0
shift
@Brawl345
Brawl345 / Currencies
Last active July 31, 2016 18:09
Things
SEK Sweden kronor
ATS Austria shilling
AUD Australian dollar
BEF Belgien franc
BRL Brazilien real
CAD Canada dollar
CHF Switzerland francs
CNY China yuan renminbi
CYP Cyprus pound
CZK Czech Republic koruna
{
"Name": "CF-Image-Hosting",
"RequestType": "POST",
"RequestURL": "http://SEITENNAME/upload.php",
"FileFormName": "file[]",
"Arguments": {},
"ResponseType": "Text",
"RegexList": [
"id=\"codedirect\" value=\"(.+)/di/(.+)\" on",
"id=\"deletecode\" value=\"(.+)\" on"
@Brawl345
Brawl345 / migrate.lua
Last active August 25, 2016 00:55
Brawlbot Alternative Plugins
-- Put this in the same folder as the Brawlbot v2 and run it. It will only be a dry run and show everything that'll be migrated.
-- There NEEDN'T be any new data (with a -) in redis! This is IMPORTANT!
-- Run this on your NEW Redis Server that your bot will use obvisouly
local config = require('config')
local redis = (loadfile './otouto/redis.lua')()
-- local redis = (loadfile './miku/redis.lua')() -- Uncomment for Mikubot v2
local dry_run = true -- change to false for the real deal
if dry_run then
@Brawl345
Brawl345 / docs.md
Last active April 28, 2023 23:38
Tagesschau v2 API Dokumentation (inoffiziell)
<targets selectable="true"></targets>
@Brawl345
Brawl345 / .gitignore
Last active January 19, 2019 21:58
Python-Schnipsel
# Byte-compiled / optimized / DLL files / pip
__pycache__/
*.py[cod]
*$py.class
src/
# IDE
.idea/
*.txt
// ==UserScript==
// @name EmuParadise Download Workaround
// @version 1.1.2.1
// @description Replaces the download button link with a working one. Now without jQuery!
// @author Eptun, Brawl
// @match https://www.emuparadise.me/*/*/*
// @downloadURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/emuparadise-download-workaround.user.js
// @updateURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1/raw/emuparadise-download-workaround.user.js
// @supportURL https://gist.github.com/Brawl345/96103746f8ef5cce17b0bc38f3e104f1#comments
// @grant none
@Brawl345
Brawl345 / basic-auth-[[path]].js
Created March 25, 2022 17:11
CloudFlare Workers
// Thanks to https://phiilu.medium.com/password-protect-your-vercel-site-with-cloudflare-workers-a0070357a005
// See: https://brawl.vivaldi.net/?p=208
const CREDENTIALS_REGEXP = /^ *[Bb][Aa][Ss][Ii][Cc] +([\w+./~-]+=*) *$/;
const USER_PASS_REGEXP = /^([^:]*):(.*)$/;
class Credentials {
constructor(name, pass) {
this.name = name;