Skip to content

Instantly share code, notes, and snippets.

View alassiter's full-sized avatar

Anthony Lassiter alassiter

View GitHub Profile
task(:maruku_test => :environment) do
x = "3"
body = "<%= x %>"
puts "body: " + body + "\n"
puts Maruku.new(body).to_html
end

(a gist based on the old toolmantim article on setting up remote repos)

To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.

This is somewhat of a follow-up to the previous article setting up a new rails app with git.

For the impatient

Set up the new bare repo on the server:

@alassiter
alassiter / WebratCucumber
Created September 20, 2011 16:28
Webrat support for Cucumber
require 'webrat'
require 'webrat/core/matchers'
Webrat.configure do |config|
config.mode = :rack
config.open_error_files = false # Set to true if you want error pages to pop up in the browser
end
@alassiter
alassiter / gist:1235920
Created September 22, 2011 20:21
Reminder Features Draft #1
Feature: Agent creates a reminder
As an Agent
I want to create a reminder
So that it will be added to my list of things to remember
Feature: Agent views reminders
As an Agent
I want to view my reminders
So that I see what actions I need to do
@alassiter
alassiter / gist:3427328
Created August 22, 2012 16:43
jquery open new window NOT tab in Chrome
$j(function(){
$j('a.new_window').click(function(event){
window.open($j(this).attr('href'), '', "location=yes");
event.preventDefault();
})
})
@alassiter
alassiter / create_new_repo.sh
Created April 12, 2013 18:32
Create a new Git Repo
# ---- ON LOCAL MACHINE ----
git init
git add *
git commit -m "Initial Import"
# ---- END LOCAL MACHINE ----
# ---- ON SERVER -----
cd to_git_repo
sudo mkdir name_of_app.git
@alassiter
alassiter / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@alassiter
alassiter / fresh_install_of_osx.sh
Created August 8, 2018 17:20 — forked from vraravam/fresh-install-of-osx.sh
Steps to get "up and running" with new Mac OSX
#!/bin/bash
#install cl dev tools
xcode-select --install
chsh -s /bin/zsh
sudo chmod 755 ~
sudo chmod 700 ~/.ssh
sudo chmod 600 ~/.ssh/id*
sudo chmod 644 ~/.ssh/id*.pub
@alassiter
alassiter / useful_get_commands.sh
Last active September 17, 2018 13:52
Useful git commands
# To see only the commits that were CREATED on a given branch
git log --decorate --pretty=oneline --abbrev-commit --no-merges --first-parent master..target_branch
# Git branch listed by date
git branch --sort=-creatordate \
--format "%(creatordate:relative);%(committername);%(refname:lstrip=-1)" \
| grep -v ";HEAD$" \
| column -s ";" -t

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: