Skip to content

Instantly share code, notes, and snippets.

ePirat ePirat

Block or report user

Report or block ePirat

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
@ePirat
ePirat / main.m
Last active Nov 6, 2018
MoltenPlacebo
View main.m
//
// main.m
// MoltenPlacebo
//
// This proof-of-concept is extremely naive. This is probably not
// what you should be doing for a real program!
//
// Created by Marvin Scholz on 05.11.18.
// Based on sdl.c
//
View pre-push.sh
#!/bin/bash
# Git hook to ask before pushing to specific branch or remote
# Adapted from https://blog.ghost.org/prevent-master-push/
# Put this in .git/hooks/pre-push and do not forget to make it executable
protected_remote='origin'
protected_branch='master'
current_remote="$1"
View VLCQtCompileMacOS.md

Compile VLC with Qt Intf on macOS

First, export the QTDIR variable, it should contain the path to your Qt 5 directory:

QTDIR="/Applications/Qt/5.9.3/clang_64"

Now, configure VLC:

@ePirat
ePirat / article.md
Last active Feb 2, 2017
Häusliche Gewalt in „50 Shades of Grey“
View article.md

Häusliche Gewalt in „50 Shades of Grey“

Dies ist eine Übersetzung des Artikels „Domestic Violence in 50 Shades of Grey

Am 12. Februar eröffnet Karen Ingala Smith in Zussamenarbeit mit Women's Aid „The Femicide Census: Profiles of Women Killed By Men“ auf einer Konferenz in London. Währenddessen finden sich weniger als 4 km entfernt die Fans zur UK Premiere von Fifty Shades of Grey zusammen, der Film-Adaption des sehr erfolgreichen Romans von EL James. Die beiden Veranstaltungen scheinen nichts miteinander gemeinsam. Doch für Betroffene, die mit häusliche Gewalt zu tun oder diese erlebt haben, sind die beiden Verstanltungen eine verstörende Gegenüberstellung von häuslicher Gewalt mit einer fiktionalen, romantisierten Version dieser, welche von der Gesellschaft akzeptiert wird.

@ePirat
ePirat / INSTALL.md
Last active Feb 15, 2019
Cross-compile libaacs for Windows (64bit)
View INSTALL.md

Cross-compile libaacs for Windows (64bit)

For this guide the ubuntu:yakkety Docker image was used.

Install the cross-compile toolchain

apt-get install mingw-w64-tools gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wget gettext bison flex
@ePirat
ePirat / help.md
Created Feb 27, 2015
Buy something on Steam while in another Country
View help.md

Recently I had to buy something on Steam while in another Country. Turns out it was impossible, because the country information of my Payment method differs from the Country selected based on my IP Address. So I contacted the Steam support, and they advised me to pass a special Argument to the URL when visiting the Steam Store through a Webbrowser:

http://store.steampowered.com/?cc=<countrycode>

Replace <countrycode> with a 2 character country code, for example:

http://store.steampowered.com/?cc=DE
@ePirat
ePirat / parse_playlist.php
Last active Aug 29, 2015
Ice PlaylistParser
View parse_playlist.php
#!/usr/bin/php
<?php
if (php_sapi_name() == "cli") {
// If this is executed via CLI, parse options and stuff
// Helper
function report_error($e) {
// Get the current script name
$our_name = (($v =strrchr(__FILE__, DIRECTORY_SEPARATOR)) == FALSE)
? __FILE__
View keybase.md

Keybase proof

I hereby claim:

  • I am ePirat on github.
  • I am epirat (https://keybase.io/epirat) on keybase.
  • I have a public key whose fingerprint is 66DF 0B23 CE79 3C28 0922 62E1 3EBF 06BE 1FF9 645A

To claim this, I am signing this object:

@ePirat
ePirat / spec.md
Last active Aug 2, 2019
Icecast Protocol specification
View spec.md

Icecast protocol specification

What is the Icecast protocol?

When speaking of the Icecast protocol here, actually it's just the HTTP protocol, and this document will explain further how source clients need to send data to Icecast.

HTTP PUT based protocol

Since Icecast version 2.4.0 there is support for the standard HTTP PUT method. The mountpoint to which to send the data is specified by the URL path.

@ePirat
ePirat / CodeStyle.md
Last active Aug 29, 2015
C Coding Style proposal for Icecast
View CodeStyle.md

C Coding Style

Proposal for Icecast

Formatting

Indent with (4) spaces, no tabs.
A Line Should Not Exceed 80 Characters.

Brace Placement

All if, while, for and do statements should either have braces or be on a single line. Do not put parens next to keywords. Put a space between.

You can’t perform that action at this time.