This file contains hidden or 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 | |
#### | |
# Upload one file to configured S3 bucket | |
# | |
# 20240418 gbh | |
# | |
# Accepts the path to the file to upload as its only command-line argument. Uploads | |
# to the S3 bucket configured in the 'Configuration' block below. | |
# |
This file contains hidden or 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
class ActiveResource::Connection | |
# Creates new Net::HTTP instance for communication with | |
# remote service and resources. | |
def http | |
http = Net::HTTP.new(@site.host, @site.port) | |
http.use_ssl = @site.is_a?(URI::HTTPS) | |
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl? | |
http.read_timeout = @timeout if @timeout | |
This file contains hidden or 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
<div id="taxonomies" class="sidebar-item"> | |
<% @taxonomies.each do |taxonomy| %> | |
<h3>Shop by <%= taxonomy.name.singularize %></h3> | |
<ul class="navigation-list"> | |
<% taxonomies = taxonomy.root.children.find (:all, | |
:select => "DISTINCT taxons.*", | |
:joins => :products, | |
:conditions => ["products.available_on <= ? and products.deleted_at is null", Time.zone.now] ) | |
%> | |
<% taxonomies.each do |taxon| %> |