I hereby claim:
- I am craigmarksmith on github.
- I am craigmarksmith (https://keybase.io/craigmarksmith) on keybase.
- I have a public key ASAxU33gyK_xTLoZ65gPnWMa-POWEEh8WnlKndD1yPplIgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
//USER ACTION | |
export const LOAD_LOGGED_IN_USERS = 'LOAD_LOGGED_IN_USERS'; | |
import axios from 'axios'; | |
export function loadLoggedInUsers () { | |
return async (dispatch) => { | |
const userData = await axios.get('/api/session/logged_in_users') | |
dispatch({type: LOAD_LOGGED_IN_USERS, userData}) | |
} |
hours = params[:standard_trading_hour].map do |key, hour| | |
hour | |
end | |
special_hours = params[:special_trading_hour].map do |key, hour| | |
hour.merge(centre_id:current_centre.code) | |
end | |
CentreTradingHour.post('/api/trading-hour/master/centre_trading_hours.json', {hours: hours+special_hours}) | |
redirect_to(edit_centre_centre_trading_hours_path(centre_id: current_centre.code), notice: "Centre trading hours were successfully created.") |
conn = Faraday.new(:url => 'http://AJANIS_IP_ADDRESS:4502/') do |faraday| | |
faraday.use Faraday::Request::BasicAuthentication, 'admin','admin' | |
faraday.use ForceUtf8 | |
faraday.response :json | |
faraday.request :multipart | |
faraday.request :url_encoded | |
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP | |
end | |
payload = { | |
description: 'a test', |
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> | |
<url> | |
<loc>http://customer-console.development.dbg.westfield.com/</loc> | |
<lastmod>2014-08-11T17:29:51+10:00</lastmod> | |
<changefreq>always</changefreq> | |
<priority>1.0</priority> | |
</url> | |
<url> | |
<loc>http://customer-console.development.dbg.westfield.com/</loc> |
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> | |
<url> | |
<loc>http://customer-console.development.dbg.westfield.com/</loc> | |
<lastmod>2014-08-11T17:12:19+10:00</lastmod> | |
<changefreq>always</changefreq> | |
<priority>1.0</priority> | |
</url> | |
<url> | |
<loc>http://customer-console.development.dbg.westfield.com/</loc> |
○ → curl -I devaufashion.wpengine.com/wp-json/posts; | |
curl -I devaufashion.wpengine.com/fashion/weekend-shopping-best-leather-jackets/; | |
curl -I devaufashion.wpengine.com/fashion/6-wide-brim-hats-for-winter/; | |
curl -I devaufashion.wpengine.com/category/fashion/; | |
curl -I devaufashion.wpengine.com/about/; | |
curl -I devaufashion.wpengine.com/tags/accessories/; | |
HTTP/1.1 200 OK | |
Server: WP Engine/6.0.2 | |
Vary: Accept-Encoding,Cookie |
○ → ./test.sh | |
HTTP/1.1 200 OK | |
Server: WP Engine/6.0.2 | |
Vary: Accept-Encoding,Cookie | |
X-Cacheable: SHORT | |
Cache-Control: max-age=600, must-revalidate | |
X-Cache: HIT: 1 | |
Content-Type: application/json; charset=UTF-8 | |
X-Cache-Group: normal | |
Date: Thu, 07 Aug 2014 08:29:32 GMT |
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost |
# PRODUCTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
10.3.14.210 event-service.development.dbg.westfield.com | |
10.3.14.210 centre-service.development.dbg.westfield.com | |
10.3.14.210 stream-service.development.dbg.westfield.com | |
10.3.14.210 store-service.development.dbg.westfield.com | |
10.3.14.210 deal-service.development.dbg.westfield.com | |
10.3.14.210 customer-service.development.dbg.westfield.com | |
10.3.14.210 movie-service.development.dbg.westfield.com | |
10.3.14.210 search-service.development.dbg.westfield.com | |
10.3.14.210 product-service.development.dbg.westfield.com |