git diff --name-only --diff-filter=U
Author: David Raleche
Twitter : https://twitter.com/DavidRaleche
Newsletter : Subscribe here
Store : https://david.raleche.com/shop
/** * Convert to utf-8 values of an (multi-dimensional) array * * @param $array * * @return $array */ public function utf8Converter($array) { array_walk_recursive($array, function (&$item, $key) { $item = utf8_encode($item); }); return $array; }
CORS Solution for NGINX SWAGGER
set $origin $http_origin; if ($origin !~ '^https?://(docs-mapi)\.4over\.com) { set $origin 'https://yourdomain.com'; } add_header 'Access-Control-Allow-Origin' "$origin" always; add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, PATCH, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'Authorization, Access Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, api_key' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
Git list of conflicted files
git diff --name-only --diff-filter=U
sudo repoquery –list php72-php-pecl-xdebug.x86_64
/etc/opt/remi/php72/php.d/15-xdebug.ini
/opt/remi/php72/root/usr/bin/debugclient
/opt/remi/php72/root/usr/lib64/php/modules/xdebug.so
/opt/remi/php72/root/usr/share/doc/pecl/xdebug
/opt/remi/php72/root/usr/share/doc/pecl/xdebug/CREDITS
/opt/remi/php72/root/usr/share/doc/pecl/xdebug/LICENSE
/opt/remi/php72/root/usr/share/doc/pecl/xdebug/README.rst
/opt/remi/php72/root/usr/share/doc/pecl/xdebug/contrib
/opt/remi/php72/root/usr/share/doc/pecl/xdebug/contrib/tracefile-analyser.php
/opt/remi/php72/root/usr/share/doc/pecl/xdebug/contrib/xt.vim
/opt/remi/php72/root/usr/share/doc/pecl/xdebug/xdebug.ini
/var/opt/remi/php72/lib/pear/pkgxml/php72-php-pecl-xdebug.xml
Mysql Tables sizes
select table_schema, sum((data_length+index_length)/1024/1024) AS MB from information_schema.tables group by 1;
GIT pull coworker branch
git remote add coworker git://path/to/coworkers/repo.git
git fetch coworker
git checkout --track coworker/foo
This will setup a local branch foo
, tracking the remote branch coworker/foo
. So when your co-worker has made some changes, you can easily pull them:
git checkout foo
git pull
Git Force pull
I think this is the right way:
git fetch --all
Then, you have two options:
git reset --hard origin/master
OR If you are on some other branch:
git reset --hard origin/<branch_name>
Raleche Ultra Fast – Quick logs
Top 6 Articles You Must Read
Web design encompasses many different skills and disciplines in the production and maintenance of websites. The different areas of web design include web graphic design; interface design; authoring, including standardised code.