Skip to content

Instantly share code, notes, and snippets.

View BarbaricCorgi's full-sized avatar

Barbaric Corgi BarbaricCorgi

  • Corgi
  • Singapore
View GitHub Profile
@BarbaricCorgi
BarbaricCorgi / nginx.conf
Created April 24, 2020 19:43 — forked from CSRaghunandan/nginx.conf
Nginx configuration for serving mp4 videos
#user nobody;
worker_processes 4;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record id="do_niif_11010301" model="account.account.template">
<field name="name">Depósitos a corto plazo en RD$</field>
<field name="code">11010301</field>
<field name="chart_template_id" ref="mx_coa" />
<field name="user_type_id" ref="account.data_account_type_liquidity" />
<field name="reconcile" eval="FALSE" />
<field name="tag_ids" eval="[(6,0,[ref('account_tag_1','account_tag_11','account_tag_1101','account_tag_110103')])]" />
@BarbaricCorgi
BarbaricCorgi / cmd.sh
Created April 11, 2017 17:28 — forked from kelvinn/cmd.sh
Example of using Apache Bench (ab) to POST JSON to an API
# post_loc.txt contains the json you want to post
# -p means to POST it
# -H adds an Auth header (could be Basic or Token)
# -T sets the Content-Type
# -c is concurrent clients
# -n is the number of requests to run in the test
ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/
Verifying I am +sdreyesg on my passcard. https://onename.com/sdreyesg