Skip to content

Instantly share code, notes, and snippets.

View DerEnderKeks's full-sized avatar

DerEnderKeks DerEnderKeks

View GitHub Profile

Keybase proof

I hereby claim:

  • I am DerEnderKeks on github.
  • I am derenderkeks (https://keybase.io/derenderkeks) on keybase.
  • I have a public key whose fingerprint is F90B B31F 042C EC81 480C 2A38 059C 8498 1DEE BA18

To claim this, I am signing this object:

@DerEnderKeks
DerEnderKeks / upload.sh
Last active October 20, 2018 17:39
Linux file upload script for Yanius (https://github.com/DerEnderKeks/Yanius)
#!/bin/bash
# LICENSE
# The MIT License (MIT)
# Copyright (c) 2017 DerEnderKeks
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
{
"Name": "Yanius",
"RequestType": "POST",
"RequestURL": "http(s)://your.domain/api/upload",
"FileFormName": "file",
"Arguments": {
"apikey": "<your api key>"
},
"ResponseType": "Text",
"URL": "$json:url$"
@DerEnderKeks
DerEnderKeks / docker-compose.yml
Created April 5, 2017 15:42
Yanius 2.x docker-compose.yml
version: '3'
services:
web:
build: .
ports:
- "56792:56792"
volumes:
- ./upload:/usr/src/app/upload
- ./config:/usr/src/app/config
db:
@DerEnderKeks
DerEnderKeks / Dockerfile
Created April 5, 2017 15:43
Yanius 2.x Dockerfile
FROM node:6.7
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
@DerEnderKeks
DerEnderKeks / yanius.service
Created April 5, 2017 15:44
Yanius 2.x Systemd unit file
[Unit]
Description=Yanius
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/local/bin/docker-compose -f /opt/Yanius/docker-compose.yml up
ExecStop=/usr/local/bin/docker-compose -f /opt/Yanius/docker-compose.yml stop
@DerEnderKeks
DerEnderKeks / WebhookTutorial.md
Last active December 4, 2023 20:28
Simple Webhook Tutorial (Twitter -> Discord using IFTTT)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel.

Step 1 - Register on IFTTT

  1. Go to https://ifttt.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets.

  2. In the settings for that channel, find the Webhooks option and create a new webhook.

#!/bin/bash
##
# File:
# nginx-modsite
# Description:
# Provides a basic script to automate enabling and disabling websites found
# in the default configuration directories:
# /etc/nginx/sites-available and /etc/nginx/sites-enabled
# For easy access to this script, copy it into the directory:
@DerEnderKeks
DerEnderKeks / fcbackup.py
Last active July 9, 2018 15:35
Script to backup the configuration of betaflight/INAV flight controllers
#!/usr/bin/env python3
import io
import time
from time import gmtime, strftime
import serial
import serial.tools.list_ports
if __name__ == '__main__':
@DerEnderKeks
DerEnderKeks / LOL.ahk
Created July 10, 2018 13:47
Automatically login to League of Leagends
; This AutoHotkey script automatically enters your League of Leagends password as soon as you press <CTRL>+<y> in the LOL client.
; You probably have to change the position for the mouse click if your LOL windows isn't set to 1920x1080.
#NoTrayIcon
#SingleInstance, force
#UseHook
#IfWinActive, ahk_class RCLIENT
^y::
SendMode Event
CoordMode, Mouse, Window
MouseClick, left, 1650, 375