Skip to content

Instantly share code, notes, and snippets.

Avatar

DerEnderKeks DerEnderKeks

View GitHub Profile
@DerEnderKeks
DerEnderKeks / mfcuk_r65.md
Created Mar 11, 2019 — forked from ceres-c/mfcuk_r65.md
Using mfcuk r65 with libnfc 1.5.1 in 2018
View mfcuk_r65.md

You first need to download both libnfc 1.5.1 and mfcuk r65. The former is available among github releases wile the latter can be obtained via git rebase.

If you're on Arch you'll need pcsclite, if on Debian derivates libpcsclite-dev

Let's compile libnfc (<user> is your username)

mkdir -p ~/builds/nfc
cd ~/builds/nfc
wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.5.1/libnfc-1.5.1.tar.gz
tar zxf libnfc-1.5.1.tar.gz
@DerEnderKeks
DerEnderKeks / clearDownloads.sh
Created Jan 20, 2019
Delete old files from the Downloads folder
View clearDownloads.sh
#!/usr/bin/env bash
# Works with Git-Bash
echo "Deleting files..."
find "$HOME/Downloads/" -type f -mtime +3 -exec rm -f {} \;
echo "Deleting empty directories..."
find "$HOME/Downloads/" -type d -empty -delete
echo "Done."
@DerEnderKeks
DerEnderKeks / ^^.ahk
Created Aug 3, 2018
Replace ^^,`` and `` with a single one of them
View ^^.ahk
#NoEnv
#SingleInstance, force
SendMode Input
SetWorkingDir %A_ScriptDir%
:*B0:^^::
SendInput, {bs}
return
:*B0:``::
@DerEnderKeks
DerEnderKeks / LOL.ahk
Created Jul 10, 2018
Automatically login to League of Leagends
View LOL.ahk
; 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
@DerEnderKeks
DerEnderKeks / fcbackup.py
Last active Jul 9, 2018
Script to backup the configuration of betaflight/INAV flight controllers
View fcbackup.py
#!/usr/bin/env python3
import io
import time
from time import gmtime, strftime
import serial
import serial.tools.list_ports
if __name__ == '__main__':
View nginx-modsite.sh
#!/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 / WebhookTutorial.md
Last active Oct 12, 2020
Simple Webhook Tutorial (Twitter -> Discord using IFTTT)
View WebhookTutorial.md

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.

@DerEnderKeks
DerEnderKeks / yanius.service
Created Apr 5, 2017
Yanius 2.x Systemd unit file
View yanius.service
[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 / Dockerfile
Created Apr 5, 2017
Yanius 2.x Dockerfile
View 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 / docker-compose.yml
Created Apr 5, 2017
Yanius 2.x docker-compose.yml
View docker-compose.yml
version: '3'
services:
web:
build: .
ports:
- "56792:56792"
volumes:
- ./upload:/usr/src/app/upload
- ./config:/usr/src/app/config
db:
You can’t perform that action at this time.