Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

(John) Fred Nixon jfnixon

🏠
Working from home
View GitHub Profile
View gist:cdb0fef481b3f79b6de3c5eefd4849de
Verifying my Blockstack ID is secured with the address 13BYsgADEp3yvxgNNRjHmaRQ9VbPSBNdpY https://explorer.blockstack.org/address/13BYsgADEp3yvxgNNRjHmaRQ9VbPSBNdpY
View keybase.md

Keybase proof

I hereby claim:

  • I am jfnixon on github.
  • I am jfnixon (https://keybase.io/jfnixon) on keybase.
  • I have a public key ASC-SAkIaDGEt-8phI_3NIMwcRc4S03fxMnd_2fTBAGihAo

To claim this, I am signing this object:

View Minimum controller test
From http://codecrate.com/2014/11/rspec-controllers-best-practices.html
describe PostsController do
describe 'GET #index' do
context 'when user is logged in' do
with :user
before do
sign_in user
get :index
end
View Fish shell setup
Geoff Nixon @geoff-codes commented about a year ago (https://gitlab.com/gnachman/iterm2/issues/3634)
@victorhooi Also, I actually recommend one not use chsh, particularly with fish, or any shell that you'd need to edit /etc/shells to use. For instance what happens if your /usr/local/bin/fish gets a bad update from homebrew, or is otherwise corrupted or blown away? You're left without any shell at all (and this is when you'll really want that "Command:" option in iTerm or Terminal.app). Instead,
set up all your environmental variables in .rc
put [ -e ~/.rc ] && . ~/.rc in .profile and .bashrc
put [ -e ~/.bashrc ] && . ~/.bashrc || [ -e ~/.rc ] && . ~/.rc in .bash_profile
then end your .bash_profile with the line which fish >/dev/null 2>&1 && exec fish -il
This way:
your environment stays the same, whether your in sh, bash, or fish
you don't have to duplicate your env setup in ~/config/fish/config.fish
@jfnixon
jfnixon / OneName verification
Last active Sep 2, 2016
OneName verification
View OneName verification
Verifying that +jfnixon is my blockchain ID. https://onename.com/jfnixon
You can’t perform that action at this time.