dev-master
9999999-devSome PHP and bash tools
MIT
The Requires
- php >=5.3.2
php bash command line apache linux nginx cmd
Wallogit.com
2017 © Pedro Peláez
Some PHP and bash tools
This project contains useful tools to improve my work. :), (*2)
This tools are available at packagist.org, so you can use composer to download this library and all dependencies., (*4)
(add to require section in your composer.json file), (*5)
{
"require": {
"m4rc1no5/tools": "dev-master"
}
}
This script send and add your public SSH Key to Remote Server., (*7)
bash/AddSshKey/addSshKey.sh marceen 123.123.123.123 222
variables: - marceen - username - 123.123.123.123 - hostname - 222 - port, (*8)
If remote server (or your machine) doesn't have ~/.ssh folder You can create it by command:, (*9)
ssh-keygen -t rsa
This script creates localhost website folder and adds virtual domain with sufix .lh, (*11)
Before run this script You must create config.sh file from config.sh.default! This file is in folder: bash/AddVirtualHostApache/, (*12)
Run this command, (*13)
sudo bash/AddVirtualHostApache/addVirtualHostApache.sh test
will create local domain test.lh., (*14)
After this script You can enter browser and write adress test,lh and You will see "hello test!" on screen. :), (*15)
This script creates localhost website folder and adds virtual domain with sufix .lh, (*17)
Before run this script You must create config.sh file from config.sh.default! This file is in folder: bash/AddVirtualHostNginx/, (*18)
Run this command, (*19)
sudo bash/AddVirtualHostApache/addVirtualHostNginx.sh test
will create local domain test.lh., (*20)
After this script You can enter browser and write adress test,lh and You will see "hello test!" on screen. :), (*21)
Convert string from underscore to camelcase, (*23)
use m4rc1no5_tools\Convert\String\UnderscoreToCamelcase; $field_name = "this_is_foo_bar"; $camelcase_field_name = UnderscoreToCamelcase::underscoreToCamelcase($field_name); // return thisIsFooBar
Some PHP and bash tools
MIT
php bash command line apache linux nginx cmd