Here are the values of YOURLS_LANG
people use in their YOURLS config.php
(real life data fetch on April 2022)
Locale |
---|
af_ZA |
ar |
ar-SA |
ar_AR |
ar_EG |
Here are the values of YOURLS_LANG
people use in their YOURLS config.php
(real life data fetch on April 2022)
Locale |
---|
af_ZA |
ar |
ar-SA |
ar_AR |
ar_EG |
As of writing and with YOURLS 1.8.3-dev, expectedly works with http(s)://sho.rt/ozh
but fail with http(s)://www.sho.rt/ozh
(and logically if YOURLS_SITE has www.
(eg http://www.sho.rt
) the failures and success get inverted)
$ phpunit --filter ShortURL_Is_Shorturl_Tests
YOURLS installed, starting PHPUnit
PHPUnit 8.5.14 by Sebastian Bergmann and contributors.
Runtime: PHP 8.0.1 with Xdebug 3.0.2
Configuration: D:\home\planetozh\ozh.in\phpunit.xml
<?php | |
// Some simple benchmark functions | |
function starttime() { | |
$r = explode( ' ', microtime() ); | |
$r = $r[1] + $r[0]; | |
return $r; | |
} | |
function endtime($starttime) { |
G : search current image in Google reverse search
javascript:%20(function%20()%20%7Burl%20=%20location.href;location.href%20=%20'https://www.google.com/searchbyimage?&image_url='+url;%7D());
R : remove all redirects in links
javascript:(function(){var%20k,x,t,i,j,p;%20for(k=0;x=document.links[k];k++){t=x.href.replace(/[%]3A/ig,':').replace(/[%]2f/ig,'/');i=t.lastIndexOf('http');if(i>0){%20t=t.substring(i);%20j=t.indexOf('&');%20if(j>0)t=t.substring(0,j);%20p=/https?\:\/\/[^\s]*[^.,;'">\s\)\]]/.exec(unescape(t));%20if(p)%20x.href=p[0];%20}%20else%20if%20(x.onmouseover&&x.onmouseout){x.onmouseover();%20if%20(window.status%20&&%20window.status.indexOf('://')!=-1)x.href=window.status;%20x.onmouseout();%20}%20x.onmouseover=null;%20x.onmouseout=null;%20}})();
>>> print(base64.urlsafe_b64encode(b'\x0c\xdfk\xfc')) | |
b'DN9r_A==' | |
>>> print((215968764).to_bytes(4, byteorder='big')) | |
b'\x0c\xdfk\xfc' |
In directory :
$ wc -l `find . -type f -name '*php'`
Result :
53 ./admin/admin-ajax.php
324 ./admin/index.php
$ docker pull yourls
wget https://raw.githubusercontent.com/docker-library/docs/be1a84b44ec3c028aa0ac5a9c8e413e43dfe05e4/yourls/stack.yml
(paste is Shift+Ins)stack.yml
(or use $ vim stack.yml
) and replace https://example.com
with the above URL$ docker-compose -f stack.yml up
You can easily do a baseline test of whether your dependencies support PHP 8 using Composer's platform config by running for example:
composer config platform.php 8.0.5
# Checks whether latest versions of your dependencies (according to your
# version constraints) allow PHP 8
composer update --dry-run
# Checks whether current versions of your deps allow PHP 8
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
Here are real life values of YOURLS_URL_CONVERT
encountered in the wild:
(reminder: only 36
and 62
are acceptable values)
convert |
---|
0 |
0123456789 |
0123456789abcdefghijklmnopqrstuvwxyz-_. |