get base64 encoded key from
echo 'my' | base64 -d| #!/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'} |
| - 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 |
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.
| 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 |
| def fib(n): | |
| if n <= 2: | |
| return 1 | |
| else: | |
| return fib(n-1) + fib(n-2) |
| #!/bin/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
| #!/bin/sh | |
| # Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh | |
| # and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |
| #set 775 for all directories | |
| find . -type d -exec chmod 775 {} \; | |
| #set 664 for all files | |
| find . -type f -exec chmod 664 {} \; |
| #!/bin/bash | |
| HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1` | |
| dirs=('var' 'pub/media' 'pub/static') | |
| function fix_permission { | |
| sudo chmod -R +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" $1 | |
| sudo chmod -R +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" $1 | |
| } |