Skip to content

Instantly share code, notes, and snippets.

View RodrigoEspinosa's full-sized avatar
:bowtie:
 

Rodrigo Espinosa Curbelo RodrigoEspinosa

:bowtie:
 
View GitHub Profile
@iolloyd
iolloyd / why_redis.md
Created January 29, 2016 21:12
Some reasons to put redis in your stack

There are a lot of articles exploring the whys and wherefores of redis and I thought I would share some thoughts from somebody well versed in redis having used it in production over the past five or six years.

Build your own tailor-made indexes.

One of the foundations of the power of relational databases is the use of indexes. Redis gives you the ability to build your own, the way you want it, in a completely visible manner.

Sub element retrieval.

@lrytz
lrytz / z-automator.png
Last active October 15, 2024 06:31
Shortcut for Syntax Highlighting in Keynote
@ngpestelos
ngpestelos / remove-docker-containers.md
Last active August 20, 2024 19:34
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
@pricco
pricco / history.sh
Last active August 1, 2022 02:20
List commits of all subdirectories for the specified date: ./history.sh 2013-12-28
exec 2> /dev/null
original=`pwd`
function history {
d=$1
author=$2
for i in $(find . -type d -print -maxdepth 3); do
cd "${i}"
if [ -d ".git" ]; then
h=`git rev-list --after "${d}T00:00:00" --before "${d}T23:59:59" --tags --branches --remotes --author=${author} --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' | sed '/^commit/ d'`
@garagesocial
garagesocial / filters.php
Last active February 6, 2023 04:11 — forked from zmsaunders/filters.php
Laravel Filter Helper - Compress HTML Output & Strip Comments
<?php
### --- Snip --- ###
App::after(function($request, $response)
{
// HTML Minification
if(App::Environment() != 'local')
{
if($response instanceof Illuminate\Http\Response)
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active February 18, 2025 18:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active February 20, 2025 22:23
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh