Skip to content

Instantly share code, notes, and snippets.

View peleteiro's full-sized avatar
🏠
Working from home

Jose Peleteiro peleteiro

🏠
Working from home
View GitHub Profile
@peleteiro
peleteiro / gist:318e3d3194f4738d5257
Created January 20, 2016 23:40 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@peleteiro
peleteiro / Makefile
Last active November 15, 2016 12:28
Terraform to launch a thumbor server on Digital Ocean
.PHONY: apply
plan:
cd terraform && terraform plan -var-file terraform.tfvars -parallelism=1
apply:
cd terraform && terraform apply -var-file terraform.tfvars
destroy:
cd terraform && terraform plan -destroy -var-file terraform.tfvars -out terraform.tfplan
/* eslint-disable padded-blocks */
import {Record, List} from 'immutable'
import {isEqual} from 'lodash'
export class Cake extends Record({
id: null,
name: null,
}, 'Cake') {}
describe('isEqual', () => {
version: 2
jobs:
build:
working_directory: /srv/biblebox
environment:
DISPLAY: :99
BIBLEBOX_DATA_PATH: /srv/biblebox-data
BIBLEBOX_SEARCH_ENDPOINT: http://127.0.0.1:1234
BIBLEBOX_DATA_ENDPOINT: http://127.0.0.1:2345
TESTCAFE_CLI_XTRS: --app-init-delay 6000 --no-color --reporter list
Gênesis - gen
Êxodo - exod
Levítico - lev
Números - num
Deuteronômio - deut
Josué - josh
Juízes - judg
Rute - ruth
1 Samuel - 1sam
2 Samuel - 2sam
/* global googletag */
// tslint:disable no-any
import debounce from 'debounce-promise'
import _ from 'lodash'
import defer from 'lodash/defer'
import React from 'react'
type Props = {
id?: string
className?: string
# Biblebox DFP AD spots
# -------------------------------------------------------
# LAYOUT_ID:
# SPOT_ID:
# path: DFP AD UNIT PATH
# RESPONSIVE_BREAKPOINT:
# POSIBLE_AND_TESTED_SIZE: yes|no
#
# Responsive breakpoints:
# xs: when the viewport is < 768 pixels
~/Projects/biblebox/amp/src (master)$ pt doublecl
./ChapterPage.tsx
32: <amp-ad width={320} height={100} type="doubleclick" data-slot="/1020455/Home" />
./HomePage.tsx
39: <amp-ad width={320} height={100} type="doubleclick" data-slot="/1020455/Home" />
./ui/AmpLayout.tsx
76: <amp-ad width={320} height={50} type="doubleclick" data-slot="/1020455/MobileSticky" />
module.exports = {
ignorePatterns: ['!.eslintrc.js', 'dist/', 'raw/', 'lib/', 'node_modules/'],
extends: [
'plugin:import/errors',
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:json/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
const admin = require('firebase-admin')
const {DateTime} = require('luxon')
const _ = require('lodash')
const fbSource = admin.initializeApp(
{
credential: admin.credential.cert(require(`./serviceAccountKey.production.json`)),
databaseURL: 'https://biblebox-prod.firebaseio.com',
},
'source',