Skip to content

Instantly share code, notes, and snippets.

/**
* @module utils/logger
*/
/**
* Object from Sentry SDK
* @see {@link https://docs.sentry.io/clients/javascript/}
*
* Raven (Sentry SDK) is expected to be loaded directly from their CDN.
* Or you can instead use npm pkg: [raven-js]{@link https://github.com/getsentry/raven-js}
@eloypnd
eloypnd / Button.jsx
Last active March 2, 2017 08:02
Theme defaults with styled components
import styled from 'styled-components'
import themeVars from 'theme.variables'
const Button = styled.button`
background-color: ${({theme}) => theme.button.backgroundColor};
border: none;
border-radius: ${({theme}) => theme.button.radius}px;
color: white;
cursor: pointer;
padding: ${({theme}) => theme.button.padding}rem;
@eloypnd
eloypnd / chrometabs2markdown.scpt
Last active October 25, 2016 11:46
useful AppleScripts
(* Copy all open tabs from the Google Chrome windows that have focus
*
* version: 0.1
* author: Eloy Pineda <[email protected]>
* license: MIT
*)
set urlList to {}
tell application "Google Chrome"
activate
@eloypnd
eloypnd / dnsmasq_setup_osx.md
Last active October 9, 2024 19:13
wildcard DNS record on OS X in localhost development with dnsmasq

wildcard DNS in localhost development

$ brew install dnsmasq
   ...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
  • edit /usr/local/etc/dnsmasq.conf
address=/local/127.0.0.1
@eloypnd
eloypnd / .eslintrc
Created November 12, 2015 23:44
eslint base configuration file
{
"rules": {
"indent": [
2,
2,
{ "SwitchCase": 1 }
],
"quotes": [
2,
"single"
@eloypnd
eloypnd / MacSetup.md
Last active July 15, 2024 12:31
Instalación "limpia" de Mac OS X y entorno de desarrollo

Instalación "limpia" de Mac OS X y entorno de desarrollo

Este manual explica el proceso para hacer una instalación "limpia" de Mac OS X y los programas y aplicaciones básicas para tener el ordenador listo para empezar en el menor tiempo posible.

En el momento en que estoy escribiendo esto asumimos que el SO a instalar es Mac OS X 10.10 Yosemite. Algunas rutas de archivos pueden variar un poco si la version que quieres instalar es más antigua, pero en general los pasos a seguir son los mismos.

Utilizamos algunas herramientas como dotfiles, homebrew (y sus Brewfiles) o cask para agilizar ciertas tareas repetitivas como instalar aplicaciones.

Necesitaremos:

  • Memoria USB de 8GB mínimo

Keybase proof

I hereby claim:

  • I am eloypnd on github.
  • I am eloypnd (https://keybase.io/eloypnd) on keybase.
  • I have a public key whose fingerprint is 9B24 E0B9 4E6A C706 BBFE 9F17 4CD9 F303 E61C 96AC

To claim this, I am signing this object: