Skip to content

Instantly share code, notes, and snippets.

View edelbalso's full-sized avatar

Eduardo Del Balso edelbalso

  • LendingHome
  • San Francisco
View GitHub Profile

Mac Dev Setup

Personally curated and highly opinionated list of applications, software, tools and other stuff for macOS with instructions on how to install them.

I recommend spending some time exploring each app and carefully examine if they actually fit your needs. Downloading software you don't need unecessarily bloats your Mac with wasted space. If you already know what you need, use the index to quickly traverse this document.

If you want a more comprehensive list, check out:
awesome-mac
awesome-macOS

@edelbalso
edelbalso / gist:b5e4c17f1f3e8704f295a7b8bfa949c7
Last active March 14, 2017 15:15
Simpler, More Elegant Jira
/***
I couldn't stand the way JIRA looks any longer, so I went into an OCD fit and made it nicer.
Step 1 - Install this chrome extension: https://chrome.google.com/webstore/detail/user-css/okpjlejfhacmgjkmknjhadmkdbcldfcb
Step 2 - Visit your Jira Backlog and click on the "CSS" extension
Step 3 - Copy this stylesheet into the editor it gives you, flick the "On" switch.
Step 4 - Go to the backlog view of your JIRA board.
Step 5 - Give me a big ol' hug.
@edelbalso
edelbalso / 0_reuse_code.js
Created August 17, 2016 08:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@edelbalso
edelbalso / .gitignore
Created July 23, 2016 21:20 — forked from dwaynemac/.gitignore
Shell scripts to manage multiple projects with git
.idea/
#!/bin/bash
cd ~/workspace/lendinghome
(bundle check > /dev/null || bundle install)
ps aux | grep zeus | grep -v grep | awk '{ print $2 }' | xargs kill -9
rm .zeus.sock
reset
zeus start
@edelbalso
edelbalso / permutations.rb
Last active January 4, 2016 01:49
An algorithm for finding all permutations of possible values among 5 variables.
# assumes a hash collection's .each preserves order (true in ruby 1.9+ I believe)
inputs = {
param1: [70,90,130],
param2: [150_000, 170_000, 190_000],
param3: [260, 370, 90],
param4: [12,17,19],
param5: ['string1','string2'],
}
arr1 = [[]] # algorithm only works if arr1 can be iterated over at least once
@edelbalso
edelbalso / api.rb
Created December 10, 2013 02:37 — forked from noahhendrix/api.rb
module Todo
class API < Grape::API
use Rack::Session::Cookie
version 'v1', :format => :json
helpers do
def current_user
return nil if env['rack.session'][:user_id].nil?
@current_user ||= User.get(env['rack.session'][:user_id])
end
# Outputs this at warn log level:
# 1.2.3.4 GET /path 200 OK BlahController#action HTML 938.2 (DB 11.8, View 719.7) {params} {optional params from flash[:log]}
#
# Save as config/initializers/oneline_detailed_logging.rb. Consider
# decreasing the log level from "info" to "warn" (in production.rb) so
# the one-line log message replaces the standard request logs.
# override process_action to add 2 things to the payload:
# - remote IP
run ->(e){ p=Hash[*e['QUERY_STRING'].split(/[&=]/)]; [200, {'Content-type'=>'text/html'}, ["Hello #{p['name']}!"]] }