Skip to content

Instantly share code, notes, and snippets.

🤔
🤔

zekro zekroTJA

🤔
🤔
Block or report user

Report or block zekroTJA

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zekroTJA
zekroTJA / getHaste.java
Last active Jun 16, 2017
Hastebin upload snippet
View getHaste.java
/**
* 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 Aug 3, 2017
A little CMDer script to backup your Raspberry Pi
View pibackup.md

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 Aug 4, 2017
Little snippet to save and read java initialized classes directly into a file
View classSerializer.java
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 Aug 29, 2017
This is a document how I've configured and extended my Atom Editor.
View atom-config.md

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 Sep 8, 2017
zekro FAQ
View FAQ.md

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 Oct 18, 2017
Python script for managing multiple minecraft servers on an VPS
View minecraftServerManager.py
# # # # # # # # # # # # # # # # # # # # # # # # #
# #
# © 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 Dec 1, 2017
discord.js - Command Parser Class
View CommandParser.js
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 Dec 4, 2017
discord.js Tutorial - Part 1
View config.json
{
"token": "YOUR TOKEN HERE",
"owner": "YOUR DISCORD ID HERE",
"prefix": "::"
}
@zekroTJA
zekroTJA / youtube-subgoal-bot.js
Created Dec 7, 2017
Little discord.js bot snipped for youtube subscriber goal message
View youtube-subgoal-bot.js
const { Client, RichEmbed } = require('discord.js')
var afterLoad = require('after-load');
// <---[ SETTINGS ]--->
const token = ''
const channelid = 'zekrommaster110'
const goal = 1000
const end = '31.12.2017'
@zekroTJA
zekroTJA / DiscordBotManager.py
Created Oct 5, 2017
A little script for managing multiple discord bots on an linux server
View DiscordBotManager.py
# 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
# │
You can’t perform that action at this time.