openpgp4fpr:EAB0A643ABD82124552040FE39F3751CDD35BB5F
View no_mentions.patch
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
diff --git a/src/bot.js b/src/bot.js | |
index ce523a4..716f3da 100644 | |
--- a/src/bot.js | |
+++ b/src/bot.js | |
@@ -171,7 +171,7 @@ async function handleMessage(message) { | |
if (reply.author.id != client.user.id) return; | |
if (messages[channelID] == null) return; | |
if ((context = messages[channelID][reply.id]) == null) return; | |
- } else if (message.type != MessageType.Default || (message.guild && !message.content.match(myMention))) { | |
+ } else if (message.type != MessageType.Default) { |
View swapfile
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
#!/usr/bin/bash | |
if [[ "$#" != "2" ]]; then echo "Usage: swapfile <file1> <file2>"; exit 1; fi | |
f1="$1" | |
f2="$2" | |
if [[ ! -e "$f1" ]]; then echo "File not found: $f1"; exit 1; fi | |
if [[ ! -e "$f2" ]]; then echo "File not found: $f2"; exit 1; fi | |
while [[ "$f1" == */ ]]; do f1="${f1%\/}"; done | |
while [[ "$f2" == */ ]]; do f2="${f2%\/}"; done | |
echo "Swapping $f1 and $f2" | |
IDTEMP="$(uuidgen|tr -d '-')" |
View minecraftcolors.sh
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
#!/usr/bin/bash | |
echo -e ' \x1b[48;5;15;38;2;0;0;0mblack\x1b[0m - &0 - §0 - \\u00a70 ' | |
echo -e ' \x1b[48;5;15;38;2;0;0;170mdark_blue\x1b[0m - &1 - §1 - \\u00a71 ' | |
echo -e ' \x1b[48;5;15;38;2;0;170;0mdark_green\x1b[0m - &2 - §2 - \\u00a72 ' | |
echo -e ' \x1b[48;5;15;38;2;0;170;170mdark_aqua\x1b[0m - &3 - §3 - \\u00a73 ' | |
echo -e ' \x1b[48;5;15;38;2;170;0;0mdark_red\x1b[0m - &4 - §4 - \\u00a74 ' | |
echo -e ' \x1b[48;5;15;38;2;170;0;170mdark_purple\x1b[0m - &5 - §5 - \\u00a75 ' | |
echo -e ' \x1b[48;5;15;38;2;255;170;0mgold\x1b[0m - &6 - §6 - \\u00a76 ' | |
echo -e ' \x1b[38;2;170;170;170mgray\x1b[0m - &7 - §7 - \\u00a77 ' | |
echo -e ' \x1b[48;5;15;38;2;85;85;85mdark_gray\x1b[0m - &8 - §8 - \\u00a78 ' |
View screenshot.sh
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
#!/usr/bin/bash | |
SCREENSHOTS_DIR="$HOME/screenshots" | |
SCREENSHOT_NAME_FORMAT="screenshot-%Y.%m.%d.%H.%M.%S" | |
if [[ "$1" == "area" ]] || [[ "$1" == "active" ]] || [[ "$1" == "monitor" ]] || [[ "$1" == "desktop" ]]; then | |
if ! pidof -s slurp; then | |
unset GEOM GEOM_POS GEOM_SIZE GEOM_WIN GEOM_WIN_EXTRA | |
unset PICKER_PROC | |
# some of this code comes from https://github.com/hyprwm/contrib/blob/main/grimblast/grimblast | |
case "$1" in | |
area) |
View config
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
font=Ubuntu | |
font-size=12 | |
color=1e1e2eff | |
inside-color=00000000 | |
inside-clear-color=00000000 | |
inside-caps-lock-color=00000000 | |
inside-ver-color=00000000 | |
inside-wrong-color=00000000 |
View power
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 | |
RES="$(rofi -dmenu -p "Power" <<< $'Shutdown\nRestart\nLog Out\nLock')" | |
if [[ "$RES" == "Shutdown" ]]; then /usr/local/sbin/do shutdown & disown; fi | |
if [[ "$RES" == "Restart" ]]; then /usr/local/sbin/do restart & disown; fi | |
if [[ "$RES" == "Log Out" ]]; then hyprctl dispatch exit; fi | |
if [[ "$RES" == "Lock" ]]; then swaylock; fi | |
#if [[ "$RES" == "Suspend" ]]; then swaylock & /usr/local/sbin/do suspend1 & disown; fi |
View openrgb
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
type = process | |
command = /usr/bin/openrgb --server --server-port 6742 -p default_noram --config /home/mekb/.config/OpenRGB/ | |
smooth-recovery = true | |
logfile = /var/log/dinit/openrgb.log | |
waits-for = udev-settle | |
View pacman-apt
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
#!/usr/bin/bash | |
ROOT_PROGRAM=(sudo) | |
APT=(apt) | |
function pacman-run-apt(){ | |
"${APT[@]}" "$@" | |
} | |
function pacman-run-apt-with-root(){ | |
IFS= | |
if [[ "$(id -u)" == "0" ]]; then | |
"${APT[@]}" "$@" |
View proxy.js
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
#!/usr/bin/env node | |
const net = require("net"); | |
const serverClientHost = "192.168.88.79"; // P->S | |
const serverClientPort = 22; | |
const proxyServerPort = 1337; // C->S | |
const proxyServer = new net.Server(); | |
proxyServer.on("connection", (socket) => { | |
console.log("[C-P] new connection"); | |
console.log(socket.address()); | |
let serverClient = new net.Socket(); |
NewerOlder