Skip to content

Instantly share code, notes, and snippets.

apeckham /
Last active October 17, 2021 16:46
Add Lucene Javadocs to Kapeli Dash

Install j2d

  • wget
  • unzip

Build Javadocs

  • wget
  • brew install ant
bryant988 / zillow.js
Last active June 8, 2024 21:31
Zillow Image Downloader
* NOTE: this specifically works if the house is for sale since it renders differently.
* This will download the highest resolution available per image.
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM.
* No need to click any images.
stympy / helpscout-export.rb
Last active June 28, 2023 16:44
Script to export helpscout data
#!/usr/bin/env ruby
require 'helpscout'
require 'fileutils'
api_key = ARGV[0]
helpscout =
helpscout.mailboxes.each do |box|
FileUtils.mkdir( unless File.exists?(
puts "Fetching #{helpscout.conversation_count(, 'all', nil)} conversations for #{}"
jmreidy / test_mocha.opts
Last active January 9, 2018 11:49
Unit test React Native with Mocha
--compilers js:./test/support/compiler
--require ./test/support/init
RobertoSchneiders /
Last active May 28, 2024 23:07
IAM Policy for deploy on Elastic Beanstalk

I am deploying with this IAM using Codeship and Circle CI to Elastic Beanstalk. I had a lot of trouble with this config. I talked to the aws support for about 6 hours until this worked properly, so, I guess it is worth to share.

UPDATE: In the end, I have to use the AWSElasticBeanstalkFullAccess policy. My custom policy keep breaking every week with some new added permission or some EB internal change. Anyway, the IAM I was using is below.

This works for me with CircleCI and EB Cli.

    "Version": "2012-10-17",
    "Statement": [
kennwhite /
Last active December 2, 2015 21:53
Bundle Amazon/CentOS Linux to private Docker image repo
#!/usr/bin/env bash
# Bundling a minimal Amazon Linux image to a portable Docker container image
# Based on:
yum install -y wget docker && service docker start
wget -q
# Example for bundling AML Minimal HVM EBS Build: amzn-ami-minimal-hvm-2015.03.0.x86_64-ebs (ami-2ccae744)
idleberg /
Last active June 11, 2024 00:49
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.


  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L | fish
martinklepsch / random-color.clj
Last active April 23, 2022 20:07
Generate a random HEX color in cojure or clojurescript
(require '[clojure.string :as s])
;; My initial attempt
(def c [:0 :1 :2 :3 :4 :5 :6 :7 :8 :9 :A :B :C :D :E :F])
(str "#" (s/join (map name (repeatedly 6 #(rand-nth c)))))
;; Another option not using keywords (/ht locks in #clojure)
(def c [0 1 2 3 4 5 6 7 8 9 \A \B \C \D \E \F])
(str "#" (s/join (repeatedly 6 #(rand-nth c))))
;; the last line can be simplified even more (/ht xificurC in #clojure)
terjesb / core.clj
Created October 1, 2013 19:20
Google Analytics Core Reporting API v3 using Service Account from Clojure
(ns ga-exp.core
( GoogleCredential$Builder)
( GoogleNetHttpTransport)
( JacksonFactory)
( Analytics$Builder AnalyticsScopes)))
(def HTTP_TRANSPORT (GoogleNetHttpTransport/newTrustedTransport))
(def JSON_FACTORY (JacksonFactory.))