Skip to content

Instantly share code, notes, and snippets.

View heyalexej's full-sized avatar

Alexej heyalexej

  • rather hard to pin down
View GitHub Profile
@heyalexej
heyalexej / export.sql
Created June 2, 2019 20:31
Gambio Kundenliste exportieren
SELECT * FROM `address_book`
INNER JOIN customers ON address_book.customers_id=customers.customers_id;
@heyalexej
heyalexej / interesting-ais-numbers.py
Created March 22, 2018 17:16
goofing around finding a cool number for a backup SIM
#!/usr/bin/env python3.6
from string import ascii_lowercase as letters
import json, _jsonnet, re, pickle
from requests import get
import spacy
nlp = spacy.load('en')
def letter_combinations(digits):
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter42337284 = new Ya.Metrika({
id:42337284,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
@heyalexej
heyalexej / pytz-time-zones.py
Created November 16, 2016 09:14
list of pytz time zones
>>> import pytz
>>>
>>> for tz in pytz.all_timezones:
... print tz
...
...
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
@heyalexej
heyalexej / flask_profiler.py
Created September 26, 2015 15:45 — forked from shreyansb/flask_profiler.py
A profiler for Flask apps
"""
This module provides a simple WSGI profiler middleware for finding
bottlenecks in web application. It uses the profile or cProfile
module to do the profiling and writes the stats to the stream provided
To use, run `flask_profiler.py` instead of `app.py`
see: http://werkzeug.pocoo.org/docs/0.9/contrib/profiler/
and: http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xvi-debugging-testing-and-profiling
"""
#!/usr/bin/python
# -*- coding: utf-8 -*-
i = ['headline one',
'headline two',
'headline three']
j = ['first line one',
'first line two',
'first line three']
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import requests
from itertools import permutations
ep = 'http://profilebishop.com/run.php'
p = list(permutations(range(1,6), 4))
def permutate():
#!/usr/bin/python
import plotly.plotly as py
from plotly.graph_objs import *
import datetime as dt
import csv
py.sign_in('user', 'pass')
# Visualize CSV Data
#!/usr/bin/python
from matplotlib import pyplot as plt
import matplotlib.dates as md
import datetime as dt
import csv
# Visualize CSV Data
with open('res.csv', 'rb') as f:
@heyalexej
heyalexej / subinfo.py
Created August 11, 2015 09:15
Quick, Dirty & Wonky Sub Tracker for Chris
import requests
import time
import json
headers = {'User-Agent': 'android:subgrowth:v0.1 (by /u/twelvis)'}
def getit(subreddit):
r = requests.get(
'http://www.reddit.com/r/' +