Skip to content

Instantly share code, notes, and snippets.

View pelletencate's full-sized avatar

Pelle ten Cate pelletencate

  • Occasion
  • Amsterdam
View GitHub Profile
@pelletencate
pelletencate / gems_to_dash.rb
Last active September 14, 2023 10:01
Install Gemsets in Dash.app for all ruby gems in your bundle (without cooking your system resources)
#!/usr/bin/env ruby
require 'etc'
dependencies = `bundle show | grep '*' | awk '{print $2, $3}' | sed -e 's/(//' -e 's/)//'`.split("\n")
dependencies.each.with_index(1) do |dependency, i|
(gem_name, version) = dependency.split
next if /rails-assets/.match?(gem_name)
puts "Installing docs for #{gem_name} #{version} "
@pelletencate
pelletencate / occasion-logo.svg
Created January 11, 2023 16:07
Occasion Logo 2023
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelletencate
pelletencate / asdf-direnv.sh
Last active August 22, 2024 02:33
Install latest asdf stable and asdf-direnv, from scratch, and make it all work
#!/bin/sh
shell=$(basename $SHELL)
# Exit if we don't support your shell
if [ $shell != "zsh" -a $shell != "bash" ]; then
printf "This script only works if you're using zsh or bash\n"
exit 1
fi
# Crash if the asdf or direnv commands already exist, or if ~/.asdf, ~/.envrc or ~/.tool-versions already exist
# frozen_string_literal: true
require 'rspec/core/formatters/base_text_formatter'
class QueueFormatter < RSpec::Core::Formatters::BaseTextFormatter
# This registers the notifications this formatter supports, and tells
# us that this was written against the RSpec 3.x formatter API.
RSpec::Core::Formatters.register self, :example_started, :example_failed
def initialize(output)
@output = output
@pelletencate
pelletencate / README.md
Last active August 29, 2015 14:15 — forked from agnoster/README.md

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark