Skip to content

Instantly share code, notes, and snippets.

View sivicencio's full-sized avatar

Sebastián Vicencio sivicencio

View GitHub Profile
@sivicencio
sivicencio / google_analytics.js
Last active August 29, 2015 14:19
JavaScript implementation of @reed Google Analytics Turbolinks compatibility. Original CoffeeScript version: http://reed.github.io/turbolinks-compatibility/google_analytics.html
// JavaScript implementation of @reed Google Analytics Turbolinks compatibility
// Original CoffeeScript version: http://reed.github.io/turbolinks-compatibility/google_analytics.html
// Prefer Universal Analytics if you can, as Google recommends
var googleAnalytics = {
load: function() {
var firstScript;
window._gaq = [];
window._gaq.push(["_setAccount", googleAnalytics.analyticsId()]);
@sivicencio
sivicencio / gist:53d78b63df2bee321a55152c5aa8f73e
Created June 8, 2016 05:12 — forked from p404/gist:f0d37cb4b4912543f5a5
Server configuration for a rails application (Ubuntu 14.04)
# User: ubuntu
sudo apt-get update
sudo apt-get upgrade
# Access keys
vim .ssh/authorized_keys
# Hostname
sudo vim /etc/hostname
sudo vim /etc/hosts
@sivicencio
sivicencio / seeds.rb
Created October 14, 2019 06:37
Archivo de seeds con 10 libros de ejemplo.
# Creamos 10 libros iniciales
Book.create(
title: 'Clean Code: A Handbook of Agile Software Craftsmanship',
description: 'Even bad code can function. But if code isn’t clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of poorly written code. But it doesn’t have to be that way.
Noted software expert Robert C. Martin presents a revolutionary paradigm with Clean Code: A Handbook of Agile Software Craftsmanship . Martin has teamed up with his colleagues from Object Mentor to distill their best agile practice of cleaning code “on the fly” into a book that will instill within you the values of a software craftsman and make you a better programmer—but only if you work at it.
What kind of work will you be doing? You’ll be reading code—lots of code. And you will be challenged to think about what’s right about that code, and what’s wrong with it. More importantly, you will be challenged to reassess your professional values and your
@sivicencio
sivicencio / remove_tuxera.sh
Created October 29, 2019 00:01 — forked from miguelmota/remove_tuxera.sh
Completely uninstall and remove Tuxera NTFS on MacOS (resets trial version)
sudo rm -rf /Applications/Tuxera\ Disk\ Manager.app
sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS
sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs