Skip to content

Instantly share code, notes, and snippets.

View MTRNord's full-sized avatar
🏠
Working from home

Marcel MTRNord

🏠
Working from home
View GitHub Profile
@MTRNord
MTRNord / vhost1.conf
Created October 20, 2014 12:32
nginx conf ohne php
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 2;
server {
#WICHTIGES
@MTRNord
MTRNord / Pure-CSS-Tabs.markdown
Created December 13, 2014 11:16
Pure CSS Tabs
@MTRNord
MTRNord / VGR_derLaender1.html
Created January 4, 2015 14:33
HTMLParser_OpenData
<?xml version="1.0" encoding="utf-8" standalone="no"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"><head profile="http://dublincore.org/documents/dcq-html/"><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta http-equiv="content-language" content="de"/><meta http-equiv="Content-Style-Type" content="text/css"/><meta http-equiv="Content-Script-Type" content="text/javascript"/><meta name="robots" content="index,follow,noarchive,noodp"/><meta name="revisit-after" content="30 Days"/><meta name="generator" content="GENESIS-Online"/><meta name="DC.type" content="Text" scheme="DCTERMS.DCMIType"/><meta name="DC.format" content="text/html" scheme="DCTERMS.IMT"/><meta name="DC.audience" content="general public"/><meta name="language" content="de"/><meta name="DC.language" content="de"/><meta name="date" content="2015-01-04T12:50:21+1:00"/><meta name="DC.da
@MTRNord
MTRNord / example.json
Created May 22, 2015 13:46
Javascript Problem
{"message":[{"user":"Chat","text":"Loading emotes and badges.."},{"user":"Chat","text":"Connecting to Night's chat socket server.."},{"user":"Chat","text":"Connected."}]}
@MTRNord
MTRNord / README
Last active June 12, 2016 09:19 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
YOU NEED TO HAVE INSTALLED THE RASPBERRY PI TOOLCHAIN!
https://www.raspberrypi.org/documentation/linux/kernel/building.md
RUN AS ROOT
@MTRNord
MTRNord / build_nginx.sh
Last active August 5, 2016 21:19 — forked from MattWilcox/build_nginx.sh
Fetch, build, and install the latest nginx with the latest OpenSSL for RaspberryPi
#!/usr/bin/env bash
# names of latest versions of each package
export VERSION_PCRE=pcre-8.32
export VERSION_OPENSSL=openssl-1.0.2h
export VERSION_NGINX=nginx-1.11.3
# URLs to the source directories
export SOURCE_OPENSSL=https://www.openssl.org/source/
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

Keybase proof

I hereby claim:

  • I am mtrnord on github.
  • I am mtrnord (https://keybase.io/mtrnord) on keybase.
  • I have a public key ASBGbWkNsoSMz75oMVdDIB0hyv0C8pUax21jJLIQn-ihaAo

To claim this, I am signing this object:

@MTRNord
MTRNord / mapit-germany_install.sh
Created August 18, 2016 21:12
Installer for the Mapit-Germany Docker
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo -e "Getting User Data\n"
echo -e "-------------------\n \n"
echo -e "Tell Ubuntu Verison name [precise, trusty, wily, xenial]:"
import requests
import json
import re
import argparse
import random
import m3u8
USHER_API = 'http://usher.twitch.tv/api/channel/hls/{channel}.m3u8?player=twitchweb' +\
'&token={token}&sig={sig}&$allow_audio_only=true&allow_source=true' + \
'&type=any&p={random}'
@MTRNord
MTRNord / README.md
Last active October 15, 2016 14:19
Create ffnord gluon Enviorment

How to use

  1. Download it with wget or curl
  2. use chmod a+x on the shell script
  3. run the script

Disclaimer