Skip to content

Instantly share code, notes, and snippets.

View sn0opy's full-sized avatar

Sascha Ohms sn0opy

View GitHub Profile
{
"style": "osm-bright",
"latitude": #(lat),
"longitude": #(lon),
"zoom": 17.5,
"width": 800,
"height": 500,
"scale": 1,
"format": "png",
"markers": [
@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)
@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);
<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;
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$f3 = Base::instance();
$f3->receivers = [
[
"url" => "http://rdmserver123:9001/raw",
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->raidwebhook = null;
$f3->questswebhook = null;
from datetime import datetime, timedelta
import json
import time
from db.DbFactory import DbFactory
from geofence.geofenceHelper import GeofenceHelper
from utils.walkerArgs import parseArgs
from utils.logging import logger, initLogging
# path to geofence file goes here
@sn0opy
sn0opy / google_style_448.xml
Created January 14, 2019 14:01
Google Java Codestyle for Checkstyle with 4-4-8 indentation
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<!--
Checkstyle configuration that checks the Google coding conventions from Google Java Style
that can be found at https://google.github.io/styleguide/javaguide.html.
Checkstyle is very configurable. Be sure to read the documentation at
@sn0opy
sn0opy / rocketmap-osm-cec.sql
Last active March 7, 2019 13:23
Blank RocketMap schema created via https://github.com/cecpk/OSM-Rocketmap properly working with MAD
SET FOREIGN_KEY_CHECKS=0;
SET NAMES utf8mb4;
CREATE TABLE `gomap` (
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;