Skip to content

Instantly share code, notes, and snippets.

@hakerdefo
hakerdefo / sources.list
Last active August 12, 2025 14:58
Ubuntu 22.04 LTS (Jammy Jellyfish) complete sources.list
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
@dwy6626
dwy6626 / fibonacci.py
Last active December 21, 2022 12:01
Timeit!
import time
from functools import lru_cache
import numpy as np
from matplotlib import pyplot as plt
from decimal import Decimal, getcontext
getcontext().prec = 250
@kallydev
kallydev / main.go
Last active January 18, 2023 15:17
v2ray use gRPC API to add inbound example.
package main
import (
"context"
"fmt"
"google.golang.org/grpc"
"log"
"v2ray.com/core"
"v2ray.com/core/app/proxyman"
"v2ray.com/core/app/proxyman/command"
@panamantis
panamantis / logging.ini
Created June 20, 2020 13:22
Python logging configuration files (yaml, json, ini)
[loggers]
keys=root,app,uvicorn
[handlers]
keys=console,file,uvicorn
[formatters]
keys=console,file
[logger_root]
[docker]
project = warehouse
app_dir = /%(project)
chdir = %(app_dir)
wsgi-file = django-config/wsgi.py
static-map = /static=/%(project)/static
enable-threads = true
single-interpreter = true