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
| <span style="color:red;">Sale items are non-returnable and non-refundable.</span> |
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/sh | |
| # Credits to: | |
| # - http://vstone.eu/reducing-vagrant-box-size/ | |
| # - https://github.com/mitchellh/vagrant/issues/343 | |
| aptitude -y purge ri | |
| aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide | |
| aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30 | |
| aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5 |
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
| - name: print to stdout | |
| command: echo $PATH | |
| register: hello | |
| - debug: msg=" {{ hello.stdout }} " |
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
| # Alternatively, you can write an IP address and netmask in separate | |
| # columns to specify the set of hosts. Instead of a CIDR-address, you | |
| # can write "samehost" to match any of the server's own IP addresses, | |
| # or "samenet" to match any address in any subnet that the server is | |
| # directly connected to. | |
| # | |
| # METHOD can be "trust", "reject", "md5", "password", "scram-sha-256", | |
| # "gss", "sspi", "ident", "peer", "pam", "ldap", "radius" or "cert". | |
| # Note that "password" sends passwords in clear text; "md5" or | |
| # "scram-sha-256" are preferred since they send encrypted passwords. |
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
| c = Channel.find 142568 | |
| $shopify_session = c.create_shopify_session | |
| ShopifyAPI::Base.activate_session($shopify_session) | |
| include Integrations::Shopify::Paginator | |
| shopify_collection(:product) | |
| sp = _ | |
| spids = sp.map(&:id) | |
| spids = spids - c.owners(:product).map(&:online_id).map(&:to_i).uniq |
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
| Packsize SKU | Variant SKU | Quantity | |
|---|---|---|---|
| DK0475-JJ-P10 | DK0475-JJ | 10 | |
| DK0280P-JJ-P10 | DK0280P-JJ | 10 | |
| DK0280S-JJ-P10 | DK0280S-JJ | 10 | |
| DK0092-JJ-P10 | DK0092-JJ | 10 | |
| DK0094Y-JJ-P10 | DK0094Y-JJ | 10 | |
| DK0090-JJ-P10 | DK0090-JJ | 10 | |
| DK0095-JJ-P10 | DK0095-JJ | 10 | |
| DK0096-JJ-P10 | DK0096-JJ | 10 | |
| DK0097-JJ-P10 | DK0097-JJ | 10 |
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 User < ActiveRecord::Base | |
| devise :timeoutable | |
| end |
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
| devise_scope :user do | |
| get "/check_session_timeout" => "session_timeout#check_session_timeout" | |
| get "/session_timeout" => "session_timeout#render_timeout" | |
| end |
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 SessionTimeoutController < Devise::SessionsController | |
| prepend_before_action :skip_timeout, only: [:check_session_timeout, :render_timeout] | |
| def check_session_timeout | |
| response.headers["Etag"] = "" # clear etags to prevent caching | |
| render plain: ttl_to_timeout, status: :ok | |
| end | |
| def render_timeout | |
| if current_user.present? && user_signed_in? |
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
| const sessionTimeoutPollFrequency = 5; | |
| function pollForSessionTimeout() { | |
| let request = new XMLHttpRequest(); | |
| request.onload = function (event) { | |
| var status = event.target.status; | |
| var response = event.target.response; | |
| // if the remaining valid time for the current user session is less than or equals to 0 seconds. | |
| if (status === 200 && (response <= 0)) { |