Skip to content

Instantly share code, notes, and snippets.

View 0xDones's full-sized avatar
👨‍💻

Denis Policastro 0xDones

👨‍💻
View GitHub Profile
@0xDones
0xDones / app.py
Created February 6, 2018 17:47
Python 3 - Example of Multithreading using asyncio and concurrent
import requests, asyncio, concurrent
async def makeMultiRequests(names):
with concurrent.futures.ThreadPoolExecutor(max_workers=20) as executor:
loop = asyncio.get_event_loop()
futures = [
loop.run_in_executor(
executor,
@0xDones
0xDones / Docker Documentation Summary.md
Last active November 13, 2018 17:36
[Docker Documentation] This is a small summary a made about docker, docker-compose and docker swarm #docker #docker-compose #swarm

Installation

After the installation, you have to add your user to docker group to run docker without sudo permission

sudo usermod -aG docker $USER

Container Images

Dockerfile:

FROM ubuntu:tag # Sets the image
MAINTAINER Denis Policastro <[email protected]>
ADD . . # Copy items from host to VM (All from dir to workdir)
@0xDones
0xDones / monzo-alertmanager-config.yaml
Created July 23, 2024 14:01 — forked from milesbxf/monzo-alertmanager-config.yaml
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##