- Disable The System Integrity for access the relevant system database.
Reboot your Mac and hold Cmd+R on startup. This will bring up the Recovery Mode.
Open Utility -> Terminal from the menu bar and type csrutil disable
Reboot.
| <?php | |
| // Get UnixTime With php | |
| // with this function , you can get the current unix time in php | |
| function getUnixtime(){ | |
| $seconds = microtime(true); // true = float, false = weirdo "0.2342 123456" format | |
| if which codecept; then | |
| echo ">>> You have already codeception <<<" | |
| else | |
| if which composer; then | |
| composer global require codeception/codeception |
| # Shell custom schema | |
| # export PS1='\W > ' | |
| PS1='\[\033[01;34m\]\W > \033[0m' | |
| # Artisan short commands | |
| alias art='php artisan' | |
| alias tinker='php artisan tinker' | |
| # Php Serve alias serve |
| #!/bin/bash | |
| # @author Alireza Josheghani <[email protected]> | |
| # @since 26 Dec 2016 | |
| # @package Laravel queue service installer | |
| # download the source form github | |
| if [ ! -f develop.tar.gz ]; then | |
| wget https://github.com/iamalirezaj/laravel_queue_service/archive/develop.tar.gz | |
| fi |
| #!/bin/bash | |
| wget http://de1.php.net/get/php-7.0.0.tar.bz2/from/this/mirror | |
| tar -xvjf mirror | |
| cd php-7.0.0/ | |
| ./configure \ | |
| --with-readline \ | |
| --enable-pcntl \ | |
| --with-gettext \ | |
| --enable-phpdbg \ | |
| --enable-phpdbg-webhelper \ |
Reboot your Mac and hold Cmd+R on startup. This will bring up the Recovery Mode.
Open Utility -> Terminal from the menu bar and type csrutil disable
Reboot.
| Remove all <none> images on docker: | |
| ```bash | |
| docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") | |
| ``` |
| { | |
| "go.formatTool": "goimports", | |
| "go.useLanguageServer": true, | |
| "files.exclude": { | |
| "**/.idea": true | |
| }, | |
| "workbench.startupEditor": "none", | |
| "editor.fontSize": 16, | |
| "editor.wordWrap": "on", | |
| "window.zoomLevel": 0, |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net" | |
| "net/http" | |
| "os" |