(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
tail -f -n 450 storage/logs/laravel*.log \ | |
| grep -i -E \ | |
"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \ | |
--color |
--- Actions --- | |
$Copy <C-C> <C-Ins> | |
$Cut <C-X> <S-Del> | |
$Delete <Del> | |
$LRU | |
$Paste <C-V> <S-Ins> | |
$Redo <C-S-Z> <A-S-BS> | |
$SearchWeb | |
$SelectAll <C-A> | |
$Undo <C-Z> <A-BS> |
<?php | |
/** | |
* Automatically alias Laravel Model's to their base classname. | |
* Ex: "App\Models\User" now can just be accessed by "User" | |
*/ | |
if (! function_exists('aliasModels')) { | |
function aliasModels() { | |
$finder = new \Symfony\Component\Finder\Finder(); | |
$finder->files()->name('*.php')->in(base_path().'/app'); |
// ... | |
let webpack = require("webpack"); | |
mix.webpackConfig({ | |
plugins: [ | |
// Choose the language you want to keep (Ex: "fr") | |
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /fr/) | |
] | |
}); |
set -g default-terminal "xterm-256color" | |
set-option -ga terminal-overrides ",xterm-256color:Tc" | |
set -g prefix C-x | |
unbind-key C-x | |
bind-key C-2 send-prefix | |
bind \ split-window -h -c '#{pane_current_path}' | |
bind / split-window -v -c '#{pane_current_path}' | |
# Copy-paste integration |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
" Vim indent file | |
" Language: Lua | |
" Maintainer: Daniel Miller <daniel@bonsaiviking.com> | |
" Original Author: Daniel Miller <daniel@bonsaiviking.com> | |
" Last Change: 2014 Feb 6 | |
" Only load this indent file when no other was loaded. | |
if exists("b:did_indent") | |
finish | |
endif |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.provision "shell", path: "provision.rb" | |
end |
<?php | |
/** | |
* Intention: | |
* | |
* "testing" environment has a SQLite database configured | |
* Run migrations against --env=testing | |
* | |
* Separate seeds run here per test method will delete the SQLite | |
* code tables, and re-create them with codes that fit the needs |
#!/usr/bin/env bash | |
echo ">>> Starting Install Script" | |
# Update | |
sudo apt-get update | |
# Install MySQL without prompt | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |