workflow:
$ rails g model NameOfModel
invoke active_record
create db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rb| # Call scopes directly from your URL params: | |
| # | |
| # @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
| module Filterable | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| # Call the class methods with the same name as the keys in <tt>filtering_params</tt> | |
| # with their associated values. Most useful for calling named scopes from |
| <div class="page"> | |
| <header class="banner"> | |
| <p>Banner</p> | |
| </header> | |
| <nav class="pagenav"> | |
| <p><a href="#">Page Nav</a></p> | |
| </nav> | |
| <main class="main"> | |
| <aside class="summary"> | |
| <p>Summary</p> |
| sudo sh -c " | |
| wget -nv -O - https://packagecloud.io/gpg.key | apt-key add - | |
| echo 'deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main' | tee /etc/apt/sources.list.d/dokku.list | |
| apt-get update -qq > /dev/null | |
| apt-get install sigil -t trusty # We're using the Ubuntu 14.04 package ;) | |
| apt-mark hold sigil | |
| wget https://raw.githubusercontent.com/dokku/dokku/master/bootstrap.sh | |
| bash bootstrap.sh | |
| " |
####Assumptions
We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:
| <?php // Do not include this if already open! | |
| /** | |
| * Code goes in theme functions.php. | |
| */ | |
| add_action( 'after_setup_theme', 'wc_remove_frame_options_header', 11 ); | |
| /** | |
| * Allow rendering of checkout and account pages in iframes. | |
| */ |
| /** | |
| * Redirect the Continue Shopping URL from the default (most recent product) to | |
| * a custom URL. | |
| * Place this code snippet in your theme's functions.php file. | |
| */ | |
| function custom_continue_shopping_redirect_url ( $url ) { | |
| $url = "http://www.woothemes.com"; // Add your link here | |
| return $url; | |
| } | |
| add_filter('woocommerce_continue_shopping_redirect', 'custom_continue_shopping_redirect_url'); |
| #!/usr/bin/env bash | |
| # | |
| # Fetch secrets for local development from Azure KeyVault | |
| # and print them to stdout as a bunch of env var exports. | |
| # These secrets should be added to your local .env file | |
| # to enable running integration tests locally. | |
| # | |
| KEY_VAULT=$1 | |
| function fetch_secret_from_keyvault() { |
LVM on LUKS Arch installation with systemd-boot
Sources:
You can use root to perform following steps until a regular user is indicated
If one of these packages are not presented, kubeadm will report warnings or errors
pacman -S docker ebtables ethtool socat