This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## after clonning git, when we go for push, issue occur : Broken pipe | |
| ## we can resolve this by using below comman | |
| git remote set-url origin <PASTE GIT URL HERE> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## get url, to check system configuration | |
| https://jsonip.com/ | |
| ## get all system configuration | |
| http://14.143.254.58/index.json?t=1563949273618 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## install php | |
| sudo apt update | |
| sudo apt-get install apache2 | |
| ## start & enable apache2 | |
| sudo systemctl start apache2 | |
| sudo systemctl enable apache2 | |
| ## install php | |
| sudo apt-get install software-properties-common python-software-properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## UI Widgets | |
| https://www.jqwidgets.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mysql | |
| npm install --save mysql2 | |
| # install sequelize package for db connection | |
| npm install sequelize --save | |
| npm install sequelize-cli --save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ----------------------------------------------- | |
| -- Create a mySQL table to hold hashed passwords and random salt | |
| -- SQL create script for for table `users` | |
| ----------------------------------------------- | |
| CREATE TABLE IF NOT EXISTS `users` ( | |
| `user_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, | |
| `email` varchar(30) NOT NULL, | |
| `reg_date` date NOT NULL, | |
| `fname` varchar(20) DEFAULT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // secure hashing of passwords using bcrypt, needs PHP 5.3+ | |
| // see http://codahale.com/how-to-safely-store-a-password/ | |
| // salt for bcrypt needs to be 22 base64 characters (but just [./0-9A-Za-z]), see http://php.net/crypt | |
| $salt = substr(strtr(base64_encode(openssl_random_pseudo_bytes(22)), '+', '.'), 0, 22); | |
| // 2y is the bcrypt algorithm selector, see http://php.net/crypt | |
| // 12 is the workload factor (around 300ms on my Core i7 machine), see http://php.net/crypt | |
| $hash = crypt('foo', '$2y$12$' . $salt); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------------------------------------------------- | |
| -- jFontSize is an easy-to-use jQuery Plugin that adds A+ and A- buttons to your website, which alter the font size on sites with lager texts to improve user experience. | |
| -------------------------------------------------- | |
| -------- | |
| * URL | |
| -------------- | |
| http://jfontsize.com/ OR | |
| http://www.jstorage.info | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Create public key, if dont have | |
| # Follow below steps on terminal, | |
| 1. ssh-keygen -t rsa -b 4096 | |
| 2. cat ~/.ssh/id_rsa.pub | |
| #(Add public-ket to your gitlab account > ssh section) | |
| 3. ssh-add | |
| ## Now, Go in Root folder | |
| # Create `.gitignore` file,: contain list of files that should not move on gitlab. | |
| # Follow below steps on terminal, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| services: | |
| ### Workspace Utilities Container ########################### | |
| workspace: | |
| build: | |
| context: ./workspace | |
| args: |
NewerOlder