Skip to content

Instantly share code, notes, and snippets.

View diegommarino's full-sized avatar

Diego Marino diegommarino

  • Dublin, Ireland
View GitHub Profile
{
"auto_complete": false,
"auto_complete_commit_on_tab": true,
"caret_extra_width": 1,
"caret_style": "solid",
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"drag_text": true,
"draw_indent_guides": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
function color-prompt()
{
local NONE="\[\033[0m\]"
local BLACK="\[\033[0;30m\]"
local RED="\[\033[0;31m\]"
local GREEN="\[\033[0;32m\]"
local BROWN="\[\033[0;33m\]"
local BLUE="\[\033[0;34m\]"
local PURPLE="\[\033[0;35m\]"
local CYAN="\[\033[0;36m\]"
package br.unifor.exercise_2_6;
//Compresser Centralizado
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
@diegommarino
diegommarino / install_node_with_nvm.md
Last active April 4, 2017 17:48
Install node with NVM

https://gorails.com/setup/ubuntu/14.04

sudo apt-get update

sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev

sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev

gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
@diegommarino
diegommarino / sublime_config_2.json
Created June 15, 2017 11:37
Personal sublime text 3 configuration
{
"auto_complete_commit_on_tab": true,
"caret_extra_width": 1,
"caret_style": "solid",
"drag_text": true,
"draw_indent_guides": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"find_selected_text": true,
@diegommarino
diegommarino / override_jquery_widget.js
Created November 19, 2017 13:40
How to override a jQuery widget option.
// Override Metro UI Dialog widget example.
$.extend($.metro.dialog.prototype.options, {closeButton: true, overlay: true, overlayClickClose: true});
# shortcut to reload tmux configuration
bind r source-file ~/.tmux.conf
# set mouse capture on
set -g mouse on
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# change the split window key command
tmux new-session \; \
send-keys 'tail -f /var/log/monitor.log' C-m \; \
split-window -v -p 75 \; \
split-window -h -p 30 \; \
send-keys 'top' C-m \; \
select-pane -t 1 \; \
split-window -v \; \
send-keys 'weechat' C-m \;
import axios from 'axios'
import router from '@/router'
const namespaced = true
const state = {
token: null,
userId: null,
user: null,
profileId: null,
isStaff: null