Skip to content

Instantly share code, notes, and snippets.

View jkanclerz's full-sized avatar
🎯
Focusing

Jakub Kanclerz jkanclerz

🎯
Focusing
View GitHub Profile
@jkanclerz
jkanclerz / table_size
Created April 30, 2018 13:22
calculate table size
SELECT CONCAT(table_schema, '.', table_name),
CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows,
CONCAT(ROUND(data_length / ( 1024 * 1024 ), 2), 'M') DATA,
CONCAT(ROUND(index_length / ( 1024 * 1024 ), 2), 'M') idx,
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 ), 2), 'M') total_size,
ROUND(index_length / data_length, 2) idxfrac
FROM information_schema.TABLES
ORDER BY data_length + index_length DESC
LIMIT 10

Animated SVG Avatar

Created a login form with an SVG avatar that responds to the input in the email field. Used the GSAP TweenMax library + GSAP's MorphSVG plugin for the animating.

Email validation is very simple and crude just for the purposes of getting this prototype working.

A Pen by Darin on CodePen.

License.

- instalacja oprogramowania
- instalacja z repo
- nowe repo do systemu
+ EPEL
+ EPEL repo
+ sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+ inne php + mysql server
+ REMI repo
+ https://rpms.remirepo.net/enterprise/remi-release-7.rpm
@jkanclerz
jkanclerz / notify_about_deployement.sh
Last active January 15, 2024 16:33
Slack's notify about deployment
#!/bin/bash
ENVIRONMENT=${ENVIRONMENT:-'STAGING'}
LINK=${LINK:-'https://your-link.local'}
JIRA=${JIRA:-'https://jira.local'}
SLACK_URL=${SLACK_URL:='https://hooks.slack.com/services/your-slack-url'}
USERNAME='Alf'
USER_ICON=':alf:'
CHANNEL=${CHANNEL:-'#testit'}