Skip to content

Instantly share code, notes, and snippets.

Ignacio Lago ignlg

Block or report user

Report or block ignlg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ignlg
ignlg / setup.bash
Last active May 26, 2017
Setup Mac OS X from scratch using Homebrew & Cask
View setup.bash
#!/usr/bin/env bash
###
#
# Setup Mac OS X from scratch using Homebrew & Cask
#
# Version: 1.2.31
# Date: 20151207
# Author: Ignacio Lago @ignlg
# Gist: https://gist.github.com/ignlg/691cb662e92c41289a03
View Slack Theme
#F7F7F7,#CEE3F8,#B3CCE6,#FF3000,#B3CCE6,#336699,#38978D,#FF7500
@ignlg
ignlg / gulpfile.coffee
Last active Aug 26, 2015 — forked from timthez/closer.js
Close tab on browserSync disconnection, Gulp example
View gulpfile.coffee
browserSync = require 'browser-sync'
browserSync.use
plugin: ->
hooks:
'client:js': '
/* Close tab when server dies */
(function (bs) {
bs.socket.on("disconnect", function (client) { window.close(); });
})(___browserSync___);'
@ignlg
ignlg / example.js
Last active Oct 21, 2018
Fixes "TypeError: JSON.stringify cannot serialize cyclic structures" error when exporting to JSON a KeystoneJS model/list including virtuals.
View example.js
var modelCleanCyclic = require('./modelCleanCyclic');
var Example = new keystone.List('Example', {});
Example.schema.set('toJSON', {
virtuals: true,
transform: modelCleanCyclic.transformer
});
@ignlg
ignlg / dokku-container-name.sh
Created Aug 5, 2014
Dokku apps' container name: Creates all NAME files to assign container names with the dokku-name plugin.
View dokku-container-name.sh
#!/bin/bash
###
# Dokku apps' container name
#
# Creates all NAME files to assign container names with the dokku-name plugin.
#
# Usage: ./dokku-container-name.sh [suffix]
#
# LICENSE:
#
@ignlg
ignlg / docker-cleanup.sh
Created Aug 5, 2014
Docker cleanup script: Removes all the containers (error for running ones) and all the unnamed (<none>) images (error for images attached to a running container)
View docker-cleanup.sh
#!/bin/bash
###
# Docker cleanup script
#
# Cleans all the containers (error for running ones) and all the
# unnamed images (error for images attached to a running container)
#
#
# LICENSE:
#
@ignlg
ignlg / text-to-redis.coffee
Last active Jan 4, 2016
Text to Redis.A handy tool to convert a batch of Redis Commands for Mass Insert/Exec. It converts an input text with Redis Commands to an output text in Redis Protocol.
View text-to-redis.coffee
#!/usr/bin/env coffee
###
Text-to-Redis
Author: Ignacio Lago @ignlg
Version: 1.2
A handy tool to convert a batch of Redis commands for mass insert/exec.
You can’t perform that action at this time.