⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
#!/bin/sh | |
# This is a sample script for kickstarting a VM according to the openshift.ks script under virt-manager, qemu+KVM, and Linux. | |
# You certainly need to modify at least the CMDLINE and --location below for it to be useful (unless you work at Red Hat). | |
set -e | |
if [ $# -lt 1 ] | |
then | |
printf 'Usage: %s vm_name [arg1 [arg2 [...]]]\n' "$0" |
#!/bin/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
class config::sublime { | |
define addpkg { | |
$packagedir = "/Library/Application Support/Sublime Text 2/Packages/" | |
$pkgarray = split($name, '[/]') | |
$pkgname = $pkgarray[1] | |
exec { "git clone https://github.com/${name}.git": | |
cwd => "/Users/${::luser}${packagedir}", | |
provider => 'shell', |
class config::sublime { | |
define addpkg { | |
$packagedir = "/Library/Application Support/Sublime Text 2/Packages/" | |
$pkgarray = split($name, '[/]') | |
$pkgname = $pkgarray[1] | |
exec { "git clone https://github.com/${name}.git": | |
cwd => "/Users/${::luser}${packagedir}", | |
provider => 'shell', |
source 'https://rubygems.org' | |
gem 'rails', '3.2.13' | |
gem 'jquery-rails' | |
# A Scope & Engine based, clean, powerful, customizable and sophisticated paginator | |
gem "kaminari" | |
# Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain. |
This document describes installing an OpenShift Origin server on RHEL/CentOS 6.4.
It uses named (because the Avahi support does not work on RHEL 6 yet) and assumes a domain name of "broker.openshiftorigin" and a domain of "openshiftorigin"
First, kickstart a machine using the kickstart below.
Next, log into the machine as root:openshift and do the following to get it provisioned:
cd /etc/puppet
- Create the site.pp file, grabbing the DNSSEC key
//public/javascripts/app/app.js | |
define(function (require) { | |
//require dependancies | |
var Marionette = require('backbone.marionette'); | |
var Backbone = require('backbone'); | |
var $ = require('jquery'); | |
// Override renderer to use pre-compiled templates | |
Marionette.Renderer.render = function render(template, data) { |
Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.
Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.
As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.
Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.