Skip to content

Instantly share code, notes, and snippets.

Ofek Lev ofek

Block or report user

Report or block ofek

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
View test_pip_constraint
ofek@ozone ~\Desktop $ hatch use -t
Creating a temporary virtual env named `s8B6`...
Already using interpreter C:\Users\ofek\Miniconda3\python.exe
Using base prefix 'C:\\Users\\ofek\\Miniconda3'
No LICENSE.txt / LICENSE found in source
New python executable in C:\Users\ofek\AppData\Local\Temp\tmp0c8ep0l_\s8B6\Scripts\python.exe
Installing setuptools, pip, wheel...
done.
(s8B6) ofek@ozone ~\Desktop $ pip install --constraint agent_requirements.in requests
Ignoring aerospike: markers 'sys_platform != "win32"' don't match your environment
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.