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
| { | |
| "public_identifier": "maciej-rakowicz-67a0312", | |
| "profile_pic_url": null, | |
| "background_cover_image_url": null, | |
| "first_name": "Maciej", | |
| "last_name": "Rakowicz", | |
| "full_name": "Maciej Rakowicz", | |
| "follower_count": null, | |
| "occupation": "Principal Engineer at Snaptrip Group", | |
| "headline": "Principal Engineer", |
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
| package handler_test | |
| import ( | |
| "context" | |
| "fmt" | |
| gabs "github.com/Jeffail/gabs/v2" | |
| "github.com/google/uuid" | |
| "github.com/graph-gophers/graphql-go" | |
| "github.com/stretchr/testify/assert" | |
| "net/http" |
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
| our_id,original_id | |
| 10004,10581299 | |
| 10005,10391536 | |
| 10034,10043915 | |
| 10040,10561183 | |
| 10042,1052264 | |
| 10071,1048193 | |
| 10074,10080 | |
| 10079,10097376 | |
| 10094,10268076 |
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
| version: '2' | |
| services: | |
| api: | |
| volumes: | |
| - "nfsmount:${CONTAINER_DIR}" | |
| volumes: | |
| nfsmount: | |
| driver: local | |
| driver_opts: |
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
| id,name,breadcrumbs | |
| g7291279,"Bridport","united-kingdom,england,dorset,west-dorset-district,bridport" | |
| g2653989,"Callander","united-kingdom,scotland,stirling,callander" | |
| g2655148,"Boscastle","united-kingdom,england,cornwall,forrabury-and-minster,boscastle" | |
| g7292699,"Priors Marston","united-kingdom,england,warwickshire,stratford-on-avon-district,priors-marston" | |
| g7301936,"Toft Monks","united-kingdom,england,norfolk,south-norfolk-district,toft-monks" | |
| g2636432,"Swansea","united-kingdom,wales,city-and-county-of-swansea,castle,swansea" | |
| g7296060,"Brixham","united-kingdom,england,torbay,brixham" | |
| g2634485,"West Burton","united-kingdom,england,yorkshire-and-the-humber,north-yorkshire,richmondshire-district,burton-cum-walden,west-burton" | |
| g2647356,"Hastings","united-kingdom,england,south-east,east-sussex,hastings-district,hastings" |
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
| #!/usr/bin/env bash | |
| uninstall() { | |
| list=`gem list --no-versions` | |
| for gem in $list; do | |
| gem uninstall $gem -aIx | |
| done | |
| gem list | |
| gem install bundler | |
| } |
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
| require 'aws-sdk-sqs' | |
| require 'aws-sdk-sns' | |
| sqs = Aws::SQS::Client.new(access_key_id: "-", | |
| secret_access_key: "-", | |
| region: ENV['AWS_REGION'] || 'eu-west-1') | |
| queue_name = "blah-queue" | |
| queue_url = sqs.get_queue_url(queue_name: queue_name).queue_url rescue nil | |
| queue_url ||= begin |
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 | |
| apt-get install -y libreadline-dev libncurses5-dev libpcre3-dev \ | |
| libssl-dev perl make build-essential | |
| # Script to compile nginx on ubuntu with lua support. | |
| NGX_VERSION='1.8.0' | |
| LUAJIT_VERSION='2.0.4' | |
| LUAJIT_MAJOR_VERSION='2.0' |
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
| # Configure the reverse-proxy on port 443 | |
| server { | |
| # general configs | |
| keepalive_timeout 30; | |
| listen 127.0.0.1:443 ssl; | |
| server_name api.example.com; | |
| # ssl configs | |
| ssl_certificate /path/to/api.crt; | |
| ssl_certificate_key /path/to/api.key; |
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
| module Pricing::Pricers | |
| class BasePricer | |
| PRICE_EXPIRES_IN = 12.months | |
| attr_accessor :property, :check_in_on, :check_out_on, :reindex, :expiry, :request_live_price, :cookied, :allow_alternative_pricers | |
| alias_method :cookied?, :cookied | |
| alias_method :allow_alternative_pricers?, :allow_alternative_pricers | |
| def initialize(property, check_in_on, check_out_on, reindex: true, expiry: PRICE_EXPIRES_IN, |
NewerOlder