Skip to content

Instantly share code, notes, and snippets.

View gerhard's full-sized avatar

Gerhard Lazu gerhard

View GitHub Profile
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4724e62
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.DS_Store
+textpattern/config.php
\ No newline at end of file
diff --git a/files/.gitignore b/files/.gitignore
******************************************
Ruby Developer Required @ JobsGoPublic.com
******************************************
==============================
The Company - JobsGoPublic.com
==============================
def fetch_products_for_product_category
@category = params[:observed_field_value]
@work_order_item_id = params[:work_order_item_id]
end
A---B---C---D---M---E---F (master)
\ /
H---I
master is checked out then:
git rebase --onto D M
--> takes M..master (= E and F) and applies onto D
# courtesy of doener from git IRC channel. Thanks man!
A---B---C---D (master)
\ \
\ X---X (topicA)
\
X---X---X (topicB)
(integration branch is somewhere else...)
## RAILS
alias sa='ruby ./script/about'
alias ss='ruby ./script/server'
alias sc='ruby ./script/console'
alias sdb='ruby ./script/dbconsole'
alias sg='ruby ./script/generate'
alias sd='ruby ./script/destroy'
alias sp='ruby ./script/plugin'
alias ssp='ruby ./script/spec'
alias rdbm='rake db:migrate'
<!-- use this where you want the search form to appear -->
<txp:glz_custom_fields_search_form searchby="My select value, radio_value, section, category, checkbox_value" section="all" />
<!-- this is the result -->
<form method="post" action="http://offline/glz_custom_fields/search" id="glz_custom_fields_search">
<fieldset>
<p class="glz_custom_select_field">
<label for="custom-1">My select value</label>
<br /><select id="custom-1" name="custom_1" class="list">
<option value="">&nbsp;</option>
# zesty.rb
## Bit Zesty default rails stack
# Delete unnecessary files
run "rm README"
run "rm doc/README_FOR_APP"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
run 'rm -f public/javascripts/*' #add your fav js lib here
# install vim
yum install vim-common vim-enhanced
# add this into /etc/bashrc (or into ~/.bashrc)
alias vi='vim'
# add this into /etc/vimrc
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=utf-8,latin1
endif
# all defaults
matthew@bumble:~$ cat /etc/apache2/mods-enabled/deflate.conf
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
</IfModule>
matthew@bumble:~$ cat /etc/apache2/mods-enabled/deflate.load
LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
# gzip test @ http://www.gidnetwork.com/tools/gzip-test.php