This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'hpricot' | |
require 'open-uri' | |
# update the database with the actual titles from each site | |
Blog.all.each do |b| | |
puts b.url | |
begin | |
doc = Hpricot(open(b.url.strip)) | |
title = (doc/"html/*/title/").to_s | |
if title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I18n.backend.store_translations :'pt-BR', { | |
# formatos de data e hora | |
:date => { | |
:formats => { | |
:default => "%d/%m/%Y", | |
:short => lambda { |date| "#{date.day} %b" }, | |
:long => lambda { |date| "#{date.day} de %B de %Y" } | |
}, | |
:day_names => %w(Domingo Segunda Terça Quarta Quinta Sexta Sábado), | |
:abbr_day_names => %w(Do Se Te Qa Qi Sx Sa), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teste |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teste2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
:'pt-BR' => { | |
# formatos de data e hora | |
:date => { | |
:formats => { | |
:default => "%d/%m/%Y", | |
:short => lambda { |date| "#{date.day} %b" }, | |
:long => lambda { |date| "#{date.day} de %B de %Y" }, | |
:only_day => "%e" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
:'pt-BR' => { | |
# formatos de data e hora | |
:date => { | |
:formats => { | |
:default => "%d/%m/%Y", | |
:short => lambda { |date| "#{date.day} %b" }, | |
:long => lambda { |date| "#{date.day} de %B de %Y" }, | |
:only_day => "%e" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SC sdset SharedAccess D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) | |
sc config SharedAccess start= auto | |
net start sharedaccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Init file for Gitorious GIT-Daemon daemon | |
# | |
# chkconfig: 2345 55 25 | |
# description: GIT-Daemon server daemon | |
# | |
# processname: git-daemon | |
# pidfile: /var/www/gitorious/log/git-daemon.pid | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Init file for Gitorious Ultrasphinx daemon | |
# | |
# chkconfig: 2345 55 25 | |
# description: Ultrasphinx server daemon | |
# | |
# processname: searchd | |
# pidfile: /var/www/gitorious/db/sphinx/log/searchd.pid | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www/gitorious/log/*log { | |
missingok | |
notifempty | |
sharedscripts | |
postrotate | |
/sbin/service git-daemon restart > /dev/null 2>/dev/null || true | |
/sbin/service git-ultrasphinx restart > /dev/null 2>/dev/null || true | |
/bin/touch /var/www/gitorious/tmp/restart.txt > /dev/null 2>/dev/null || true | |
endscript | |
} |
OlderNewer