Skip to content

Instantly share code, notes, and snippets.

Avatar
🗂️
building my personal CRM

Karl Lorey lorey

🗂️
building my personal CRM
View GitHub Profile
@erikig
erikig / common-domain-prefix-suffix-list.tsv
Last active Sep 21, 2021
Top 5000 Most Common Domain Prefix/Suffix List - Courtesy LeanDomainSearch - https://leandomainsearch.com/top-domain-name-prefixes-and-suffixes/
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
tomasfejfar / docker-compose.yml
Created Apr 3, 2018
Using YAML to reuse parts of existing docker-compose configuration
View docker-compose.yml
version: "3"
services:
apache: &apacheConfig
build: .
volumes:
- ./:/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
ports:
@vasanthk
vasanthk / System Design.md
Last active Sep 21, 2021
System Design Cheatsheet
View System Design.md

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
kissgyorgy / sqlalchemy_conftest.py
Last active Sep 9, 2021
Python: py.test fixture for SQLAlchemy test in a transaction, create tables only once!
View sqlalchemy_conftest.py
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from myapp.models import BaseModel
import pytest
@pytest.fixture(scope="session")
def engine():
return create_engine("postgresql://localhost/test_database")