You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

5.9 KiB

Assets
-------------------
RAILS_ENV=production bundle exec rake assets:precompile
RAILS_ENV=production bundle exec rake assets:clean


git clone https://mattias:zibxa7-qozsej-qoksaM@git.oncotype.dk/hirschsprung/hirschsprung.dk.2024.git

rails new --skip-docker --skip-action-mailbox --skip-action-text --skip-action-cable --database=postgresql hirschsprung.dk.2024


Credentials
-------------------
EDITOR=vi rails credentials:edit


Gem
-------------------
bundle config set --local without 'development test'

https://www.youtube.com/playlist?list=PL3mtAHT_eRex1sJI2uoTBgFT3qAXFbEcy
https://www.youtube.com/watch?v=X7H1N6pMYzg&list=PL3mtAHT_eRex1sJI2uoTBgFT3qAXFbEcy&index=6


Captcha
-------------------
https://blog.cloudflare.com/turnstile-ga

Utils
-------------------------------
RAILS_ENV=production bundle exec rake utils:delete_old_verification_codes


# Delete old verification codes
10 3 * * * cd /home/hirschsprung/hirschsprung.dk && RAILS_ENV=production /home/hirschsprung/.rbenv/shims/bundle exec rake utils:delete_old_verification_codes


Mailer
-------------------------------
http://localhost:3000/rails/mailers/user_mailer/verify_email.html



curl -L -X GET 'https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJh3wvJx1TUkYRsBM5GKdGnxs&fields=opening_hours&key=AIzaSyD6ERQbg8j--n4RV8QiaRLqR792m9LRSrk'

curl -L -X GET 'https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=Hirschsprung+Collection&inputtype=textquery&fields=formatted_address%2Cname%2Ccurrent_opening_hours%2Cplace_id%2Cgeometry&key=AIzaSyD6ERQbg8j--n4RV8QiaRLqR792m9LRSrk'

curl -L -X GET 'https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJh3wvJx1TUkYRsBM5GKdGnxs&fields=name%2Cbusiness_status%2Copening_hours/open_now&key=AIzaSyD6ERQbg8j--n4RV8QiaRLqR792m9LRSrk'
CLOSED_TEMPORARILY

Louisianna
Louisiana Museum of Modern Art
ChIJq5pUwwc3UkYRTpARr0S5L2o
curl -L -X GET 'https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=Louisiana+Museum+of+Modern+Art&inputtype=textquery&fields=formatted_address%2Cname%2Ccurrent_opening_hours%2Cplace_id%2Cgeometry&key=AIzaSyD6ERQbg8j--n4RV8QiaRLqR792m9LRSrk'

curl -L -X GET 'https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJq5pUwwc3UkYRTpARr0S5L2o&fields=name%2Cbusiness_status%2Copening_hours/open_now&key=AIzaSyD6ERQbg8j--n4RV8QiaRLqR792m9LRSrk'

/home/hs/hirschsprung.dk.2024/log/*.log {
weekly
missingok
rotate 4
compress
delaycompress
notifempty
copytruncate
}

{
"html_attributions" : [],
"result" :
{
"business_status" : "OPERATIONAL",
"name" : "Louisiana Museum of Modern Art",
"opening_hours" :
{
"open_now" : false,
"periods" :
[
{
"close" :
{
"day" : 0,
"time" : "1800"
},
"open" :
{
"day" : 0,
"time" : "1100"
}
},
{
"close" :
{
"day" : 2,
"time" : "2200"
},
"open" :
{
"day" : 2,
"time" : "1100"
}
},
{
"close" :
{
"day" : 3,
"time" : "2200"
},
"open" :
{
"day" : 3,
"time" : "1100"
}
},
{
"close" :
{
"day" : 4,
"time" : "2200"
},
"open" :
{
"day" : 4,
"time" : "1100"
}
},
{
"close" :
{
"day" : 5,
"time" : "2200"
},
"open" :
{
"day" : 5,
"time" : "1100"
}
},
{
"close" :
{
"day" : 6,
"time" : "1800"
},
"open" :
{
"day" : 6,
"time" : "1100"
}
}
],
"weekday_text" :
[
"Monday: Closed",
"Tuesday: 11:00 AM – 10:00 PM",
"Wednesday: 11:00 AM – 10:00 PM",
"Thursday: 11:00 AM – 10:00 PM",
"Friday: 11:00 AM – 10:00 PM",
"Saturday: 11:00 AM – 6:00 PM",
"Sunday: 11:00 AM – 6:00 PM"
]
}
},
"status" : "OK"
}%


#curl -L -X GET 'https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJq5pUwwc3UkYRTpARr0S5L2o&
#fields=name%2Cbusiness_status%2Copening_hours/open_now&key=AIzaSyD6ERQbg8j--n4RV8QiaRLqR792m9LRSrk'

{"html_attributions"=>[],
"result"=>
{"business_status"=>"OPERATIONAL",
"name"=>"Hirschsprung Collection",
"opening_hours"=>
{"open_now"=>true,
"periods"=>
[{"close"=>{"day"=>0, "time"=>"1700"}, "open"=>{"day"=>0, "time"=>"1000"}},
{"close"=>{"day"=>3, "time"=>"1700"}, "open"=>{"day"=>3, "time"=>"1000"}},
{"close"=>{"day"=>4, "time"=>"1700"}, "open"=>{"day"=>4, "time"=>"1000"}},
{"close"=>{"day"=>5, "time"=>"1700"}, "open"=>{"day"=>5, "time"=>"1000"}},
{"close"=>{"day"=>6, "time"=>"1700"}, "open"=>{"day"=>6, "time"=>"1000"}}],
"weekday_text"=>
["Monday: Closed",
"Tuesday: Closed",
"Wednesday: 10:00 AM – 5:00 PM",
"Thursday: 10:00 AM – 5:00 PM",
"Friday: 10:00 AM – 5:00 PM",
"Saturday: 10:00 AM – 5:00 PM",
"Sunday: 10:00 AM – 5:00 PM"]}},
"status"=>"OK"}