Skip to content

Instantly share code, notes, and snippets.

View AbnirHencazs's full-sized avatar
🚀

Brian Sanchez AbnirHencazs

🚀
View GitHub Profile
@AbnirHencazs
AbnirHencazs / nginx.conf
Created March 23, 2021 17:57 — forked from morhekil/nginx.conf
Full request/response body logging in nginx
http {
log_format bodylog '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time '
'<"$request_body" >"$resp_body"';
lua_need_request_body on;
set $resp_body "";
body_filter_by_lua '
@AbnirHencazs
AbnirHencazs / TiaControllerTest.php
Created February 16, 2021 15:48
La mejor prueba que he escrito (hasta ahora)
public function test_tia_show()
{
$this->withoutExceptionHandling();
$user = User::factory()->create();
Breakdown::factory()->create([
'tia_id' => $tia = Tia::factory()->create([
'user_id' => $user
])
]);
Route::factory()->create([
/*var arrayN = [ 3, 2, 0, 1 ];
var string = "cdeo"*/
/*var arrayN = [ 5, 2, 0, 1, 6, 4, 8, 3, 7 ]
var string = "cdeenetpi"*/
var arrayN = [ 4, 3, 0, 1, 2, 5 ]
var string = "bytdag"
const solution = ( string, arrayN ) => {
var word = string[0]