Skip to content

Instantly share code, notes, and snippets.

View sly01's full-sized avatar
πŸ‘¨β€πŸ’»

Ahmet Erkoc sly01

πŸ‘¨β€πŸ’»
View GitHub Profile
@sly01
sly01 / web-servers.md
Created July 5, 2019 09:46 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@sly01
sly01 / docker-compose.yml
Created October 14, 2018 19:35 — forked from ahromis/docker-compose.yml
Gogs docker-compose.yml
version: '2'
services:
postgres:
image: postgres:9.5
restart: always
environment:
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
- "POSTGRES_DB=gogs"
volumes:
cmds = [
'cd %s' % base_dir,
'source env/bin/activate',
'pip install %s' % package,
]
run(' && '.join(cmds))