Skip to content

Instantly share code, notes, and snippets.

View vilasmaciel's full-sized avatar

Fernando Vilas vilasmaciel

  • Audiense
  • Vigo
View GitHub Profile
cwtail() {
time=""
filter=""
if ! [ -z $1 ] && ! [ -z $2 ] ;
then
filter=$1
time=$2
fi
@vilasmaciel
vilasmaciel / GradiantCodingDojo_FAQ.md
Last active November 28, 2017 13:24 — forked from jsrois/GradiantCodingDojo_FAQ.md
FAQ Gradiant monthly Coding Dojo

¿Cuándo hay coding dojos en gradiant?

El primer viernes de cada mes, de 15.00 a 17.00 . Anunciaremos cada Coding Dojo unos días antes para que la gente se apunte.

¿Cuál es la "agenda" (más o menos) del Coding Dojo?

(Primeros ~15 minutos) descripción del problema que plantea la kata y principios que se van a aplicar.
(Siguiente hora y media aprox) Programar la solución de la kata (haciendo TDD y pair programming).

Repaso a cada solución, problemas surgidos y principios aplicados.

@vilasmaciel
vilasmaciel / .jsbeautifyrc
Last active September 7, 2015 07:09
HTML-CSS-JS Prettify Configuration
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"],
@vilasmaciel
vilasmaciel / Preferences.sublime-settings
Created September 5, 2015 12:05
Sublime Text 3 Preferences
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"font_size": 9,
"highlight_modified_tabs": true,
"ignored_packages":
[
"JavaScript",
"Vintage",
"Markdown"
@vilasmaciel
vilasmaciel / Defautl (Linux).sublime-keymap
Last active September 7, 2015 07:26
Sublime Text 3 Key Bindings
[
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+g"], "command": "format_javascript"}
]
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
import ConfigParser, mmap
config_file = "/usr/share/applications/google-chrome.desktop"
add_string_to_each_section = ["StartupWMClass", "Google-chrome-stable"]
option = add_string_to_each_section[0]
value = add_string_to_each_section[1]
class Fixer:
def check(self, cf, option, value):
@vilasmaciel
vilasmaciel / install-node.sh
Last active August 29, 2015 14:11
Install nodejs from nodesource, grunt and bower
#!/bin/sh
sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev git ruby -y
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g bower grunt-cli
sudo gem install sass
sudo npm install -g grunt-contrib-sass
@vilasmaciel
vilasmaciel / install-mongo.sh
Created December 12, 2014 09:13
Install mongodb
#!/bin/sh
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org