Skip to content

Instantly share code, notes, and snippets.

Avatar

Ofek Lev ofek

View GitHub Profile
View keys.pub proof
BEGIN MESSAGE.
l2lMGzgWPRoAFVC GhLXrKi0txn23Cj SprmEIdDINXhxyC DVxBti9wzlg7yjE
X9yrT3QWgSiKggn C4fOKSsWYJ9TCKq 6Xr2MZHgg6vBBpL eKRyrfuULEBvTDR
LhRR5GD2QCftYv7 TAWnwBKT5yki3hC MCORiih9mEi7w0o 86rQnWl30VchRU2
DdCMcAXP5TXMR7n 3mDReLu7QbQ5XoU YFC9.
END MESSAGE.
View invoke_yaml.py
import multiprocessing
import os
import psutil
pid = os.getpid()
p = psutil.Process(pid)
def _yaml_load(config):
@ofek
ofek / envoy_secured_stats_config.json
Last active May 2, 2019
Envoy secured stats endpoint example
View envoy_secured_stats_config.json
{
"listeners": [
{
"address": "tcp://0.0.0.0:80",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"codec_type": "auto",
@ofek
ofek / prioritize_orders.py
Created May 9, 2017
Shopify Fall 2017 Internship - Back End Development Problem
View prioritize_orders.py
import json
from collections import namedtuple
try:
import requests
except ImportError:
raise ImportError('This program requires '
'https://github.com/kennethreitz/requests')
ENDPOINT = 'https://backend-challenge-fall-2017.herokuapp.com/orders.json'
View gist:d2de5cc7466cced306511a3297c0b24a
### Keybase proof
I hereby claim:
* I am ofek on github.
* I am ofek (https://keybase.io/ofek) on keybase.
* I have a public key whose fingerprint is FFB6 B92B 30B1 7848 546E 9912 972F E913 DAD5 A46E
To claim this, I am signing this object:
You can’t perform that action at this time.