Skip to content

Instantly share code, notes, and snippets.

View grifx's full-sized avatar

Joris Garonian grifx

  • ProductReview.com.au
  • Sydney
  • X @wasquen
View GitHub Profile
@grifx
grifx / YCombinator.php
Last active December 17, 2015 13:00
The Little Schemer - Y combinator in PHP
<?php
/**
* “The Little Schemer” - Y combinator in PHP
* @author: Joris Garonian
*/
function Y($g) {
return call_user_func(function ($f) {
return $f($f);
}, function ($f) use ($g) {

This does NOT work with the OSX stand alone version of postman

How to use Faker with postman?

SET UP:

  • Copy paste (refreshFakerVariables) into: Manage Environments > Globals : refreshFakerVariables
  • Create a Request: http://localhost, and paste in the pre-request script (clearFakerVariables). Save it as: "clearFakerVariables"
  • Create a Request: http://localhost, and paste in the pre-request script (loadFaker). Save it as: "loadFaker"

Aurora Bug

Engine Aurora MySQL 5.7.12

DB instance class db.r3.4xlarge

Test

@grifx
grifx / 0000_hello_world.md
Last active May 25, 2025 01:48
Create your own roadmaps from roadmap.sh with checkboxes on GIST

Hello,

My SO is learning coding. I wanted a convenient way for her to consume the content from roadmap.sh.

I hope it can help someone else.

If you want your own roadmap:

  1. Fork or Copy-paste the md files you are interested in your own gist.
static int
ngx_http_lua_socket_tcp_setkeepalive_nats(lua_State *L)
{
ngx_http_lua_loc_conf_t *llcf;
ngx_http_lua_socket_tcp_upstream_t *u;
ngx_connection_t *c;
ngx_http_lua_socket_pool_t *spool;
ngx_str_t key;
ngx_queue_t *q;
{"took":1056,"errors":true,"items":[{"index":{"_index":"pr_listing__au_2025
-03-26-034116","_type":"_doc","_id":"0017149d-d173-3816-91de-93bc1252989e",
"_version":1,"result":"created","_shards":{"total":2,"successful":2,"failed
":0},"_seq_no":0,"_primary_term":1,"status":201}},{"index":{"_index":"pr_li
sting__au_2025-03-26-034116","_type":"_doc","_id":"0d85836e-f4cc-3069-997b-
0ffddb439066","_version":1,"result":"created","_shards":{"total":2,"success
ful":2,"failed":0},"_seq_no":0,"_primary_term":1,"status":201}},{"index":{"
_index":"pr_listing__au_2025-03-26-034116","_type":"_doc","_id":"0f44348e-9
4e4-3608-93d5-7ca2bfc5a2d1","_version":1,"result":"created","_shards":{"tot