Skip to content

Instantly share code, notes, and snippets.

@nstapelbroek
nstapelbroek / app.py
Created February 25, 2019 10:02
Configure SQLAlchemy engine logging
handler = logging.StreamHandler(sys.stdout)
# handler.setFormatter(JsonFormatter())
alchemy_engine_logger = logging.getLogger('sqlalchemy.engine')
alchemy_engine_logger.setLevel(logging.INFO)
alchemy_engine_logger.addHandler(handler)
@nstapelbroek
nstapelbroek / .gitconfig
Last active January 22, 2021 08:40
Reads, fixes and how-to's after re-installing your OS with Fedora
[user]
email = [email protected]
name = your name
[core]
autocrlf = input
excludesfile = ~/.gitignore_global
editor = vim
[aliases]
@nstapelbroek
nstapelbroek / purgevarnishsingle
Created May 30, 2017 07:27 — forked from blindpet/purgevarnishsingle
clear one url home page varnish cache
Enter varnish admin
varnishadm
clear cache for index home page only
ban req.http.host ~ www.htpcguides.com && req.url ~ "^/$"
clear cache for specific page
@nstapelbroek
nstapelbroek / purgevarnishsingle
Created May 30, 2017 07:27 — forked from blindpet/purgevarnishsingle
clear one url home page varnish cache
Enter varnish admin
varnishadm
clear cache for index home page only
ban req.http.host ~ www.htpcguides.com && req.url ~ "^/$"
clear cache for specific page
config.vm.network 'private_network', ip: '192.168.56.100'
curl -H "Content-type: application/json" 'http://10.200.2.1:8500/v1/catalog/services'
# Or, to get an overview of our specific hello-world service
curl -H "Content-type: application/json" 'http://10.200.2.1:8500/v1/catalog/service/hello-world'