Skip to content

Instantly share code, notes, and snippets.

Sebastian zweizeichen

Block or report user

Report or block zweizeichen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zweizeichen
zweizeichen / tokenfetcher.py
Created Sep 12, 2017
ESI Token fetching script
View tokenfetcher.py
# 1) Configure below
# 2) pip install esipy Flask
# 3) FLASK_APP=tokenfetcher.py flask run
# 4) Wait a couple of seconds for the browser to open
import webbrowser
from esipy import App
from esipy import EsiClient
from esipy import EsiSecurity
@zweizeichen
zweizeichen / chrome.py
Last active Jun 8, 2017
Check your browsing history for sites using Cloudflare
View chrome.py
import sqlite3
import tldextract
history_domains = set()
cf_domains = None
print("Loading domains from Chrome browsing history...")
# Copy history from ~/Library/Application Support/Google/Chrome/Default/History
conn = sqlite3.connect('History')
View yay.ex
defmodule Yay do
def list_to_map([], map) do
map
end
def list_to_map(list, map) do
[key, value] = Enum.take(list, 2)
list_to_map(tl(tl(list)), Map.put(map, key, value))
end
end
@zweizeichen
zweizeichen / Element43 API Information.sql
Last active May 19, 2017
API Info to get you started
View Element43 API Information.sql
-- ----------------------------
-- Records of "api_reftype"
-- ----------------------------
BEGIN;
INSERT INTO "api_reftype" VALUES ('117', '');
INSERT INTO "api_reftype" VALUES ('10014', 'District Contract Collateral');
INSERT INTO "api_reftype" VALUES ('10015', 'District Contract Collateral Refund');
INSERT INTO "api_reftype" VALUES ('10016', 'District Contract Reward');
INSERT INTO "api_reftype" VALUES ('10017', 'District Clone Transportation');
INSERT INTO "api_reftype" VALUES ('10018', 'District Clone Transportation Refund');
View gist:3844956
{
"active_orders": 1533121,
"archived_orders": 6014880,
"history_messages": 4365,
"history_records": 166062,
"new_orders": 4365,
"old_orders": 5483,
"typestats": {
"29668": {
"ask_avg": 642649016.641,
@zweizeichen
zweizeichen / station.haml
Created Oct 3, 2012
Element43 margin script
View station.haml
- extends "base.haml"
- load cache
- load humanize
- block title
element43 - Station - Best Margins
- block content
%h1
{{station.name}}
.row-fluid
.span12
You can’t perform that action at this time.