In order for this to work the following changes will need to be made in preparation:
- Change js to use require.js to specify dependencies
- Change html to use async loading of the js
| ssl_certificate cert.pem; | |
| ssl_certificate_key cert.key.pem; | |
| ssl_trusted_certificate cert.ca.pem; | |
| ssl_dhparam cert.dh.pem; | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| ssl_ciphers FIPS@STRENGTH:!aNULL:!eNULL; | |
| ssl_prefer_server_ciphers on; | |
| ssl_session_cache shared:SSL:10m; |
| Subjects: 440 | |
| Mutations: 8541 | |
| Kills: 8541 | |
| Runtime: 3773.23s | |
| Killtime: 3670.90s | |
| Overhead: 2.71% | |
| Coverage: 100.00% | |
| Alive: 0 |
| require 'coercible' | |
| class Transformer | |
| include Enumerable | |
| COERCER = Coercible::Coercer.new | |
| COERCIONS = Hash.new(:to_string).update( | |
| id: :to_integer, | |
| updated_on: :to_date, |
| Spree::CreditCard.class_eval do | |
| MONTH_PATTERN = /(?<month>0?[1-9]|1[012])/.freeze | |
| YEAR_PATTERN = /(?<year>(?:20)?\d{2})/.freeze | |
| EXPIRY_PATTERN = /\A#{MONTH_PATTERN}#{YEAR_PATTERN}\z/.freeze | |
| # Set the expiry month and year | |
| # | |
| # @param [#to_s] expiry | |
| # |
| #!/bin/bash | |
| unset UCF_FORCE_CONFFOLD | |
| export UCF_FORCE_CONFFNEW=YES | |
| export DEBIAN_FRONTEND=noninteractive | |
| export MAKEFLAGS="-j" | |
| export CONCURRENCY_LEVEL=$(($(nproc) + 1)) | |
| # Configure apt to not install recommended or suggested packages | |
| tee /etc/apt/apt.conf.d/10recommended <<-CONFIG |
| require 'thread_safe' | |
| module ThreadSafe | |
| class Set < ::Set | |
| def initialize(*) | |
| @hash = Hash.new | |
| super | |
| end | |
| end | |
| end |
| require 'axiom-memory-adapter' | |
| adapter = Axiom::Adapter::Memory.new( | |
| customers: Axiom::Relation.new([[:id, Integer], [:name, String]]), | |
| orders: Axiom::Relation.new([[:id, Integer], [:customer_id, Integer]]) | |
| ) | |
| # Insert customer data | |
| customers = adapter[:customers] | |
| customers.insert([[1, 'Dan Kubb']]) |
| #!/bin/sh | |
| # Dropbox setup on a headless Ubuntu Server | |
| # Script written by Jesse B. Hannah (http://jbhannah.net) <[email protected]> | |
| # Based on http://wiki.dropbox.com/TipsAndTricks/UbuntuServerInstall | |
| ### | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| git remote update && | |
| git remote prune origin && | |
| git branch -r --merged origin/master | | |
| awk -F"/" '!/(>|master)/ {print $2}' | | |
| xargs -rL1 git push origin --delete |