Skip to content

Instantly share code, notes, and snippets.

View mtellezj's full-sized avatar

Mauricio Téllez mtellezj

  • Xalapa, Ver. México
View GitHub Profile
@mtellezj
mtellezj / nginx.conf
Created August 7, 2017 23:46
Config file for nginx with http and https support
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
* MySql database
:PROPERTIES:
:header-args:sql: :engine mysql
:header-args:sql+: :cmdline "my_db -u john_doe -h 127.0.0.1"
:header-args:sql+: :var start_date="2019-02-27"
:header-args:sql+: :var end_date="2020-02-29"
:END:
** Get all clients
Press C-c C-c inside next block to query the database.