Skip to content

Instantly share code, notes, and snippets.

@lattespirit
lattespirit / Vagrantfile
Created July 14, 2017 09:30
Vagrantfile and provision shell
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@lattespirit
lattespirit / close_other_tabs.py
Created June 15, 2017 06:50
Close Other Tabs in Sublime Text 3
import sublime
import sublime_plugin
class CloseOtherTabsCommand(sublime_plugin.WindowCommand):
def run(self):
active_group = self.window.active_group()
curr_view_id = self.window.active_view_in_group(active_group).id()
for v in self.window.views_in_group(active_group):
if v.id() == curr_view_id: continue
self.window.focus_view(v)
@lattespirit
lattespirit / global-find-options-in-sublime
Last active March 4, 2019 03:54
Global Find options in Sublime
-tags,-*.js,-*.css,-*.html,-*.md,-*/storages/*,-*/node_modules/*,-.phpstorm.meta.php,-_ide_helper.php,<project>
@lattespirit
lattespirit / webpack.config.js
Created February 17, 2017 10:54
Webpack config for bootstrap and jQuery
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './app/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
@lattespirit
lattespirit / ConEmu.xml
Created January 20, 2017 02:40
cmder Configuration
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2017-01-20 10:38:50" build="160710">
<value name="ColorTable00" type="dword" data="004d4335"/>
<value name="ColorTable01" type="dword" data="006b60eb"/>
<value name="ColorTable02" type="dword" data="008de8c3"/>
<value name="ColorTable03" type="dword" data="0095ebf7"/>
<value name="ColorTable04" type="dword" data="00c4cb80"/>
<value name="ColorTable05" type="dword" data="009024ff"/>
@lattespirit
lattespirit / .homestead
Created January 12, 2017 02:19
Homestead Keyboard Shortcut
alias hs="homestead"
alias hsu="homestead up"
alias hss="homestead ssh"
alias hsup="homestead up --provision"
alias hsh="homestead halt"
alias hsr="homestead reload"
alias hsrp="homestead reload --provision"
alias m:c='php artisan make:controller'
alias m:middle='php artisan make:middleware'
alias m:migration='php artisan make:migration'
alias m:provider='php artisan make:provider'
alias m:listener='php artisan make:listener'
alias m:model='php artisan make:model'
alias m:event='php artisan make:event'
alias migrate='php artisan migrate'
alias rollback='php artisan migrate:rollback'
@lattespirit
lattespirit / .minttyrc
Last active August 15, 2018 20:08
Git Bash Color Scheme in Windows
BackgroundColour=13,25,38
ForegroundColour=217,230,242
CursorColour=217,230,242
Black=0,0,0
BoldBlack=38,38,38
Red=157,84,84
BoldRed=189,132,132
Green=84,157,84
BoldGreen=132,189,132
Yellow=157,157,84
alias g='git'
alias ga='git add'
alias gaa='git add --all'
alias gapa='git add --patch'
alias gb='git branch'
alias gba='git branch -a'
alias gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
alias gbl='git blame -b -w'
alias gbnm='git branch --no-merged'
alias gbr='git branch --remote'
@lattespirit
lattespirit / php.sublime-build
Last active June 4, 2022 15:12
Add Options when execute build system in Sublime
{
"variants": [
{
"name": "PHP CS Fixer",
"cmd": ["${folder}/vendor/bin/php-cs-fixer", "fix", "--config=${folder}/.php-cs-fixer.php", "--allow-risky=yes", "--using-cache=no", "$file"]
},
{
"name": "PHP Interpreter",
"cmd": [
"php",