Skip to content

Instantly share code, notes, and snippets.

View gerhard's full-sized avatar

Gerhard Lazu gerhard

View GitHub Profile
# Run me with:
#
# $ watchr less.watchr
# --------------------------------------------------
# Helpers
# --------------------------------------------------
def lessc(file)
print "compiling #{file.inspect}... "
system "lessc #{file}"
In response to all the responses to:
http://twitter.com/rtomayko/status/1155906157
You should never do this in a source file included with your library,
app, or tests:
require 'rubygems'
The system I use to manage my $LOAD_PATH is not your library/app/tests
def fudge_time
User.record_timestamps = false
u = User.find_by_email(email)
u.updated_at = 11.minutes.ago
u.save
User.record_timestamps = true
end
# 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
# 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
******************************************
Ruby Developer Required @ JobsGoPublic.com
******************************************
==============================
The Company - JobsGoPublic.com
==============================