Skip to content

Instantly share code, notes, and snippets.

View ofek's full-sized avatar

Ofek Lev ofek

View GitHub Profile
BEGIN MESSAGE.
l2lMGzgWPRoAFVC GhLXrKi0txn23Cj SprmEIdDINXhxyC DVxBti9wzlg7yjE
X9yrT3QWgSiKggn C4fOKSsWYJ9TCKq 6Xr2MZHgg6vBBpL eKRyrfuULEBvTDR
LhRR5GD2QCftYv7 TAWnwBKT5yki3hC MCORiih9mEi7w0o 86rQnWl30VchRU2
DdCMcAXP5TXMR7n 3mDReLu7QbQ5XoU YFC9.
END MESSAGE.
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 February 10, 2024 07:26
Envoy secured stats endpoint example
{
"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 02:53
Shopify Fall 2017 Internship - Back End Development Problem
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'
### 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: