Skip to content

Instantly share code, notes, and snippets.

View BrianSigafoos's full-sized avatar

Brian Sigafoos BrianSigafoos

View GitHub Profile
#chat-box.ubuntu.hidden-xs
.closed
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-chevron-up').html_safe, 'chat.show()'
.m-l-small
= link_to_function 'Chat with us', 'chat.show()'
.opened{style: 'display: none'}
.header
.pull-right
= link_to_function content_tag(:i, nil, class: 'glyphicon glyphicon-plus-sign').html_safe, 'chat.maximize()', class: 'maximize', style: 'display: none'
@BrianSigafoos
BrianSigafoos / sf-coworking
Last active August 29, 2015 14:02 — forked from gabriel/gist:6998753
SF Co-working spaces & prices
Parisoma @ 11th & Howard
http://www.parisoma.com/startups/#dedicated
$595
Sandbox Suites @ 10th & Mission
http://www.sandboxsuites.com/coworking/
$495, $595 (skybox)
Hub @ 5th & Mission
https://bayarea.impacthub.net/join-us/
Verifying myself: My Bitcoin username is +briansigafoos. https://onename.io/briansigafoos
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Word and Character Count service for Mac OS X
# Adds a Word and Character Count option to the text selection context menu
# Use Automator.app to create a new service, and then select the Run AppleScript
# action. Paste in this code and save as Word and Character Count. Now switch to
# a new app, select some text, and open the context menu to find the new option.
# Copyright 2012, Noah Slater <nslater@apache.org>
@BrianSigafoos
BrianSigafoos / aws_s3_set_cache_control_max-age.rb
Last active August 29, 2015 14:24 — forked from rahul100885/s3_header.rb
AWS S3 Cache Control Max-Age
#!/usr/bin/env ruby
require 'rubygems'
require 'aws-sdk'
s3 = AWS::S3.new(
:access_key_id => 'PASTE_HERE',
#### SECRET KEY #####
:secret_access_key => 'PASTE_SECRET_KEY_HERE')
#### DO NOT COMMIT ####
@BrianSigafoos
BrianSigafoos / rubymine.vmoptions
Created January 12, 2016 20:20
RubyMine increase memory heap size - rubymine.vmoptions
# Put this file in your /Users/<your_username>/Library/Preferences/<rubymine_version>/rubymine.vmoptions
# Ex: /Users/bob/Library/Preferences/RubyMine80/rubymine.vmoptions
-Xms128m
-Xmx1536m
-XX:MaxPermSize=250m
-XX:+UseCompressedOops
@BrianSigafoos
BrianSigafoos / postgres-cheatsheet.md
Created January 25, 2017 17:38 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

@BrianSigafoos
BrianSigafoos / Gemfile.md
Last active August 16, 2017 16:26
Rails favorites - for faster app setup

Gemfile favorites

group :test do
  # Minitest - Rails default, but updated more often via gem https://github.com/seattlerb/minitest
  gem 'minitest'

  # Better reporting for minitiest - ala Rspec https://github.com/kern/minitest-reporters
  gem 'minitest-reporters'