I hereby claim:
- I am pierstoval on github.
- I am pierstoval (https://keybase.io/pierstoval) on keybase.
- I have a public key ASDMqGJzpJ2OMQa9tDDwznVYnbzPVW7K4oDlKUBliBawWAo
To claim this, I am signing this object:
| #!/bin/bash | |
| # Author: Joel Nothman | |
| # Optimized by Pierstoval | |
| # Under BSD-2 license | |
| # See https://github.com/jnothman/git-squash | |
| # See https://github.com/Pierstoval/git-squash | |
| usage() { | |
| echo "" | |
| echo Usage: git squash '[-m <commit msg>] [-a|--append] [-f|--full] <base>' |
| <?php | |
| $number = "\d*(?:\.\d+)?"; // It's a reference to use in other cases that matches any kind of number/float | |
| $width = "(?<w>(?:$number)?%?)?"; // This is the first part, the width | |
| $height = "(?:x(?<h>(?:$number)?%?))?"; // Here is the height, the same as "width" but starting with an "x" | |
| $aspect = "[!><@^]"; // These are the different filters one can use to stretch, shrink, etc. | |
| $size = "$width$height"; // To match any size we need width and height at least (aspect comes later) |
I hereby claim:
To claim this, I am signing this object:
| pierstoval@PIERSTOVAL /mnt/e/dev/www/sandbox $ ./test.bash | |
| KO for key ALLUSERSPROFILE | |
| KO for key APPDATA | |
| KO for key CLINK_DIR | |
| KO for key CommonProgramFiles | |
| KO for key CommonProgramW6432 | |
| KO for key COMPUTERNAME | |
| KO for key ComSpec | |
| KO for key FPS_BROWSER_APP_PROFILE_STRING |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <style type="text/css"> | |
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| iframe { | |
| overflow: hidden; | |
| border: solid 1px black; |
| REM Batch file for Windows only | |
| REM This script takes images from a | |
| SET EXTENSION=jpg | |
| REM This is NOT an usual glob pattern. | |
| REM This example matches 4 digits, like "DSC_0243". | |
| SET PATTERN=DSC_%04d" | |
| ffmpeg.exe -r 24 -i %PATTERN%.%EXTENSION% -s hd720 -vcodec libx264 out.mp4 |
| // LOOOTS of stuff there: https://github.com/denysdovhan/wtfjs | |
| // From https://www.destroyallsoftware.com/talks/wat | |
| [] + []; // empty string | |
| [] + {}; // [object Object] | |
| {} + []; // 0 | |
| {} + {}; // NaN | |
| Array(16); // ,,,,,,,,,,,,,,,, (array with 16 undefined elements) | |
| Array(16).join('wat'); // watwatwatwatwatwatwatwatwatwatwatwatwatwatwatwat (array with 16 "wat" strings) |
| MYSQL_VERSION=8.0 | |
| # Check if the "mysql" container is running | |
| number_of_running_containers=$(docker ps --filter "name=mysql" | grep -w "mysql" | wc -l) | |
| if [ $number_of_running_containers = "1" ] ; then | |
| echo "MySQL is already running:" | |
| docker ps --filter "name=mysql" | |
| echo "You can stop it by executing \"docker stop mysql\"" |
| # Use it like this: | |
| # | |
| # $ printf $(_TITLE) "Something in green" "The message" | |
| # | |
| # This will output something like this: | |
| # | |
| # [Something in green] The message | |
| # | |
| # (of course, with proper colors) | |
| _TITLE := "\033[32m[%s]\033[0m %s\n" # Green text |