Skip to content

Instantly share code, notes, and snippets.

@abyshakes
abyshakes / ClearAuthLaravel
Created September 21, 2018 17:24
ClearAuthLaravelMac
rm -rf app/Http/Controllers/Auth
rm config/auth.php
rm resources/lang/en/{auth.php,passwords.php}
rm app/Http/Middleware/{Authenticate.php,RedirectIfAuthenticated.php}
gsed -i '/auth/d; /guest/d' app/Http/Kernel.php
rm -rf database/migrations/*
@abyshakes
abyshakes / config.fish
Created July 1, 2018 06:41
fish git aliases
alias gd="git diff"
alias gdc="git diff --cached"
alias ga="git add"
alias gca="git commit -a -m"
alias gcm="git commit -m"
alias gbd="git branch -D"
alias gst="git status -sb --ignore-submodules"
alias gm="git merge --no-ff"
alias gpt="git push --tags"
alias gp="git push"
@abyshakes
abyshakes / gist:7e300bac951868b75860
Created February 23, 2016 04:36
VIM Janus Additional
set guifont=Menlo:h14
colorscheme solarized
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=L
set nocompatible " Because filetype detection doesn't work well in compatible mode
filetype plugin indent on " Turns on filetype detection, filetype plugins, and filetype indenting all of which add nice extra features to whatever language you're using
syntax enable " Turns on filetype detection if not already on, and then applies filetype-specific highlighting.
in this example my app is called myapp and my notebooks network address is : 192.168.0.4
Where you reference your app in your hosts file you can just add another line like this:
127.0.0.1 myapp.app
192.168.0.4 myapp.app
and access it on another device on the network like this : 192.168.0.4:8000
@abyshakes
abyshakes / tmux-cheatsheet.markdown
Created October 23, 2015 01:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
Event::listen('illuminate.query', function($query, $params, $time, $conn)
{
dump(array($query, $params, $time, $conn));
});
@abyshakes
abyshakes / default
Created April 24, 2015 08:21
Laravel Nginx Subdirectory
location ^~ /apis {
alias /usr/share/nginx/aby_api/public;
try_files $uri $uri/ @laravel;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
@abyshakes
abyshakes / Gulpfile.js
Last active September 21, 2018 17:25
Gulpfile for laravel5
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Less
| file for our application, as well as publishing vendor resources.
@abyshakes
abyshakes / Ranger
Last active October 13, 2016 20:53
ranger
sudo apt-get install ranger caca-utils highlight atool w3m poppler-utils mediainfo trash-cli
ranger --copy-config=scope
map <DELETE> shell trash-put %s
@abyshakes
abyshakes / vim_compiling
Last active August 29, 2015 13:59
Compile VIM
# Referenced From : http://bhattigurjot.wordpress.com/2013/07/29/enhancing-your-vim-in-ubuntu/
# Uninstall existing VIM / GVIM
sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common
# Mercurial clone vim Code
sudo apt-get install mercurial meld
cd ~
hg clone https://code.google.com/p/vim/