Skip to content

Instantly share code, notes, and snippets.

Thibault Charbonnier thibaultcha

Block or report user

Report or block thibaultcha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thibaultcha
thibaultcha / cla.md
Created Dec 3, 2019
Kong Contributor License Agreement
View cla.md

Kong Contributor License Agreement

Thank you for your interest in making a Contribution to a project of Kong Inc., a Delaware USA corporation with notice address at 150 Spear Street, Suite 1600, San Francisco, CA, 94105, USA (“Kong”, “we” or “us”). In order to clarify the intellectual property license granted with Contributions from you, Kong must have a Contributor License Agreement (“CLA”) on file that has been signed by you, a developer of software or other technology (either an individual or an entity), indicating agreement to the license terms below. By electronically signing below, you are consenting to transact electronically and are entering into a binding contract, and you accept and agree to the following terms and conditions for your Contributions submitted to Kong.

BEFORE SIGNING AND/OR CLICKING A BUTTON TO E-SIGN OR ACCEPT, CAREFULLY READ THE TERMS AND CONDITIONS OF THIS AGREEMENT AND ANY TERMS OF USE PROVIDED THROUGH THE SIGNING PROCESS.

If you are not authorized as set forth above, do not

@thibaultcha
thibaultcha / nginx-1.11.2-cve_2018_16843_cve_2018_16844.patch
Last active Aug 14, 2019
NGINX [1.11.2 + 1.13.6] CVE-2018-16843 CVE-2018-16844 CVE-2019-9511 CVE-2019-9513 CVE-2019-9516
View nginx-1.11.2-cve_2018_16843_cve_2018_16844.patch
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
index 19e5f3a0..cef8b5b5 100644
--- a/src/http/v2/ngx_http_v2.c
+++ b/src/http/v2/ngx_http_v2.c
@@ -623,6 +623,7 @@ ngx_http_v2_handle_connection(ngx_http_v2_connection_t *h2c)
h2c->pool = NULL;
h2c->free_frames = NULL;
+ h2c->frames = 0;
h2c->free_fake_connections = NULL;
@thibaultcha
thibaultcha / term.app
Last active Jun 28, 2018
Injected Nginx directives in Kong CE 0.14.0 (env variable)
View term.app
$ export KONG_NGINX_PROXY_OUTPUT_BUFFERS="4 64k"
@thibaultcha
thibaultcha / kong.conf
Last active Jun 28, 2018
Injected Nginx directives in Kong CE 0.14.0 (kong.conf)
View kong.conf
nginx_proxy_large_client_header_buffers = 16 128k
@thibaultcha
thibaultcha / handler.lua
Last active Jun 28, 2018
Kong 0.14.0 PDK example
View handler.lua
-- fictional example of a plugin's handler.lua using the PDK
function Handler:access(conf)
if kong.request.get_method() == "GET" then
-- retrieve the client request's path
local path = kong.request.get_path()
-- make the request to the service with the updated path
kong.service.request.set_path(path .. "/hello/world")
end
@thibaultcha
thibaultcha / luarocks-licenses.awk
Last active Jun 21, 2018
Extract licenses of installed LuaRocks modules to CSV
View luarocks-licenses.awk
#!/bin/awk -f
BEGIN {
while ("luarocks list --porcelain" | getline) {
i = 0
name = ""
license = ""
homepage = ""
c = "luarocks show " $1
while (c | getline) {
@thibaultcha
thibaultcha / metamethods.txt
Created Nov 30, 2015
Lua metamethods table
View metamethods.txt
Sean Conner
http://lua-users.org/lists/lua-l/2015-04/msg00033.html
5.1 5.2 5.3 function
__add * * * a + b
__sub * * * a - b
__mul * * * a * b
__div * * * a / b
__mod * * * a % b
__pow * * * a ^ b
@thibaultcha
thibaultcha / fortunecow.sh
Created Apr 8, 2015
Prints a random fortune in a random cow template
View fortunecow.sh
# Add this to your .profile
# $ fortunecow
function fortunecow() {
files=`cowsay -l | cut -d \: -f 2 | xargs echo`
arr=("${(s/ /)files}")
file=$arr[$RANDOM%$#arr+1]
fortune | cowsay -f $file
}
View keybase.md

Keybase proof

I hereby claim:

  • I am thibaultcha on github.
  • I am thibaultcha (https://keybase.io/thibaultcha) on keybase.
  • I have a public key whose fingerprint is C646 C91F 25DF 3CEA 6E44 F93C E1D4 1D2D DFA3 B99D

To claim this, I am signing this object:

View about.md

Irssi setup in 3 minutes

  1. Install irssi:
  1. Install the script manager (usefull to manage other scripts):
You can’t perform that action at this time.