type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| <?php // ~/.config/psysh/config.php | |
| // Anything not Laravel - let's try to autoload something likely to exist | |
| if (!defined('LARAVEL_START')) { | |
| return [ | |
| 'defaultIncludes' => [ | |
| getcwd().'/vendor/autoload.php', | |
| getcwd().'/bootstrap/autoload.php', | |
| ], | |
| ]; | 
| import sublime, sublime_plugin, time | |
| last_change = time.time() | |
| update_interval = 1.5 # s | |
| class DisplayLineCount(sublime_plugin.EventListener): | |
| def update_line_count(self, view): | |
| line_count = view.rowcol(view.size())[0] + 1 | |
| view.set_status("line_count", "{0} lines".format(line_count)) | 
| #!/bin/sh | |
| # ngrok's web interface is HTML, but configuration is bootstrapped as a JSON | |
| # string. We can hack out the forwarded hostname by extracting the next | |
| # `*.ngrok.io` string from the JSON | |
| # | |
| # Brittle as all get out--YMMV. If you're still reading, usage is: | |
| # | |
| # $ ./ngrok_hostname.sh <proto> <addr> | |
| # | 
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| adam-paterson adampaterson => oauth2-stripe | |
| components component => foundation | |
| #eveseat eve-seat => seat | |
| #frozzare frozzere => wp-admin-menu-tabs | |
| guzzlehttp puzzlehttp => streams | |
| gwis gws => php-valueobjects | |
| ite ice => form-bundle | |
| kcs ucs => utils | |
| laravel larvel => framework | |
| mindy hindy => application, base, cache, console, controller, di, event, exception, helper, http, locale, logger, middleware, orm, query, router, security, session, tests, utils, validation | 
| # Useful for testing things that are time zone | |
| # sensitive - like scheduling things | |
| # Get current timezone | |
| sudo systemsetup -gettimezone | |
| # Get list of available timezones | |
| sudo systemsetup -listtimezones | |
| # Set the timezone to the selected timezone | 
| // paste in your console | |
| speechSynthesis.onvoiceschanged = function() { | |
| var msg = new SpeechSynthesisUtterance(); | |
| msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0]; | |
| msg.text = Object.keys(window).join(' '); | |
| this.speak(msg); | |
| }; | 
| Lesson 1 - Iterations | |
| - BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/ | |
| Lesson 2 - Arrays | |
| - OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/ | |
| - CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/ | |
| Lesson 3 - Time Complexity | |
| - FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/ | |
| - PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/ |