Skip to content

Instantly share code, notes, and snippets.

View dobbbri's full-sized avatar
🚀
Working from ISS/NASA

Sergio Dobri dobbbri

🚀
Working from ISS/NASA
View GitHub Profile
@dobbbri
dobbbri / brew-cask-upgrade.sh
Created February 5, 2017 21:07 — forked from n0ts/brew-cask-upgrade.sh
brew cask upgrade
#!/bin/bash
for c in $(brew cask list); do
info=$(brew cask info $c)
installed_ver=$(echo "$info" | cut -d$'\n' -f1 | tr -d ' ' | cut -d':' -f 2)
current_ver=$(echo "$info" | cut -d$'\n' -f3 | cut -d' ' -f 1 | rev | cut -d'/' -f 1 | rev)
if [ "$installed_ver" != "$current_ver" ]; then
echo "$c is installed '$installed_ver', current is '$current_ver'"
brew cask reinstall $c
fi
@dobbbri
dobbbri / brew-cask-upgrade.sh
Created February 5, 2017 21:07 — forked from n0ts/brew-cask-upgrade.sh
brew cask upgrade
#!/bin/bash
for c in $(brew cask list); do
info=$(brew cask info $c)
installed_ver=$(echo "$info" | cut -d$'\n' -f1 | tr -d ' ' | cut -d':' -f 2)
current_ver=$(echo "$info" | cut -d$'\n' -f3 | cut -d' ' -f 1 | rev | cut -d'/' -f 1 | rev)
if [ "$installed_ver" != "$current_ver" ]; then
echo "$c is installed '$installed_ver', current is '$current_ver'"
brew cask reinstall $c
fi
@dobbbri
dobbbri / .vimrc
Created November 18, 2016 11:53 — forked from JeffreyWay/.vimrc
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@dobbbri
dobbbri / crud.js
Created August 6, 2016 20:55 — forked from xtrasmal/crud.js
[WIP] - Vue.js Crud Mixin, adds create/read/update/delete etc methods to your component.
/**
* Crud Mixin
* Usage: Add this mixin to provide crud actions
*/
var Crud = {
data: function() {
return {
crud: null,
items: [],