Skip to content

Instantly share code, notes, and snippets.

View mellowagain's full-sized avatar

Mari mellowagain

View GitHub Profile
@mellowagain
mellowagain / screenshot.sh
Created April 28, 2018 22:17
Automatic uploading of screenshots to your SFTP server. Requires maim and a server that serves the uploaded file like nginx.
#!/bin/sh
filename=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
maim -s /tmp/$filename.png
sftp -v -oIdentityFile=path marc@wontfix.club << EOF
put /tmp/$filename.png /var/www/wontfix.club/html/i/
EOF
echo -n "https://wontfix.club/i/$filename.png" | xclip -sel clip
rm -rf /tmp/$filename.png
@mellowagain
mellowagain / twilightdrop.py
Created February 24, 2018 20:53
Automatically takes dropped money by the Twilight Sparkle Bot. Use as COG for Discord-Selfbot.
import discord
# Automatically takes drop events from Twilight Sparkle bot
class TwilightDrop:
def __init__(self, bot):
self.bot = bot
async def on_message(self, message):
@mellowagain
mellowagain / nekobot.py
Created February 23, 2018 22:57
Automatically catches Nekos sent by the Neko Bot. Use as COG for Discord-Selfbot.
import discord
# Catches Nekos from Nekobot automatically
class NekoCatch:
def __init__(self, bot):
self.bot = bot
async def on_message(self, message):
@mellowagain
mellowagain / mentionbomb.py
Last active February 9, 2021 05:49
COG for mentioning everyone without using @everyone. Use as COG for Discord-Selfbot. Inspired by Rud.
import discord
from discord.ext import commands
# Mentions everyone without using everyone. Made by Marc3842h. Inspired by Rud.
class MentionBomb:
def __init__(self, bot):
self.bot = bot
@mellowagain
mellowagain / PKGBUILD
Last active July 5, 2017 12:40
rider-eap fixed PKGBUILD with Rider early access build 24
# Maintainer: wenLiangcan <boxeed at gmail dot com>
# Contributor: Dustin Falgout <dustin@falgout.us>
# Contributor: Gifts <gifts.antichat@gmail.com>
# Contributor: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
pkgname=rider-eap
_buildver=171.4456.902
_pkgver=1.0
_eap="True"
pkgver="${_pkgver}.${_buildver}"
@mellowagain
mellowagain / install.md
Last active November 4, 2019 18:17
How to install Arch Linux on UEFI systems. It is recommended to follow the Arch Wiki Installation guide, but if you're retarded like me, this will help you.
# Before typing any commands, we should set the keyboard layout for your keyboard.
# Replace de_CH-latin1 with your keyboard layout.
# If you have the US keyboard layout, skip this step.
loadkeys de_CH-latin1

# Before installing Arch, be sure that your computer is connected to the internet.
dhcpcd
ping -c 3 archlinux.org