Skip to content

Instantly share code, notes, and snippets.

View sn0opy's full-sized avatar

Sascha Ohms sn0opy

View GitHub Profile
SET NAMES utf8mb4;
CREATE TABLE `pokemon_names` (
`id` int(11) NOT NULL,
`german` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`english` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`japanese` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
INSERT INTO `pokemon_names` (`id`, `german`, `english`, `japanese`) VALUES
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$f3 = Base::instance();
$f3->receivers = [
[
"url" => "http://rdmserver123:9001/raw",
<html>
<head>
<meta charset="utf-8">
<title>Portal Map</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.4/leaflet.css" />
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />
<style>
html, body {
height: 100%;
padding: 0;
@sn0opy
sn0opy / gist:1e890f6c1b5cafee267b9147a1037df1
Created April 27, 2020 11:21
Twitter Gender base64 video Bookmarklet
javascript:el=document.querySelectorAll("a[href='/settings/your_twitter_data/gender']")[0].firstChild.firstChild.children[1].firstChild;blob=el.innerText;nel=document.createElement('video');nel.autoplay=true;nel.src='data:video/mp4;base64,'+blob;el.replaceWith(nel);
@sn0opy
sn0opy / proto.py
Created April 29, 2020 15:06
proto processing demo
from mapadroid.mitm_receiver.MITMDataProcessor import MitmDataProcessor
type = 4
payload = "CAESDgjptIDBmy4Q6bSAwZsu"
data = MitmDataProcessor.raw_decoder(type, payload)
if data is None:
print("Type not supported")
else:
print(data)
{
"style": "osm-bright",
"latitude": #(lat),
"longitude": #(lon),
"zoom": 17.5,
"width": 800,
"height": 500,
"scale": 1,
"format": "png",
"markers": [
# pip install gpapi
import requests
from apkutils import APK
from gpapi.googleplay import GooglePlayAPI
host = "https://matlink.fr/token"
package = "com.nianticlabs.pokemongo"
version = None
@sn0opy
sn0opy / generate_icon.py
Last active June 7, 2020 14:07
generate mon icons in several formats
import cv2
import numpy as np
import os
# original asset mon icon path
assets = "../PogoAssets/pokemon_icons/"
def crop(img):
channels = cv2.split(img)
@sn0opy
sn0opy / Dockerfile
Created June 21, 2020 17:18
il2cppdumper Dockerfile
ARG I2CD_VERSION=6.2.1
FROM alpine:3.7 as download
ARG I2CD_VERSION
RUN wget -O source.zip https://github.com/Perfare/Il2CppDumper/archive/v${I2CD_VERSION}.zip
RUN mkdir /dumpersource && unzip -d /dumpersource -q source.zip
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine as compile
ARG I2CD_VERSION
WORKDIR /source
@sn0opy
sn0opy / nginx site config
Last active August 24, 2020 16:47
Sample Nginx config for MAD and RM
# This is a sample site config for Nginx utilizing a single (sub)domain for
# everything MAD related.
#
# MADmin will be available under https://mad.domain.tld/madmin
# RGC needs to be configured to connect to "wss://mad.domain.tld/rgc"
# PD needs to be configured to send data to "https://mad.domain.tld/pd"
# RocketMAD will be available under https://mad.domain.tld/
# How to test if everything's working:
#