Skip to content

Instantly share code, notes, and snippets.

View fesplugas's full-sized avatar
🐿️

Francesc Esplugas fesplugas

🐿️
View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active June 14, 2024 14:09
Git Commit message Emoji
@simpsoka
simpsoka / philosophy.md
Last active February 9, 2023 19:57
simpsoka product philosophy

Product managers

  • Seek out failure, it teaches us to think like a scientist. If you start with a hypothesis, then try to prove yourself wrong, you’re bound to make much better decisions. You have to be willing to fail, and that in itself is going to help you build confidence and be more convicted about what your strategy is in the end.
  • There are hundreds of methods for building products and running teams. As a quality PM, it's important to have an open mind about all of it, but finding your own process and philosophy can be grounding. It helps you find your pillars so that you don't smash into things while you're building. Remember, however, that you can always find a budget for remodeling. 😉
  • The beauty of a good process is when it just becomes how you do your work. When you forget you're following a process at all is when you know the process is working for you, your team, your company, and your customers.
  • The advice I give new Product Managers or PMs coming onto a team for the first
@ideasasylum
ideasasylum / translate_amazon.js
Last active July 30, 2020 23:18
Translate Amazon service names into plain English (see https://www.expeditedssl.com/aws-in-plain-english)
// ==UserScript==
// @name Translate Amazon
// @namespace http://your.homepage/
// @version 0.1
// @description Translate the Amazon service names into plain English. See https://www.expeditedssl.com/aws-in-plain-english
// @author @ideasasylum
// @match https://*.console.aws.amazon.com/console/home?*
// @grant none
// ==/UserScript==
@rtfpessoa
rtfpessoa / docker-toolbox-init.sh
Last active April 28, 2016 11:55
Docker Toolbox init script for OS X
#!/bin/bash
#
# Docker toolbox init OS X
#
FORCE=${1-true}
USERS="/Users"
VAR="/var/folders"
@toolmantim
toolmantim / docker-compose.yml
Created April 1, 2015 07:27
Example docker-compose.yml for a Rails application
app:
build: .
links:
- db:db
- redis:redis
- memcache:memcache
volumes:
- ./:/app
environment:
PGHOST: db
@siawyoung
siawyoung / post_to_slack.rb
Created March 16, 2015 04:39
Script for posting to Slack's incoming webhooks
require 'json'
require 'optparse'
require 'net/http'
require 'net/https'
def parse_options(argv)
#######################################
# Please change the following as needed
#######################################
@andrewlkho
andrewlkho / gist:6777065
Last active October 12, 2022 03:50
How to import a gpg secret subkey into an existing secret key
# The following example imports subkey DF6C5C29 into a secret keyring that
# already contains 55C794A2
% gpg --list-secret-keys
sec 4096R/AF72A573 2012-06-17
uid Andrew Ho <andrewho@andrewho.co.uk>
ssb 4096R/55C794A2 2012-06-17
% mkdir 55C794A2
% cd 55C794A2
@fxn
fxn / gist:5404357
Created April 17, 2013 13:37
Custom Keymap for RubyMine (by fxn)
# Custom Keymap for RubyMine (by fxn)
The keymap I work with, inspired by my past Emacs years, these are configurable
in Preferences -> Keymap.
Most of these have no conflict with the existing shortcuts, I use the default
keymap for Mac OS X and add these ones (an action can have several shortcuts).
To configure two strokes enter the first one in the main textfield (eg, C-g),
check "Second Stroke" and the second one there (eg, c).
@freeformz
freeformz / WhyILikeGo.md
Last active October 6, 2022 23:31
Why I Like Go

A slightly updated version of this doc is here on my website.

Why I Like Go

I visited with PagerDuty yesterday for a little Friday beer and pizza. While there I got started talking about Go. I was asked by Alex, their CEO, why I liked it. Several other people have asked me the same question recently, so I figured it was worth posting.

Goroutines

The first 1/2 of Go's concurrency story. Lightweight, concurrent function execution. You can spawn tons of these if needed and the Go runtime multiplexes them onto the configured number of CPUs/Threads as needed. They start with a super small stack that can grow (and shrink) via dynamic allocation (and freeing). They are as simple as go f(x), where f() is a function.

@errordeveloper
errordeveloper / Unicorn_and_Upstart.md
Last active February 9, 2022 09:21
Upstart config for a Rails app using Unicorn HTTP server

Using Unicorn with Upstart

This configuration works with Upstart on Ubuntu 12.04 LTS

The reason why it needs to be done this way (i.e. with the pre-start and post-stop stanzas), is because Upstart is unable to track whever Unicorn master process re-execs itself on hot deploys. One can use it without hot-deploys and run Unicorn in foreground also, it then only needs one exec stanza.

This presumes you are not using RVM, so no voodoo dances.