Skip to content

Instantly share code, notes, and snippets.

more data

Karl Lorey lorey

more data
View GitHub Profile
erikig / common-domain-prefix-suffix-list.tsv
Last active Sep 19, 2022
Top 5000 Most Common Domain Prefix/Suffix List - Courtesy LeanDomainSearch -
View common-domain-prefix-suffix-list.tsv
Rank Type Prefix/Suffix
1. Prefix my+
2. Suffix +online
3. Prefix the+
4. Suffix +web
5. Suffix +media
6. Prefix web+
7. Suffix +world
8. Suffix +net
9. Prefix go+
tomasfejfar / docker-compose.yml
Created Apr 3, 2018
Using YAML to reuse parts of existing docker-compose configuration
View docker-compose.yml
version: "3"
apache: &apacheConfig
build: .
- ./:/var/www/html:cached
- ./docker/php-apache/php.ini:/usr/local/etc/php/php.ini
- ./docker/php-apache/ssl-local:/etc/httpd/ssl
working_dir: /var/www/html
vasanthk / System
Last active Sep 28, 2022
System Design Cheatsheet
View System

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
kissgyorgy /
Last active Sep 7, 2022
Python: py.test fixture for SQLAlchemy test in a transaction, create tables only once!
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from myapp.models import BaseModel
import pytest
def engine():
return create_engine("postgresql://localhost/test_database")