https://community.bigbeartechworld.com/t/setting-up-openwrt-on-a-virtual-machine-with-proxmox/257
https://images.linuxcontainers.org/images/openwrt/23.05/amd64/default/20231123_11:57/rootfs.tar.xz
https://community.bigbeartechworld.com/t/setting-up-openwrt-on-a-virtual-machine-with-proxmox/257
https://images.linuxcontainers.org/images/openwrt/23.05/amd64/default/20231123_11:57/rootfs.tar.xz
| { | |
| "2001-01-01": "Confraternização Universal", | |
| "2001-02-27": "Carnaval", | |
| "2001-04-13": "Paixão de Cristo", | |
| "2001-04-21": "Tiradentes", | |
| "2001-05-01": "Dia do Trabalho", | |
| "2001-06-14": "Corpus Christi", | |
| "2001-09-07": "Independência do Brasil", | |
| "2001-10-12": "Nossa Sr.a Aparecida - Padroeira do Brasil", | |
| "2001-11-02": "Finados", | 
Below is the procedure to automate the ip ban of tor exit nodes with fail2ban.
sudo apt install fail2ban[tor]
| wget -qO- https://check.torproject.org/exit-addresses | grep ExitAddress | cut -d ' ' -f 2 | sed "s/^/deny /g; s/$/;/g" > /etc/nginx/conf.d/tor-block.conf; systemctl reload nginx | |
| #next add the following to your nginx site conf | |
| #In nginx you then just include the blacklist. | |
| include /etc/nginx/conf.d/tor-block.conf; | |
| #The file contains statements like this: | 
| Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]: | |
| General capabilities: dr1 delay hardware | |
| Threading capabilities: none | |
| Supported hardware devices: cuda cuda d3d11va d3d11va | |
| Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11 | |
| h264_nvenc AVOptions: | |
| -preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4) | |
| default 0 E..V....... | |
| slow 1 E..V....... hq 2 passes | |
| medium 2 E..V....... hq 1 pass | 
| <?php | |
| /** | |
| * UserFrosting (http://www.userfrosting.com) | |
| * | |
| * @link https://github.com/userfrosting/UserFrosting | |
| * @copyright Copyright (c) 2013-2017 Alexander Weissman | |
| * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License) | |
| */ | |
| namespace UserFrosting\Sprinkle\Core\Model\Relations; | 
| <?php | |
| namespace App\Console\Commands; | |
| use RuntimeException; | |
| use Laravel\Dusk\Console\DuskCommand; | |
| use Symfony\Component\Process\Process; | |
| use Symfony\Component\Process\ProcessBuilder; | |
| class DuskServeCommand extends DuskCommand { | 
| wget -qO- https://check.torproject.org/exit-addresses | grep ExitAddress | cut -d ' ' -f 2 | sed "s/^/deny /g; s/$/;/g" > /etc/nginx/conf.d/tor-block.conf; systemctl reload nginx | 
| function subsetSum(numbers, target, partial) { | |
| var s, n, remaining; | |
| partial = partial || []; | |
| // sum partial | |
| s = partial.reduce(function (a, b) { | |
| return a + b; | |
| }, 0); | 
| search-files() { | |
| local folder=$(test $# -eq 2 && echo "$1" || echo .) | |
| local query=$(test $# -eq 2 && echo "$2" || echo "$1") | |
| local IFS=$'\n' | |
| for f in $(find "$folder" -type f); do | |
| local result=$( | |
| cat "$f" | | |
| GREP_COLOR='01;32' egrep --color=always -n "$query" | | |
| GREP_COLOR='01;33' egrep --color=always "^\d+:" |