I hereby claim:
- I am JanTvrdik on github.
- I am jantvrdik (https://keybase.io/jantvrdik) on keybase.
- I have a public key whose fingerprint is E42B 2FFA 3D04 F044 087B BB87 424D C177 9989 AB3A
To claim this, I am signing this object:
| localhost:80, localhost:443 { | |
| root C:\Projects | |
| log C:\Web\Soft\Caddy\access.log | |
| errors C:\Web\Soft\Caddy\errors.log | |
| tls { | |
| # see https://gist.github.com/JanTvrdik/d22f53604f3bfd78df3863cf1ad87b8a | |
| load C:\Web\Soft\Caddy\certificates | |
| } |
| #!/usr/bin/env bash | |
| set -o errexit -o pipefail -o nounset | |
| IFS=$'\n\t' | |
| ROOT="$(dirname $0)/root" | |
| if [[ -f $ROOT.key || -f $ROOT.crt ]]; then | |
| echo "Root certificate already exist" | |
| exit 1 | |
| fi |
| # https://trac.ffmpeg.org/wiki/Capture/Desktop | |
| # https://ffmpeg.org/ffmpeg-devices.html#gdigrab | |
| # https://trac.ffmpeg.org/wiki/Encode/H.264#LosslessH.264 | |
| # WARNING: THE RECORDING WILL STOP WHEN UAC POPUP IS SHOWN | |
| C:\SoftPortable\ffmpeg\bin\ffmpeg ` | |
| -f gdigrab -framerate 30 -draw_mouse 1 -i desktop ` | |
| -c:v libx264 -qp 0 -pix_fmt yuv444p -preset ultrafast ` | |
| "C:\Videos\recording-$(get-date -f yyyy-MM-dd-Hmss).mp4" |
| <?php | |
| $runCount = 1000; | |
| $dataSets = [ | |
| 'setA' => [$runCount, 123], | |
| ]; | |
| $tests = [ | |
| 'testA' => function ($count, $n) { |
| DELIMITER ;; | |
| DROP PROCEDURE IF EXISTS `normalize_foreign_key_name`;; | |
| CREATE PROCEDURE `normalize_foreign_key_name`(IN `param_database_name` varchar(100) CHARACTER SET 'ascii', IN `param_table_name` varchar(100) CHARACTER SET 'ascii', IN `param_column_name` varchar(100) CHARACTER SET 'ascii') | |
| BEGIN | |
| DECLARE var_constraint_name_current VARCHAR(100); | |
| DECLARE var_constraint_name_new VARCHAR(100); | |
| DECLARE var_constraint_target_table VARCHAR(100); |
| #!/bin/env bash | |
| while read dir | |
| do | |
| sh -c "cd \"$dir\" && echo && pwd && $*" | |
| done |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** | |
| * @param string $file | |
| * @param callable $tryLoad (string $file, mixed & $data): bool | |
| * @param callable $isExpired (string $file): bool | |
| * @param callable $fallback (string $file): string | |
| * @return mixed | |
| */ | |
| function loadCacheFile($file, $tryLoad, $isExpired, $fallback) |
| # put this in ~/.bashrc | |
| export SSH_AUTH_SOCK=/tmp/.ssh-socket | |
| ssh-add -l > /dev/null | |
| if [ $? = 2 ]; then | |
| rm -f $SSH_AUTH_SOCK | |
| echo Starting new ssh-agent... | |
| eval $(ssh-agent -a $SSH_AUTH_SOCK) > /dev/null | |
| ssh-add && echo "ssh-agent set up successfully with the following keys:" && ssh-add -l | |
| fi |
Test __construct:
StaticRouter 21 ms +0 %
Route + RouteList 1392 ms +6529 %
Route + global filter 244 ms +1062 %