Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
#!/bin/bash | |
### Install PHP 7.1 on CentOS 7.3 64Bits | |
### http://www.shaunfreeman.name/compiling-php-7-on-centos/ | |
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ | |
yum -y install git gcc gcc-c++ libxml2-devel pkgconfig openssl-devel bzip2-devel curl-devel libpng-devel libjpeg-devel | |
yum -y install libXpm-devel freetype-devel gmp-devel libmcrypt-devel mariadb-devel aspell-devel recode-devel libpqxx-devel | |
yum -y install autoconf bison re2c libicu-devel libwebp-devel wget unzip net-tools libc-client-devel libpng12-devel | |
yum -y install libxslt-devel |
Getting started:
Related tutorials:
sed "s/,/\\`echo -e '\n\r'`/g" |
screen # Starts a screen session | |
<C-a d> # Detaches from the screen session | |
screen -r # Reattaches to a detached session | |
screen -S paco # Starts a screen session called "paco" | |
screen -r paco # Reattaches to a detached session called "paco" |
if ($request_uri = /) { | |
set $test A; | |
} | |
if ($host ~* teambox.com) { | |
set $test "${test}B"; | |
} | |
if ($http_cookie !~* "auth_token") { | |
set $test "${test}C"; |
/** | |
* Sum two times values HH:mm:ss with javascript | |
* Usage: | |
* > addTimes('04:20:10', '21:15:10'); | |
* > "25:35:20" | |
* | |
* @param {string} start | |
* @param {string} end | |
* @returns {String} | |
*/ |
#!/bin/sh | |
# Small Bitbucket shell script for deployment PHP composer project | |
# @author José Luis Quintana <http://git.io/joseluisq> | |
# Note: It's necessary to add some hook in repository settings. | |
# Settings | |
REPLOY_REPO_NAME=repository-name | |
DEPLOY_PATH=/username/www/project/ |
function number_format(number, decimals, decPoint, thousandsSep){ | |
decimals = decimals || 0; | |
number = parseFloat(number); | |
if(!decPoint || !thousandsSep){ | |
decPoint = '.'; | |
thousandsSep = ','; | |
} | |
var roundedNumber = Math.round( Math.abs( number ) * ('1e' + decimals) ) + ''; |
#!/bin/sh | |
# Tiny Github deployment bash script | |
# @author José Luis Quintana <quintana.io> | |
# @datetime 2016-10-22 | |
# Settings | |
REPO_PATH=username/repo-name | |
DEPLOY_PATH=/deploy/path/on/my/server |