Skip to content

Instantly share code, notes, and snippets.

View NP-komplett's full-sized avatar

Niklas Paulsson NP-komplett

  • Kentor
View GitHub Profile
ecc = ExpireCacheController.new
mfids = Maklarfirma.find(:all , :conditions => {:maklarsystem_id => 19}).map { |m| m.id } ;0
asdf = Objekt.find(:all , :conditions => { :maklarfirma_id => mfids }) ;0
puts "Found #{asdf.count} objekt to examine"
asdf.each do |o|
msid=o.objektid_ms
* executing "if [ -d /files/rubyapp/hemnet/shared/cached-copy ]; then cd /files/rubyapp/hemnet/shared/cached-copy && git fetch origin && git fetch --tags origin && git reset --hard c24b189bcea4e3adf643b5e60821185f47156831 && git clean -d -x -f; else git clone ssh://git@git.hemnet.se/home/git/repos/hemnet-ng/ /files/rubyapp/hemnet/shared/cached-copy && cd /files/rubyapp/hemnet/shared/cached-copy && git checkout -b deploy c24b189bcea4e3adf643b5e60821185f47156831; fi"
servers: ["napp03"]
[napp03] executing command
** [napp03 :: out] Initialized empty Git repository in /files/rubyapp/hemnet/shared/cached-copy/.git/
** [napp03 :: err] Host key verification failed.
** [napp03 :: err] fatal: The remote end hung up unexpectedly
Mar 7 16:47:13 napp03 puppet-agent[3757]: (/Stage[main]/Common/File[/etc/.ssh/known_hosts]/ensure) change from absent to file failed: Could not set 'file on ensure: No such file or directory - /etc/.ssh/known_hosts.puppettmp_2158 at /etc/puppet/modules/common/manifests/init.pp:24
{
:download => {
:from=>"http://napp03/cms/2012/03/07/42a3f7d341a9b4997baf9d1051f2d32b29c16b8a",
:to=>"/cms/2012/03/07/42a3f7d341a9b4997baf9d1051f2d32b29c16b8a",
:version=>10},
:alias => {
:source=>"/cms/2012/03/07/42a3f7d341a9b4997baf9d1051f2d32b29c16b8a",
:destination=>"/cms/11my_z1000sx_sharp_grn.jpg",
:version=>10
},
if ARGV[0] == "stop"
system "ps -ef | grep irb | grep -v grep | awk '$3 == "1" {print $2} ' | xargs -n1 kill"
sleep 1
system "ps -ef | grep irb | grep -v grep | awk '$3 == "1" {print $2} ' | xargs -n1 kill -9"
end
ActionView::TemplateError (undefined method `strftime' for "05-MAR-12 00:00:00":String) on line #12 of /files/rubyapp/hemnet/shared/bundle/ruby/1.9.1/gems/bcms_news-hemnet-1.0.1.22/app/view
s/news_articles/index.rss.builder:
9: xml.item do
10: xml.title(article.name)
11: xml.description(article.summary) unless article.summary.blank?
12: xml.pubDate(article.release_date.strftime("%a, %d %b %Y %H:%M:%S %z")) unless article.release_date.blank?
13: xml.link(news_article_url(article.route_params))
14: xml.guid(news_article_url(article.route_params))
15: end
+ def force_utf8_cookie(cookie)
+ traverse = lambda do |object, block|
+ if object.kind_of?(Hash)
+ object.each_value { |o| traverse.call(o, block) }
+ elsif object.kind_of?(Array)
+ object.each { |o| traverse.call(o, block) }
+ else
+ block.call(object)
+ end
+ object
su git -c ". /usr/local/rvm/scripts/rvm ; rvm use 1.8.7-p302@bygga_nytt ; export RAILS_ENV=acceptance_test ; passenger start -d -p 8288 --max-pool-size 20 --min-instances 2 --spawn-method conservative --user git --log-file /files/rubyapp/passenger_logfiles/bygganytt_passenger.log --pid-file /files/rubyapp/passenger_logfiles/bygganytt_passenger.pid /files/rubyapp/bygganytt_8288"
--DROP FUNCTION hn_dev.as_apegroup(geometry);
CREATE OR REPLACE FUNCTION hn_dev.as_apegroup(the_geom hn_dev.geometry)
RETURNS text AS
$BODY$
DECLARE
retval text;
as_text text;
coords text array[2];
polygon,58.9834527242788,17.3801638277901,58.9837281960803,17.3811418396048,58.985236422166,17.3848638785344,58.9858936455485,17.3861986847216,58.9853861761528,17.3887849675579,58.9843236216015,17.393433246421,58.9844778101244,17.3969717651728,58.98264571541,17.3984529854142,58.9827307322215,17.4024926274875,58.9832677074876,17.4077361381035,58.983436935113,17.4107534471014,58.9836020765028,17.4133704962815,58.9834842207757,17.4178009454154,58.982427905248,17.4211437469602,58.9821051055941,17.425425260768,58.9820772926024,17.4276505320954,58.9817917419786,17.428941753191,58.9810020076704,17.4332011333797,58.9811551102568,17.4367394699633,58.9816996708149,17.4419836683196,58.9825471477035,17.4438503181732,58.9840766586312,17.445749431038,58.9858101837306,17.4471364993249,58.9875469964724,17.4482628912229,58.9891509413341,17.4492438821961,58.9906879349067,17.449838995644,58.9922453623245,17.449530316413,58.9954292576364,17.447715425249,58.9932660143306,17.4540161098843,58.9911716824301,17.4647388936484,58.98990