Skip to content

Instantly share code, notes, and snippets.

View zekroTJA's full-sized avatar
🚀
Fuck it, ship it!

Ringo Hoffmann zekroTJA

🚀
Fuck it, ship it!
View GitHub Profile
@zekroTJA
zekroTJA / getHaste.java
Last active June 16, 2017 12:22
Hastebin upload snippet
/**
* Method by StupPlayer (https://github.com/StupPlayer)
* @param data input as string
* @return hastebin paste URL / error message
*/
public static String hastePost(String data) {
CloseableHttpClient client = HttpClientBuilder.create().build();
HttpPost post = new HttpPost("https://hastebin.com/documents");
try {
@zekroTJA
zekroTJA / pibackup.md
Created August 3, 2017 10:45
A little CMDer script to backup your Raspberry Pi

This script requires the program CMDer. Then go to your CMDer installation path (where the CMDer.exe is located) and create there the batch script:

backup.bat

REM Enter here the local path where the script should copy the backup to
SET backuplocation = "E:\Dateien\Raspberry Pi Backup"

SET current=%cd%
SET folder=%time:~0,2%-%time:~3,2%-%time:~6,2%_%date%
@zekroTJA
zekroTJA / classSerializer.java
Created August 4, 2017 08:34
Little snippet to save and read java initialized classes directly into a file
import java.io*;
/**
* Created by zekro on 24.05.2017 / 09:46
* DiscordBot/commands.chat
* © zekro 2017
*/
public class Serializer implements Serializable {
@zekroTJA
zekroTJA / atom-config.md
Created August 29, 2017 18:53
This is a document how I've configured and extended my Atom Editor.

This is a document how I've configured and extended my Atom Editor.
Last updated: 08/29/2017


Theme:

UI Theme:     Atom Material
Syntax Theme:     One Dark

@zekroTJA
zekroTJA / FAQ.md
Last active September 8, 2017 15:13
zekro FAQ

zekro FAQ

v.1.0   -   Last edited: 08.09.2017


Wie kann ich dich kontaktieren?

Am besten erreichbar bin ich auf meinem Discord Development Server. Da kannst du mich gern via PN benachichtigen oder, wenn ich mal gerade nicht online bin, meine Supporter oder die anderen User auf meinem Discord um Hilfe für dein Problem befragen. Ansonsten bin ich natürlich auch erreichbar über Twitter und über E-Mail.

@zekroTJA
zekroTJA / minecraftServerManager.py
Last active October 18, 2017 13:10
Python script for managing multiple minecraft servers on an VPS
# # # # # # # # # # # # # # # # # # # # # # # # #
# #
# © 2017 Ringo Hoffmann (zekro Development) #
# #
# If you want to use this code, please read #
# this first: http://s.zekro.de/codepolicy #
# #
# With usage of this code or parts of it in #
# any way, you agree to the terms above. #
# #
@zekroTJA
zekroTJA / CommandParser.js
Created December 1, 2017 10:36
discord.js - Command Parser Class
const Discord = require('discord.js')
/**
* Create instance of command parser
* @param {*string} prefix Command Prefix
* @param {*discord.Client} bot Bot Instance
*/
class CmdParser {
constructor(prefix, bot) {
@zekroTJA
zekroTJA / config.json
Created December 4, 2017 13:41
discord.js Tutorial - Part 1
{
"token": "YOUR TOKEN HERE",
"owner": "YOUR DISCORD ID HERE",
"prefix": "::"
}
@zekroTJA
zekroTJA / DiscordBotManager.py
Created October 5, 2017 08:15
A little script for managing multiple discord bots on an linux server
# DISCORD BOT MANAGER - © 2017 Ringo Hoffmann (zekro Development)
# READ BEFORE USAGE: http://s.zekro.de/codepolicy
# To use this tool, you need to create a path structure like following:
# ..
# ├── bot1
# │ ├── ...bot stuff...
# │ └── run.sh
# │
@zekroTJA
zekroTJA / zekro-code-policy-eng.md
Last active January 16, 2018 10:03
zekro Devevopment Code Policy

RELOCATED AND OUTDATED


zekro Development Code Policy (English)

Policy v.1.2.2   -   Last edited: 31.12.2017