This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
namespace App\Http\Api\Filters; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Http\Request; | |
abstract class Filter | |
{ | |
protected Request $request; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# keys_zone is STATIC | |
proxy_cache_path /tmp/nginx/cache levels=1:2 keys_zone=STATIC:50m inactive=365d max_size=1g; | |
server { | |
listen *:80; | |
server_name proxy.localhost; | |
location / { | |
proxy_cache_methods GET POST; | |
proxy_cache STATIC; # keys zone name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Be sure that https://github.com/bramus/monolog-colored-line-formatter is installed | |
* | |
* composer require bramus/monolog-colored-line-formatter '~2.0' | |
*/ | |
class L { | |
private static $logger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data segment | |
; add your data here! | |
pkey db "press any key...$" | |
bitmap dw 0112h, 0200h, 0f00h, 0ff0h, 0100h, 0150h, 0550h, 0354h,0100h, 0150h, 0550h, 0354h, 0112h, 0200h, 0000h, 0000h, | |
dw 0100h, 0150h, 0550h, 0354h, 0112h, 0200h, 0000h, 0000h,0112h, 0200h, 0000h, 0000h, 0100h, 0150h, 0550h, 0354h | |
data ends |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/zsh | |
tail -f $1 \ | |
| GREP_COLORS='mt=01;32' egrep --color=always '[a-zA-Z]*\.DEBUG|' \ | |
| GREP_COLORS='mt=01;34' egrep --color=always '[a-zA-Z]*\.INFO|' \ | |
| GREP_COLORS='mt=01;33' egrep --color=always '[a-zA-Z]*\.WARNING|' \ | |
| GREP_COLORS='mt=01;39;41;' egrep --color=always '[a-zA-Z]*\.CRITICAL|'\ | |
| GREP_COLORS='mt=01;31' egrep --color=always '[a-zA-Z]*\.ERROR|' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -e "\e[33m ▄███████▄ \e[0m" "\e[31m \e[3m ▄█\e[31m██\e[3m███\e[31m▄ " "\e[32m \e[3m ▄█\e[32m██\e[3m███\e[32m▄ " "\e[34m \e[3m ▄█\e[34m██\e[3m███\e[34m▄ " "\e[35m \e[3m ▄█\e[35m██\e[3m███\e[35m▄ " "\e[36m \e[3m ▄█\e[36m██\e[3m███\e[36m▄ " | |
echo -e "\e[33m▄█████████▀▀\e[0m" "\e[31m▄\e[0m█▀█\e[31m██\e[0m█▀█\e[31m██▄" "\e[32m▄\e[0m█▀█\e[32m██\e[0m█▀█\e[32m██▄" "\e[34m▄\e[0m█▀█\e[34m██\e[0m█▀█\e[34m██▄" "\e[35m▄\e[0m█▀█\e[35m██\e[0m█▀█\e[35m██▄" "\e[36m▄\e[0m█▀█\e[36m██\e[0m█▀█\e[36m██▄" | |
echo -e "\e[33m███████▀ \e[0m" "\e[31m█\e[0m▄▄█\e[31m██\e[0m▄▄█\e[31m███" "\e[32m█\e[0m▄▄█\e[32m██\e[0m▄▄█\e[32m███" "\e[34m█\e[0m▄▄█\e[34m██\e[0m▄▄█\e[34m███" "\e[35m█\e[0m▄▄█\e[35m██\e[0m▄▄█\e[35m███" "\e[36m█\e[0m▄▄█\e[36m██\e[0m▄▄█\e[36m███" | |
echo -e "\e[33m███████▄ \e[0m" "\e[31m█\e[3m███\e[31m██\e[3m███\e[31m███" "\e[32m█\e[3m███\e[32m██\e[3m███\e[32m███" "\e[34m█\e[3m███\e[34m██\e[3m███\e[34m███" "\e[35m█\e[3m███\e[35m██\e[3m███\e[35m███" "\e[36m█\e[3m███ |