Skip to content

Instantly share code, notes, and snippets.

View danielres's full-sized avatar

Daniel Reszka danielres

  • Pixarea studio
  • Germany
View GitHub Profile
@danielres
danielres / _boxed.html.haml
Created May 2, 2011 20:40
renderl rails helper, to make collections renderable with a layout
%div.box
= yield
@danielres
danielres / application.html.erb
Created April 19, 2011 21:05
random personal notes and reminders related to my funny adventures with Refinery CMS
<%# To enable theming: %>
<%= render :partial => "/shared/head", :locals => {:theme => true} %>
rendering a custom plugin
<% content_for :page_title do %>
<%= @destination.title %>
<% end %>
<% content_for :page_body do %>
<section>
<h1>Choose from our most popular recommended itineraries below</h1>
</section>
rendering a custom plugin
<% content_for :page_title do %>
<%= @destination.title %>
<% end %>
<% content_for :page_body do %>
<section>
<h1>Choose from our most popular recommended itineraries below</h1>
</section>
@danielres
danielres / sass.xml
Created March 24, 2011 15:22
Jedit modes
<?xml version="1.0"?>
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<MODE>
<PROPS>
<PROPERTY NAME="wrap" VALUE="none"/>
@danielres
danielres / .bashrc_personal_base
Created March 11, 2011 19:39
bashrc personal settings
#!/bin/bash
## BASE #########
#BASH
alias ..="cd .."
alias j="jobs"
#GIT
alias gs="git status"
function ga { git add $* && gs; }
@danielres
danielres / notes.sh
Created March 11, 2011 13:53
random personal notes and reminders related to my funny adventures with Heroku
# $APP=$1
# S3_KEY=$2
# S3_SECRET=$3
# S3_BUCKET=$4
# GEMS=$5
gem install heroku --no-rdoc --no-ri
refinerycms $APP --heroku -g aws-s3,refinerycms-inquiries
# ,$5
cd $APP
# shoestring.rb
# Rails template
# from Judd Kussrow of Octopus Inc
# $ rails new Project -Jm http://octopusinc.com/shoestring.rb
################################### MAINTENANCE ######
gem 'rails3-generators', :group => 'development'
gem 'nifty-generators', :group => 'development'
# How to re-use the menu partial for a submenu in Refinery CMS >= 0.9.8.5
# header menu (main menu) which hides its children.
<%= render :partial => "/shared/menu",
:locals => {
:dom_id => 'menu',
:css => 'menu',
:collection => @menu_pages,
:hide_children => true
} -%>
@danielres
danielres / generator.sh
Created February 8, 2011 14:34
random personal notes and reminders related to my funny adventures with RefineryCMS
# usage:
# curl https://gist.github.com/raw/816518/generator.sh | bash -s {APPNAME} {SSH_USER} {SSH_HOST}
APP=$1
SSH_USER=$2
SSH_HOST=$3
refinerycms -f $APP
cd $APP