Skip to content

Instantly share code, notes, and snippets.

View caquino's full-sized avatar

Cassiano Aquino caquino

View GitHub Profile
# Configuration for Alacritty, the GPU enhanced terminal emulator
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
# env:
# TERM env customization.
#
# If this property is not set, alacritty will set it to xterm-256color.
#
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
FOR %%A IN (%*) DO (
PSEXEC.EXE \\%%A %windir%\system32\inetsrv\appcmd list requests > %TMP%\output-%%A.log 2>&1
)
FOR %%A IN (%*) DO (
TYPE %TMP%\output-%%A.log | FIND "REQUEST" >> %TMP%\output.log
DEL %TMP%\output-%%A.log
)
FOR /F "tokens=2,3 delims==:" %%A IN (%TMP%\output.log) DO ECHO %%A | SORT >> %TMP%\outputs.log
server {
listen 80;
server_name backend;
root /usr/share/nginx/www;
index index.html index.html;
location / {
header_filter_by_lua '
map $request_id $formatted_id {
"~*(?<p1>[0-9a-f]{8})(?<p2>[0-9a-f]{4})(?<p3>[0-9a-f]{4})(?<p4>[0-9a-f]{4})(?<p5>.*)$" "${p1}-${p2}-${p3}-${p4}-${p5}";
}
map $http_x_request_id $uuid {
default "${formatted_id}";
~* "${http_x_request_id}";
}
#!/usr/bin/env bash
DOWNBE=$(grep -E ' down;$' zerodowntime.conf | awk '{print $2}')
ACTIVEBE=$(grep -E 'upstream 127.0.0.1' zerodowntime.conf | grep -v 'down' | awk '{print $2}' | tr -d ';')
sed -i "s/\ down//g;s/${ACTIVEBE}/${ACTIVEBE} down/g" zerodowntime.conf
nginx -qt && nginx -s reload
# Origin whitelist
map $http_origin $allowed_origin {
default "false";
"~*\.?test\.com" "true";
"~*\.?example\.com" "true";
}
# Methods
map $request_method $cors {
@caquino
caquino / index-cached.shtml
Last active December 31, 2020 17:24
Poors Main ESI
Cached: <!--# echo var="date_local" -->
title:RokDC must haves
description:Originally found at https://docs.google.com/spreadsheets/d/1jeWnT__TQk4lWtPn1WJYFTmr1XZ9QVvTe6hxSQnhrys/edit#gid=0
// Auto Rifles
// The Forward Path
//FF/MKC
//notes:RokDC (must have - Season of Arrivals)
dimwishlist:item=1690783811&perks=2779035018,2458213969
//FF/Swash

Mars:

  • Sleeper Simulant
  • Polaris Lance

Menagerie:

  • Izanagi's Burden Catalyst (requires perfected chalice, which will take some weeks)

Titan:

  • Outbreak Perfected (Enemy of my Enemy)
  • Outbreak Perfected Catalyst (Minimum 3 weeks)
@caquino
caquino / keybase.md
Created May 9, 2019 11:18
keybase.md

Keybase proof

I hereby claim:

  • I am caquino on github.
  • I am syshero (https://keybase.io/syshero) on keybase.
  • I have a public key whose fingerprint is 6AF0 E880 9F65 1543 54A3 DF9E 5B4F A596 7A31 A61F

To claim this, I am signing this object: