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
set-option -g default-shell /bin/zsh |
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 -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'aa96f26c2b67226a324c27919f1eb05f21c248b987e6195cad9690d5c1ff713d53020a02ac8c217dbf90a7eacc9d141d') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Introduction | |
PHP 7, which was released on December 3, 2015, promises substantial speed improvements over previous versions of the language, along with new features like scalar type hinting. This guide explains how to quickly upgrade an Apache or Nginx web server running PHP 5.x (any release) to PHP 7, using community-provided packages. | |
Warning: As with most major-version language releases, it's best to wait a little while before switching to PHP 7 in production. In the meanwhile, it's a good time to test your applications for compatibility with the new release, perform benchmarks, and familiarize yourself with new language features. | |
If you have installed phpMyAdmin for database management, it is strongly recommended that you wait for official CentOS PHP 7 packages before upgrading, as phpMyAdmin packages do not yet support the upgrade. If you're running any other services or applications with active users, it is safest to first test this process in a staging environment. | |
Prerequisites | |
This guide assumes t |
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
var bad = /(?=.{8,}).*/; | |
//Alpha Numeric plus minimum 8 | |
var good = /^(?=\S*?[a-z])(?=\S*?[0-9])\S{8,}$/; | |
//Must contain at least one upper case letter, one lower case letter and (one number OR one special char). | |
var better = /^(?=\S*?[A-Z])(?=\S*?[a-z])((?=\S*?[0-9])|(?=\S*?[^\w\*]))\S{8,}$/; | |
//Must contain at least one upper case letter, one lower case letter and (one number AND one special char). | |
var best = /^(?=\S*?[A-Z])(?=\S*?[a-z])(?=\S*?[0-9])(?=\S*?[^\w\*])\S{8,}$/; | |
$('#password').on('keyup', function () { | |
var password = $(this); |
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
# ---------------------- | |
# Git Aliases | |
# ---------------------- | |
alias ga='git add' | |
alias gaa='git add .' | |
alias gaaa='git add -A' | |
alias gb='git branch' | |
alias gbd='git branch -d ' | |
alias gc='git commit' | |
alias gcm='git commit -m' |
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
how to install mysql in linux | |
https://community.nitrous.io/docs/mysql | |
```sh | |
mysql --version | |
sudo apt-get update | |
sudo apt-get install mysql-server libapache2-mod-auth-mysql | |
sudo mysql_install_db |
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
Problem 1 | |
- Installation request for laravel/framework v5.2.16 -> satisfiable by laravel/framework[v5.2.16]. | |
- laravel/framework v5.2.16 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. | |
To enable extensions, verify that they are enabled in those .ini files: | |
- /etc/php/7.0/cli/php.ini | |
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini | |
- /etc/php/7.0/cli/conf.d/10-opcache.ini | |
- /etc/php/7.0/cli/conf.d/10-pdo.ini | |
- /etc/php/7.0/cli/conf.d/20-calendar.ini |
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 | |
Route::get('/{vue_capture?}', function () { | |
return view('home'); | |
})->where('vue_capture', '[\/\w\.-]*'); |
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
response_init { | |
"response":"[object] (stdClass: {\"result\":2314,\"source\":\"JEL\",\"error\":\"Domain [ShabakeGostar] ascii: [ShabakeGostar] not available.\",\"params\":{\"session\":\"3cx3ef297d6863da59b485c24a3b4037aee\",\"actionkey\":\"\",\"settings\":{\"engine\":\"php5.4\",\"sslstate\":false},\"domain\":\"ShabakeGostar\",\"appid\":\"1dd8d191d38fff45e62564fcf67fdcd6\"},\"methodName\":\"createEnv\"})", | |
"result":0, | |
"debug":"[object] (stdClass: {\"time\":2808,\"cpu\":{\"time\":1295,\"usage\":\"1\"}})" | |
} |