avjaarsveld to #{1.0/0.0} and beyond!

Index of Posts


Heroku Cheatsheet

Heroku
Git
Command
Heroku is super simple and easy to get hosting sorted. Here are some common and/or useful commands. Pull git pull heroku master Clone heroku git:clone -a project-name Open Project/URL heroku...
Read more...

Jquery Cheatsheet

jQuery
JavaScript
Code Snippets
Development
Some notes and reminders for jQuery Check if Array contains something if (obj.indexOf('widgetID') != -1) { // widgetID not found in obj } Optional Variables for Function with Default Values...
Read more...

Server Management and Troubleshooting

Notes n stuff

Server
CentOS
Terminal
Performance
Troubleshooting
Passenger
DevOps
System Status top free -m Passenger Status platform/vendor/gems/CentOS7/gems/passenger-5.0.4/bin/passenger-status
Read more...

Mysql Cheatsheet

mysql
cheatsheet
development
Copy a database from a remote server to a local computer ssh user@server cd platform/config/web/ mysqldump -u root cust_server_prodction > dump.sql exit scp user@server:platform/config/web/dump.sql ~/ mysql -u root cust_server_prodction <...
Read more...

Google Analytics Access

analytics
gattica
oauth2
legato
Gattica no longer works with the Google API as it does not support OAuth2. I am therefore moving a project away from using the Gattica gem (for Google Analytics access...
Read more...

Useful Rails Stuff

rails
generate
migrations
development
Rails Generate References Add a charity_id index to the Candidate model (Candidate belongs to Charity) bundle exec rails generate migration add_charity_to_candidate charity:references bundle exec rails generate scaffold Branch charity:references name:string...
Read more...

Install Node JS and Bower on OS X

nodejs
install
development
Node JS and NPS Installing node.js on OS X is really simple, this is how Go to nodejs.org and click to download for your OS (e.g. Download for OS X...
Read more...

Ruby Cheatsheet

ruby
cheatsheet
development
Because ruby methods are named well in general, with easy to remember or guess names this sheet should stay relatively empty. These are some memory joggers… What are you? a.is_a?...
Read more...

RSpec Tests for a Rails Engine

engine
tests
rspec
Some notes on running RSpec tests for a Rails Engine. This sets up the test database, changes directory to the engine’s directory and runs it’s tests bundle exec rake db:migrate...
Read more...

Development Workflow Process

Development
Workflow
Process
Staging
Some examples of Development Workflows My current Development Workflow (using Jira, Bitbucket, Git, AWS) This process works well as part of a larger development team *---------------------------------------* | Select first open...
Read more...

Moving From Sublime Text 2 To Text 3

Sublime
Text 2
Text 3
Theme
Colour Theme
Linter
I’ve recently “upgraded” from Sublime Text 2 to Sublime Text 3. Here are some notes about how to get Text 3 setup for better productivity and to keep my Colour...
Read more...

Troubleshooting Sidekiq

sidekiq
troubleshooting
aws
logs
Starting Rake Sidekiq Connect to AWS instance Then… sudo su deploy cd tmp/pids/ ll rm sidekiq.pid cd .. .. bundle exec rake sidekiq:start cd .. cd log ll exit Checking...
Read more...

Useful Sublime Shortcuts and Commands

sublime
cheatsheet
commands
I use this post to remind me of keyboard shortcut keys, etc, for the Sublime Text 2 editor. These are just reminders for functionality that I am already somewhat familiar...
Read more...

Useful Postgres Commands

postgres
pg
commands
Login psql -U username postgres Show a list of Tables \dt Lists Databases \list Users \du Quit \q Changing Owner and Privileges The issues I came accross when trying to...
Read more...

Useful Mac Commands

Mac
Apple
Terminal
This post is a work in progress. Comment with suggestions of things to add. Time Manually Update Time sudo ntpdate -vu time.apple.com
Read more...

Which Email Marketing Provider?

email
marketing
This is a feature list, feature comparison and brief overview for the main email marketing providers out there: Mailchimp (and Mandrill), Aweber and GetResponse. Features important to us are: Nurturing...
Read more...

Model Diagrams

development
diagrams
rails
Creating manual model diagrams (Entity-Relationship Diagrams) for rails applications is a laborious task, especially for more complex or bigger applications. There are fortunately some tools to generate these for you...
Read more...

Using Postgres for the First Time (instead of MySQL)

Setting Up Postgres

postgres
pg
postgresql
psql
database
development
ruby
gems
I’ve been asked to look at a project that uses Postgres. This is what I needed to do to get it running in an Ubuntu development environment. The different/interesting bits...
Read more...

Useful Ubuntu Commands

This is a work in progress...

Ubuntu
Terminal
This post is a work in progress. Comment if you think I should add anything. Find Search within files ack-grep -i "search string with.*regex" Find a file by filename See...
Read more...

Git Cheatsheet

git
cheatsheet
development
I use this as a quick reference for commands that I already know about (where I may have forgotten the exact syntax etc), so there is therefore not a lot...
Read more...

Quest For The Best Ruby On Rails Development Editor

...that is also easy to use and learn

development
ruby
editor
redcar
Vim is powerful, popular and helps lots of developers to be more efficient programmers. However, because Vim forces you to work in a different way to most other editors/IDE’s, it...
Read more...

My Github Profile Looks Empty

...but I have been busy contributing, honest!

github
development
organizations
privacy
My employer’s repositories are all private, so when anyone outside of the organisation looks at my Github profile it looks all but empty. These logged-in and logged-out pictures illustrate the...
Read more...

Setting Up A Github Blog The Easy Way

blog
jekyll
redcarpet
github pages
markdown
hosting
CSS
SASS
Tagline
Comments
My first post.. but Why? I thought it’s about time that I organise and back up my notes, and while I’m at it I might as well make them available...
Read more...