sudo apt-get install figlet
figlet gayan
Output:
When we upgrade our laravel version from 5.1 to 5.2 We must replace out $request parameter accsss with a different method, we need replace our current access method eg: $request->id to something new like $request->input('id). So we used to it using phpStorm reqular expression search/replace feature. We have tried following way:
text to replace : (\$request)(\->)([\w]+)
replacement : $1\->input(\'$3\'\)
#!/usr/bin/env node | |
var sum = 0; | |
var count = 0; | |
process.argv.forEach(function (val, index, array) { | |
if (index > 1) { | |
sum += parseInt(val); | |
count++; | |
} |
<?php | |
namespace App\Traits; | |
use Illuminate\Http\Request; | |
trait RestTrait | |
{ | |
/** |
1 sudo apt-get update
2 sudo apt-get upgrade
3 sudo apt-get install apache2
4 sudo apt-get install mysql-server
5 sudo a2enmod rewrite
6 sudo apt-get install libapache2-mod-php5.6
7 sudo add-apt-repository ppa:ondrej/php
8 sudo apt-get install php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-curl
9 sudo add-apt-repository ppa:ondrej/php5-5.6
10 sudo apt-get install php5-6
https://stackoverflow.com/a/17628243
The best solution to tackle this issue is to Globally ignore these files from all the git repos on your system. This can be done by creating a global gitignore file like:
vi ~/.gitignore_global
Adding Rules for ignoring files like:
`
Run Command df -Th
to find out the location info about usb drive
Unmount the drive
umount /media/gayan/{usb-name}
(the path where you seen in Mounted On
column)
dosfcsk -a /dev/{path-info}
(the path where you see in File System
column)
var a = "@[a b: 222] hi there @[bob barker:11123] @[kyle corn:123] @[kenny logins:123ab-123]" | |
var extract = a.match(/@\[(.*?)\]/g); // With @ symbol | |
var extract = a.match(/\[(\.*?)\]/g); // Without @ symbol | |
extract.map(function (item) { var tempValue = item; tempValue = tempValue.replace(/\[|\]|@/g, ''); var kv = ''; return tempValue; }); | |
extract.map(function (item) { | |
var tempValue = item; | |
tempValue = tempValue.replace(/\[|\]|@/g, ''); | |
var kv = tempValue.split(':'); |
Fetch remote branches to your local repository.
git fetch origin QA
git fetch origin master
Fetch the branch that you need to merge
git fetch origin branch_that_you_want_to_merge