Skip to content

Instantly share code, notes, and snippets.

View sn0opy's full-sized avatar

Sascha Ohms sn0opy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sn0opy on github.
  • I am sascha (https://keybase.io/sascha) on keybase.
  • I have a public key whose fingerprint is 3086 A73B A8B1 F930 A231 1505 CC96 2DD6 CF9E 5226

To claim this, I am signing this object:

@sn0opy
sn0opy / php.ini
Created April 7, 2014 22:20
hhvm 3.x php.ini
hhvm.server.type = fastcgi
hhvm.server.file_socket = /run/shm/hhvm.sock
hhvm.server.apc.enable_apc = true
hhvm.server.apc.table_type = concurrent
hhvm.server.apc.expire_on_sets = true
hhvm.server.apc.purge_frequency = 4096
hhvm.eval.jit = true
hhvm.eval.jit_warmup_requests = 50
@sn0opy
sn0opy / gist:79c80cdaad9767b14393
Created July 1, 2014 08:25
EVE: Find Level 4 Security agents in low sec (dirty)
SELECT
mapSolarSystems.security, solarSystemName
FROM
mapSolarSystems, agtAgents, staStations
WHERE
divisionID = 24
AND staStations.stationID = agtAgents.locationID
AND staStations.solarSystemID = mapSolarSystems.solarSystemID
AND agtAgents.level = 4
AND agtAgents.agentTypeID = 2
@sn0opy
sn0opy / s.theme
Last active July 1, 2022 14:21
Weechat Theme
#
# -- WeeChat theme --
# $name: _backup.theme
# $date: 2016-10-20
# $weechat: 1.6
# $script: theme.py 0.1-dev
#
aspell.color.misspelled = "lightred"
aspell.color.suggestions = "default"
irc.color.input_nick = "lightcyan"
@sn0opy
sn0opy / fittingcalc.php
Last active November 26, 2017 11:52
Class to parse EFT fitting
<?php
class Fittingcalc
{
// don't touch this, or you will lose your hands
// see dgmAttributeTypes to know what they are
const REQ_SKILLS_ATTRIBUTES = [182, 183, 184, 1285, 1289, 1290];
const REQ_SKILLS_LEVELS = [277, 278, 279, 1286, 1287, 1288];
@sn0opy
sn0opy / ingress_export.js
Last active December 21, 2018 16:41
Modified script to properly work with the intel.ingress.com domain
// ==UserScript==
// @id iitc-plugin-ingressportalcsvexport@zetaphor
// @name IITC Plugin: Ingress Portal CSV Export
// @category Information
// @version 0.0.2
// @namespace http://github.com/Zetaphor/IITC-Ingress-Portal-CSV-Export
// @updateURL http://github.com/Zetaphor/IITC-Ingress-Portal-CSV-Export/raw/master/ingress_export.js
// @downloadURL http://github.com/Zetaphor/IITC-Ingress-Portal-CSV-Export/raw/master/ingress_export.js
// @description Exports portals to a CSV list
// @include https://intel.ingress.com/intel*
@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;
@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
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
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$f3 = Base::instance();
$f3->raidwebhook = null;
$f3->questswebhook = null;