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
// ==UserScript==
// @id iitc-plugin-portal-export
// @name IITC plugin: Export visible portals to JSON
// @category Info
// @version 0.1.0.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Display a list of all localized portals by level and faction.
// @include https://*.ingress.com/intel*
# A Sync plugin for Matrix and Hangouts
import os, logging
import io
import asyncio
import hangups
import plugins
import aiohttp
from matrix_client.client import MatrixClient
from matrix_client.api import MatrixRequestError
@MTRNord
MTRNord / tweet_dumper.py
Last active December 24, 2016 12:50 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
@MTRNord
MTRNord / gamerules with Forge
Created December 18, 2016 21:29
How to change GameRules in Minecraft 1.11 with Forge
@EventHandler
public void onWorldLoad(FMLServerStartedEvent event) {
WorldServer worldServer = DimensionManager.getWorld(0); // default world
GameProfile gameProfile = new GameProfile(UUID.randomUUID(), "FakePlayer");
FakePlayer fakePlayer = new FakePlayer(worldServer, gameProfile);
MinecraftServer minecraftServer = fakePlayer.mcServer;
minecraftServer.getServer().worldServerForDimension(0).getGameRules().setOrCreateGameRule("randomTickSpeed", "3000");
}
//telesync _initialize
try:
bot.register_shared("telesync.add_command", tg_bot.add_command)
except:
print("error sharing!")
//plugin _initialize
bot.call_shared("telesync.add_command", "/iitc", iitc)
@MTRNord
MTRNord / README.md
Last active November 9, 2016 21:22
Ingress Intel Screenbot

Ingress Intel Screenbot

Note: Most of the Code in screencap.js comes from ingress-ice which isn't made by me. So code Credits of it goes in the most parts to nibogd. I only modified it for the Bot.

Requires: PhantomJS (installation instructions below) Requires: hangoutsbot

Get and post a screenshot of the Intel Map.

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 / 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]:"

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 / 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