start new:
tmux
start new with session name:
tmux new -s myname
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.5.13 on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <barryvdh@gmail.com> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); |
Requires:
Homebrew (http://mxcl.github.io/homebrew/)
Ruby
Verify Homebrew is not sick:
brew doctor
| <?php | |
| // Get an array of all files in a directory. | |
| $files = File::files('path_to_dir'); | |
| // Get all of the files from the given directory (recursive). | |
| $files = File::allFiles('path_to_dir'); | |
| // Get all of the directories within a given directory. | |
| $files = File::directory('path_to_dir'); |
/Volumes/Untitled.With that volume in place, and with the macOS installer sitting in /Applications/Install\ macOS\ [VERSION].app,
run the following command in your terminal to create a bootable install media (for Sierra):
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeractionInstall Package Control for easy package management.
Ctrl+`
I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.
This isn't practical for larger texts, like when I want to copy the whole contents of a file.
If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| <?php | |
| error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); | |
| ini_set('display_errors', 1); | |
| function formatcurrency($floatcurr, $curr = 'USD') | |
| { | |
| /** | |
| * A list of the ISO 4217 currency codes with symbol,format and symbol order |