Skip to content

Instantly share code, notes, and snippets.

View odony's full-sized avatar

Olivier Dony (ODO) odony

View GitHub Profile
@odony
odony / curl_to_ab.py
Last active May 15, 2022 16:19 — forked from ctolsen/curl_to_ab.py
"Copy to cURL" in Chrome to Apache Bench command
#!/usr/bin/env python
import sys
import tempfile
import os
def curl_to_ab(curl_cmd, num=200, cur=4):
"""
Translate a cURL command created by Chrome's developer tools into a
command for ``ab``, the ApacheBench HTTP benchmarking tool.
@odony
odony / .fonts.conf
Last active May 10, 2021 07:54 — forked from silv3rm00n/.fonts.conf
Updated version of the fonts.conf file mentioned in http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/ in order to get rid of most of the fontconfig warnings (mostly the "Having multiple values in <test> isn't supported and may not work as expected")
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'