Skip to content

Instantly share code, notes, and snippets.

View cipriantarta's full-sized avatar
🎯
Focusing

Ciprian Tarta cipriantarta

🎯
Focusing
View GitHub Profile
require('plugins') -- the plugins
require('settings') -- plugins & general nvim settings
require('mappings') -- key mappings
@slok
slok / pprof.md
Last active June 11, 2024 00:04
Go pprof cheat sheet

Enable profiling

Default http server

import (
    _ "net/http/pprof"
    "net/http"
)
@dabeaz
dabeaz / aecho.py
Last active October 17, 2023 03:26
Live-coded examples from my PyCon Brasil 2015 Keynote
# aecho.py
from socket import *
import asyncio
loop = asyncio.get_event_loop()
async def echo_server(address):
sock = socket(AF_INET, SOCK_STREAM)
sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)