| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Symfony\Component\HttpFoundation\Cookie; | |
| use Illuminate\Contracts\Encryption\Encrypter; | |
| use Illuminate\Session\TokenMismatchException; | |
| class VerifyCsrfToken { |
| <?php | |
| if (!function_exists('array_chunk_by')) { | |
| /** | |
| * Splits an array into chunks using a callback function. | |
| * | |
| * Chunks an array into arrays by iteratively applying the $callback function | |
| * to the elements of the $array. | |
| * | |
| * @see https://rlaanemets.com/post/show/group-array-by-adjacent-elements-in-javascript |
error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
sudo apt-get install libnss3error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
sudo apt-get install libxss1| """Download sentry data. | |
| usage: | |
| python download_sentry_data.py <org>/<project> <api_key> | |
| """ | |
| import requests | |
| import csv | |
| import sys | |
| if __name__ == '__main__': |
| <html> | |
| <head> | |
| <style> | |
| .hide { display:none; } | |
| /* Optional: The following css just makes sure the twitch video stays responsive */ | |
| #twitch { | |
| position: relative; | |
| padding-bottom: 56.25%; /* 16:9 */ | |
| padding-top: 25px; |
-
Ubuntu WSL2 must be already installed in C: system drive and user should be able to call windows binaries like
wsl.exefrom bash. -
We will install Alpine WSL2 distro in an external partition/disk:
-
Download Alpine.zip from here: https://github.com/yuk7/AlpineWSL/releases/
-
Extract the files in an external partition/disk. (for example D:\Alpine)
-
Table of Contents:
Running a public server from WSL 2
-
In WSL, make sure your server is using IPv4.
Java server default to ipv6, -Djava.net.preferIPv4Stack=true
In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.
Hope it helps future users to better understand this two libraries internals and functionality.
