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
@BrianSigafoos
BrianSigafoos / .bash_profile
Last active September 15, 2017 16:48
Bash Profile
export PATH=~/bin:$PATH
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
# 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 / ssl_puma.sh
Created January 13, 2017 17:35 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key