Skip to content

Instantly share code, notes, and snippets.

Alexej heyalexej

  • rather hard to pin down
Block or report user

Report or block heyalexej

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
@heyalexej
heyalexej / export.sql
Created Jun 2, 2019
Gambio Kundenliste exportieren
View export.sql
SELECT * FROM `address_book`
INNER JOIN customers ON address_book.customers_id=customers.customers_id;
@heyalexej
heyalexej / interesting-ais-numbers.py
Created Mar 22, 2018
goofing around finding a cool number for a backup SIM
View interesting-ais-numbers.py
#!/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):
View sneaky-redirect.js
(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 Nov 16, 2016
list of pytz time zones
View pytz-time-zones.py
>>> 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 Sep 26, 2015 — forked from shreyansb/flask_profiler.py
A profiler for Flask apps
View flask_profiler.py
"""
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
"""
View sentence_permutations.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
i = ['headline one',
'headline two',
'headline three']
j = ['first line one',
'first line two',
'first line three']
View bishop.py
#!/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():
View plotly-plotit.py
#!/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
View plotit.py
#!/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 Aug 11, 2015
Quick, Dirty & Wonky Sub Tracker for Chris
View subinfo.py
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/' +
You can’t perform that action at this time.