Skip to content

Instantly share code, notes, and snippets.

View ari-hacks's full-sized avatar
🪐
at 127.0.0.1

Ari ari-hacks

🪐
at 127.0.0.1
View GitHub Profile
@ari-hacks
ari-hacks / jupyter-setup.sh
Created February 25, 2021 03:00
Jupyter config
#Install
pip3 install --upgrade pip
pip3 install jupyter
#Run in local env
virtualenv myenv --python=python3.8
#Install extension for execution time
pip3 install jupyter_contrib_nbextensions
"""
Performance Testing Code and APIs
"""
#Decorators
#timeit
#cProfile
#pyInstrument
@ari-hacks
ari-hacks / DevOps-SRE-VirtualConferences2020.md
Last active October 21, 2020 10:18
📹 DevOps & SRE Virtual Conferences 2020

A list of on-demand and future conferences/webinars about DevOps and Reliability Engineering

Failover Conf

Webiste Videos

DevSecCon24

Webiste Videos

@ari-hacks
ari-hacks / dict.py
Last active March 21, 2022 17:18
Python Quick Reference
dict.keys()
dict.values()
"key" in dict # let's say this returns False, then...
dict["key"] # ...this raises KeyError
dict.get("key") # ...this returns None
dict.setdefault("key", 1)
"""
Better Python Code Tips & Tricks
"""
#LONG DIGITS
#seperating numbers with _ the underscore is ignored
digit = 10_00_000