Skip to content

Instantly share code, notes, and snippets.

set rtp+=~/Settings/vim/vim-vue-plugin
set rtp+=~/Settings/vim/emmet-vim
set rtp+=~/Settings/vim/vim-airline
set rtp+=~/Settings/vim/nerdtree
set rtp+=~/Settings/vim/vim-blade
set rtp+=~/Settings/vim/vim-matchtag
let g:user_emmet_mode='a'
set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab
set fillchars+=vert:\
set autoindent
@validatorru
validatorru / vagrantup.sh
Created December 9, 2018 21:01
A bash script to stop all running vagrant instances and run vagrant up in the current dir.
# messy but working on my machine
# adapted from https://askubuntu.com/questions/457329/shutting-down-all-virtualbox-vagrant-vms-in-one-easy-to-use-bash-command-that/617585#617585
vagrant global-status | grep running | cut -c 1-9 | while read line; do echo $line; vagrant halt $line; done;
vagrant up
# this is my private sample of .bash_profile
export PATH=$PATH:/Users/alex/drush
export PATH=$PATH:/usr/local/mysql/bin/
export PATH=$PATH:~/.composer/vendor/bin
export PATH=$PATH:/usr/local/mysql/bin
export PATH=$PATH:/Users/alex/node/modules/sass-lint
export PATH=$PATH:/usr/local/Cellar/imagemagick/6.9.3-0
export PATH=$PATH:/usr/local/Cellar/graphicsmagick/1.3.23_1
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
alias drush='php /Users/alex/drush/drush.php'
@validatorru
validatorru / create_repository_untested.sh
Created October 12, 2016 12:59
a hint on how we create git repositories
#!/bin/bash
# this is a hint on how we create git repositories at BUZZfriends
# this script is not tested and surely might not work as expected
if [ -z "$1" ]; then
echo usage: $0 project prefix and project directory prefix
exit
fi
PREFIX=$1
DOMAINNAME="YOURDOMAINNAME"
DIRECTORY=/var/www/$PREFIX.$DOMAINNAME/www/
@validatorru
validatorru / gulpfile.js
Created February 5, 2016 11:01
BUZZfriends frontend workflow gulpfile.js tweaked to work with webfonts and plumber
/**
* BUZZfriends frontend workflow gulpfile.js
* based on https://github.com/Insayt
* https://gist.github.com/Insayt/272c9b81936a03884768
* tweaked to work with webfonts and plumber
*/
'use strict';
var gulp = require('gulp');
'use strict';
var gulp = require('gulp'),
watch = require('gulp-watch'),
prefixer = require('gulp-autoprefixer'),
uglify = require('gulp-uglify'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
rigger = require('gulp-rigger'),
cssmin = require('gulp-minify-css'),