This file contains 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
if ($ssl_protocol = "") { | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
if (!-f $request_filename) { | |
rewrite ^(.*) /index.php?$1 last; | |
} |
This file contains 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
https://graph.facebook.com/v2.5/{fbid}/picture?width=250&height=250&type=normal&redirect=true |
This file contains 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
; with sane limits | |
xdebug.var_display_max_depth = 5 | |
xdebug.var_display_max_children = 256 | |
xdebug.var_display_max_data = 1024 | |
; with no limits | |
; (maximum nesting is 1023) | |
xdebug.var_display_max_depth = -1 | |
xdebug.var_display_max_children = -1 |
This file contains 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
update table set datefield = datefield + interval 1 day; |
This file contains 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
SELECT field, COUNT(*) c FROM table GROUP BY field HAVING c > 1 |
This file contains 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
chown -R user:group folder |
This file contains 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
$view = $this->load->view('some_view', '', true); |
This file contains 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
brew cask install google-chrome |
This file contains 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
1. download PECL: | |
$ curl -O https://pear.php.net/go-pear.phar | |
2.install PECL in MAMP PHP folder: | |
$ sudo php -d detect_unicode=0 go-pear.phar | |
!!! make sure the installation directories look like this: !!! | |
1. Installation base ($prefix) : /Applications/MAMP/bin/php/php7.2.14 | |
2. Temporary directory for processing : /tmp/pear/install |
This file contains 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
; clone the repo | |
git clone <repository> | |
; make sure HEAD is master (optional) | |
git checkout master | |
; make a local backup of master branch | |
git branch -m master master_backup | |
; push local backup branch to server | |
git push -u origin master_backup | |
; checkout master using --orphan | |
git checkout --orphan master |