I hereby claim:
- I am Hates on github.
- I am hates_ (https://keybase.io/hates_) on keybase.
- I have a public key whose fingerprint is F0E6 3AE4 C385 1BFC D399 DC74 447E 69E7 5FCC 1227
To claim this, I am signing this object:
# Add this to your alacritty.yml file. | |
# Colors (Dracula) | |
colors: | |
# Default colors | |
primary: | |
background: '0x282a36' | |
foreground: '0xf8f8f2' | |
# Normal colors |
START_COMMAND="java -Dsolr.data.dir=/solr8983 -Djetty.port=8983 | |
-DSTOP.PORT=8079 -DSTOP.KEY=solrprod -Xms512M -Xmx1024M -jar start.jar" | |
STOP_COMMAND="java -Dsolr.data.dir=/solr8983 -Djetty.port=8983 | |
-DSTOP.PORT=8079 -DSTOP.KEY=solrprod -Xms512M -Xmx1024M -jar start.jar | |
--stop" | |
start() { | |
echo -n "Starting $NAME" | |
cd $SOLR_HOME | |
rm -f /solr8983/index/lucene-*-write.lock |
I hereby claim:
To claim this, I am signing this object:
http { | |
ssl_stapling on; | |
ssl_stapling_verify on; | |
ssl_trusted_certificate /etc/nginx/ssl/stapling.trusted.crt; | |
resolver 8.8.4.4 8.8.8.8 valid=300s; | |
resolver_timeout 15s; | |
} |
# NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://gist.github.com/3052776 | |
$ cd /usr/src | |
$ wget http://nginx.org/download/nginx-1.2.1.tar.gz | |
$ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz | |
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz | |
$ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz | |
$ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz |
def self.affiliates_for_dropdown | |
affiliate_options = [['Please select (optional)', '0']] | |
affiliate_options << Affiliate.active.show_in_step1.order(:name).collect { |a| [a.name, a.id.to_s] } | |
affiliate_options | |
end |
ActionView::MissingTemplate (Missing templateI"$spree/layouts/spree_application:ET with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :rabl], :versions=>[:v1]} |
# Return the brand root taxon. | |
# | |
# Brands -> A -> B -> C | |
# | |
# Returns taxon [A] | |
def brand_taxon_root | |
@base_brand_taxon ||= (taxons. | |
find { |t| t.is_descendant_of?(Spree::Taxon.brand_taxon) }. | |
self_and_ancestors. | |
find { |t| t.level == 1 } rescue nil) |
module IHateMyLife | |
class Application < Rails::Application | |
config.to_prepare do | |
# Load application's model / class decorators | |
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| | |
Rails.configuration.cache_classes ? require(c) : load(c) | |
end | |
# Load application's view overrides |