Screenshot app for linux, ubuntu with FTP upload and arrow
https://snapcraft.io/screencloud
to have random string in generated file names use
{rnd_h}
good working pattern
%y-%m-%d_%H%M_{rnd_h}
Screenshot app for linux, ubuntu with FTP upload and arrow
https://snapcraft.io/screencloud
to have random string in generated file names use
{rnd_h}
good working pattern
%y-%m-%d_%H%M_{rnd_h}
xs < 576
sm > 576
md > 768
lg > 992
xxl > 1200
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 year"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType font/otf "access plus 1 year"
ExpiresByType font/woff "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType font/truetype "access plus 1 year"
ExpiresByType font/opentype "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
</IfModule>
## EXPIRES CACHING ##
query snippet bellows finds max length of columns in tables for specific database
SET @database = database();
# SET @database = 'customDatabaseName';
SET group_concat_max_len = 1024*1024;
SET @query = (SELECT CONCAT(GROUP_CONCAT(
CONCAT('(
SELECT \'',COLUMN_NAME,'\' AS `column`,
\'',TABLE_NAME,'\' AS `table_name`,
ROUND(LENGTH(`',COLUMN_NAME,'`) / \'',CHARACTER_MAXIMUM_LENGTH,'\' * 100) AS `utilization`,
\'',CHARACTER_MAXIMUM_LENGTH,'\' AS `max_length`,
LENGTH(`',COLUMN_NAME,'`) AS `length` ',
'FROM `',TABLE_SCHEMA,'`.`',TABLE_NAME,'` ORDER BY `length` DESC LIMIT 1)')
SEPARATOR ' UNION ALL '), ' ORDER BY `utilization` DESC ;') AS _SQL
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = @database);
PREPARE stmt1 FROM @query;
EXECUTE stmt1;
in phpstorm / idea display tables directly under database connection without database prefix node
to do that use gear in database panel and uncheck show intermediate nodes
https://www.jetbrains.com/help/idea/working-with-the-database-tool-window.html#a3db5b52
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="Lukasz Podolski"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_AUTHOR_NAME="$CORRECT_NAME"
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags
drag and sort scripts
http://gridstackjs.com/
https://bevacqua.github.io/dragula/
https://lukasoppermann.github.io/html5sortable/index.html
https://github.com/SortableJS/Sortable
https://catc.github.io/displace/#demo
https://lf2com.github.io/magnet.js/demo/demo_groups.html
https://shopify.github.io/draggable/
https://interactjs.io/
https://draggabilly.desandro.com/
https://kutlugsahin.github.io/smooth-dnd-demo/
https://stackoverflow.com/questions/6579844/how-does-zalgo-text-work
http://archives.miloush.net/michkap/archive/2006/02/17/533929.html
https://stackoverflow.com/questions/32921751/how-to-prevent-zalgo-text-using-php
https://stackoverflow.com/questions/11978912/how-to-protect-against-diacritics-such-as-zalgo-text?rq=1
zalago, diacritics
<?php
class A {private $x = 1;}
// Pre PHP 7 code
$getX = function() {return $this->x;};
$getXCB = $getX->bindTo(new A, 'A'); // intermediate closure
echo $getXCB();
// PHP 7+ code
$getX = function() {return $this->x;};
echo $getX->call(new A);