On file config/shield.js at csrf key default is filterUris: [],
change this to filterUris: [/^\/webhooks\//, /^\/api\/v1/],
at head section add {{ cspMeta() }}
at form add {{ csrfField() }}
| #!/bin/bash | |
| set -ex | |
| # This scripts allows you to upload a binary to the iTunes Connect Store and do it for a specific app_id | |
| # Because when you have multiple apps in status for download, xcodebuild upload will complain that multiple apps are in wait status | |
| # Requires application loader to be installed | |
| # See https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html | |
| # Itunes Connect username & password | |
| USER=bla |
| # nil? can be used on any Ruby object. It returns true only if the object is nil. | |
| nil.nil? # => true | |
| [].nil? # => false | |
| {}.nil? # => false | |
| "".nil? # => false | |
| " ".nil? # => false | |
| true.nil? # => false | |
| # empty? can be used on some Ruby objects including Arrays, Hashes and Strings. It returns true only if the object's length is zero. | |
| nil.empty? # NoMethodError: undefined method `empty?' for nil:NilClass |
| var https = require('https'); | |
| var gunzip = require('zlib').createGunzip(); | |
| var options = { | |
| host: 'api.stackexchange.com', | |
| path: '/2.1/info?site=stackoverflow' | |
| }; | |
| https.get(options, function(res) { | |
| var body = ''; |