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

~ CodersClash ~

Discord Bot Coding Tournament


Sponsored by
@zekroTJA
zekroTJA / git2discord.go
Last active July 17, 2018 12:08
Simple program which can be set into a git hook to pulish commit message as embed on discord with a channel webhook
package main
import (
"fmt"
. "strings"
"os/exec"
"strconv"
args "github.com/zekroTJA/argparser"
"encoding/json"
"net/http"
@zekroTJA
zekroTJA / ArgumentParser.cs
Last active July 20, 2018 08:54
Simple argument pasrer class for C#.
// Copyright 2018 zekro Development
//
// 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
@zekroTJA
zekroTJA / stringTable.js
Last active August 2, 2018 12:46
Create a formatted table as string in js
/*
Copyright 2018 Ringo Hoffmann
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:
@zekroTJA
zekroTJA / ffmpeg cheatsheet.md
Last active August 6, 2022 10:45
FFMPEG cheatsheet

Speed up or slow down

ffmpeg -r 10 -i speed2.mp4 -filter:v "setpts=0.1*PTS" -r 60 out.speed2.mp4

-r Specifies the framerates of the video files
-filter:v "setpts=0.1*PTS" Specifies that the output video is 10 times faster than the original


@zekroTJA
zekroTJA / discordOAuth.js
Created October 19, 2018 11:59
A simple class to get a Discord users ID via online oauth authorization via express application
const request = require('request');
const querystring = require('querystring');
/**
*
*/
class DiscordOAuth {
/**
* Create new instance of DiscordOAuth.
@zekroTJA
zekroTJA / snowflake.js
Created October 23, 2018 07:36
Simple twitter-like snowflake generator for Node.js
/*
STRONGLY INPIRED BY
snowflake package for Go by bwmarrin
https://github.com/bwmarrin/snowflake
MIT License
Copyright (c) 2018 Ringo Hoffmann (zekro Development)
Permission is hereby granted, free of charge, to any person obtaining a copy
@zekroTJA
zekroTJA / ftp2windowslocation.md
Last active October 28, 2018 09:59
How to connect a FTP share as windows location in explorer.








@zekroTJA
zekroTJA / mySqlAutoBackup.sh
Last active October 28, 2018 18:09
A simple bash script to automatically backup your MySql databases to git repositories.
#!/bin/bash
# © 2018 zekro Development
# contact[at]zekro.de | https://zekro.de
# MIT License
# Copyright (c) 2018 Ringo Hoffmann (zekro Development)
# Permission is hereby granted, free of charge, to any person obtaining a copy
@zekroTJA
zekroTJA / const.php
Created October 31, 2018 12:06
Simple PHP script to display images in screenshot location (for Share-X online mirror, for example)
<?php
define("IMAGE_DIR", "*.{jpg,png,jpeg,gif}");
define("ACCESS_TOKEN", "dustinkst");
define("MAX_PER_PAGE", 50);
?>