Skip to content

Instantly share code, notes, and snippets.

View clakeb's full-sized avatar

Blake Barber clakeb

View GitHub Profile

Keybase proof

I hereby claim:

  • I am clakeb on github.
  • I am clakeb (https://keybase.io/clakeb) on keybase.
  • I have a public key ASA5xg2yiys1qtFLq3Y4Gfu-KZL4CeEeCCyjFICFW4c-5go

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am blakebarber on github.
  • I am blakebarber (https://keybase.io/blakebarber) on keybase.
  • I have a public key ASCLor9ooZ23yEQ6vZzW6c6B7SekpcRKvLsN61UkUDgWJAo

To claim this, I am signing this object:

@clakeb
clakeb / cask-update
Last active August 29, 2015 14:16
Upgrade all casks. **Warning** Takes a while. Make sure you have stable internets.
# Run "upcask" in the terminal and you can upgrade every cask you have installed. Run once a week.
function upcask () {
for cask in `brew cask list`; do
brew cask install $cask --force
done
# I use TotalFinder so I like to restart after an upgrade.
open -a TotalFinder
}
@clakeb
clakeb / add-to-functions.php
Last active August 29, 2015 14:03
Filter Genesis Comment Instructions
<?php // don't use the opening php tag in functions.php if you don't need to.
add_filter( 'comment_form_defaults', 'cbb_my_handy_change_comment_instr_function' ); // name your function whatever you want. I like to add a company or project prefix like "cbb_"
function cbb_my_handy_change_comment_instr_function( $cbb_some_variable ) {
$cbb_fields['must_log_in'] = '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>';
return $cbb_fields;
}
source 'https://rubygems.org'
gem 'rails', '3.2.9'
# Postgres Database
gem 'pg'
# Twitter API
gem 'twitter'
@clakeb
clakeb / Google Apps .zone File
Last active June 15, 2017 22:09
Quick .zone file to import when you are setting up Google Apps. I use it with CloudFlare. Enjoy.
; CNAME
calendar 1 IN CNAME ghs.googlehosted.com
drive 1 IN CNAME ghs.googlehosted.com
mail 1 IN CNAME ghs.googlehosted.com
sites 1 IN CNAME ghs.googlehosted.com
video 1 IN CNAME ghs.googlehosted.com
; MX
@ 1 IN MX 10 aspmx3.googlemail.com
@ 1 IN MX 1 aspmx.l.google.com