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
| var consumer_key = '...'; | |
| var request = require('request').defaults({ | |
| oauth: { | |
| consumer_key: consumer_key, | |
| token: consumer_key, | |
| signature_method : 'RSA-SHA1', | |
| private_key: require('fs').readFileSync('privatekey.pem') | |
| }, | |
| json: true | |
| }); |
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
| { | |
| url: 'https://api-partner.network.xero.com/oauth/AccessToken', | |
| oauth: { | |
| signature_method, | |
| consumer_key, | |
| private_key, | |
| token, | |
| session_handle | |
| }, | |
| 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
| #!/bin/sh | |
| set -exo pipefail | |
| curl -L https://imperialcollegelondon.box.com/shared/static/wm84f86ikub5mceibprp61cd7jxwanzp.gz | tar xz -C /opt | |
| if [ -f /opt/mridb/conf/application-site.conf ]; then | |
| echo "Updated MRIdb: $(cat /opt/mridb/VERSION)" | |
| exit | |
| fi |
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 | |
| set -exo pipefail | |
| curl -L https://imperialcollegelondon.box.com/shared/static/wm84f86ikub5mceibprp61cd7jxwanzp.gz | tar xz -C /opt | |
| if [ -f /opt/mridb/conf/application-site.conf ]; then | |
| echo "Updated MRIdb: $(cat /opt/mridb/VERSION)" | |
| exit | |
| fi |
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 | |
| FILES=$(git diff --cached --name-only --diff-filter=ACMR "*.md" | sed 's| |\\ |g') | |
| test -z "$FILES" && exit 0 | |
| URLS=$(echo "$FILES" | xargs egrep -o 'http://[^ )]+') | |
| test -z "$URLS" && exit 0 | |
| echo -e "\e[31mInsecure links:\e[0m\n$URLS" | |
| #exit 1 |
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.exports = { | |
| names: ["http-link-warning"], | |
| description: "Rule that reports an error for non-https links", | |
| tags: ["links"], | |
| function(params, onError) { | |
| params.tokens | |
| .filter((token) => token.type === "inline") | |
| .flatMap((token) => token.children) | |
| .filter( | |
| (token) => |
OlderNewer