- Intro
- First appearence of a theme
- Second part of the first theme introduces another theme
- Second part
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set group name to check against | |
groupname=”domain admins” | |
if [ "`/usr/bin/dsmemberutil checkmembership -U $@ -G $groupname`" == "user is a member of the group" ]; then | |
/usr/bin/dscl . merge /Groups/admin GroupMembership $@ | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow group_name root access | |
%group_name ALL=(ALL) ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow user root access | |
user ALL=(ALL) ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create database pg_development; | |
create database pg_test; | |
create user expertiza@localhost; | |
grant all on pg_development.* to expertiza@localhost; | |
grant all on pg_test.* to expertiza@localhost; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: clean CompileMessage LinkedRankList.class Program_1.class | |
CompileMessage: | |
@echo 'Compiling source...' | |
LinkedRankList.class: | |
@printf 'LinkedRankList' | |
@javac LinkedRankList.java >> makelog | |
@echo ' - Success' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def index | |
return redirect_to action: "index" if params[:reset] | |
params[:filter] ||= {} | |
params[:page] ||= "1" | |
params[:per_page] ||= "100" | |
params[:filter][:type] ||= "Phylum" | |
params[:order] ||= 'organism.official_name ASC' | |
params[:order] = 'organism.id' if params[:order] == 'id' | |
if params[:order].include?("phylum_id") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install -y curl git-core libxml2-dev libxslt-dev postgresql-9.1 libpq-dev | |
\curl -L https://get.rvm.io | bash | |
source ~/.rvm/scripts/rvm | |
cd /vagrant | |
bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" System | |
set nocompatible | |
filetype off | |
set clipboard=unnamed | |
set shell=/bin/bash | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Github Bundles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe Comment do | |
let(:recipe) { mock_model Recipe } | |
let(:user) { mock_model User } | |
let(:comment) { Comment.new } | |
it 'belongs to a recipe' do | |
Comment.should_receive :recipe_id | |
comment.recipe |
OlderNewer