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
--- | |
http_interactions: | |
- request: | |
method: post | |
uri: https://api.helpscout.net/v2/oauth2/token | |
body: | |
encoding: UTF-8 | |
string: '{"client_id":"WB5Utt63qEhH8xZLvGKp3IGccL964FoU","client_secret":"ovnIsrCBxUzppvPvhtxKXGw8O5zyL1Gl","grant_type":"client_credentials"}' | |
headers: | |
Content-Type: |
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 app_store_server_notification_verifier | |
import ( | |
"crypto/ecdsa" | |
"crypto/x509" | |
"encoding/base64" | |
"errors" | |
"io/ioutil" | |
"github.com/golang-jwt/jwt" |
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 main | |
import ( | |
"crypto/x509" | |
"encoding/base64" | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"github.com/golang-jwt/jwt" |
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/bash | |
#This script will rename files for the given directory. Removing all illegal characters. | |
#Usage ./Script.sh /directory/to/run | |
verbose=1 | |
#Set/clear variables | |
folder=$1 | |
loop=0 | |
loopnum=0 | |
#Rotate Logs |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 'rack/app' | |
class App < Rack::App | |
desc 'get user' | |
get '/users/:user_id' do | |
params['user_id'] | |
end | |
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
require 'rack/app' | |
require 'rack/app/front_end' | |
class App < Rack::App | |
extend Rack::App::FrontEnd | |
helpers do | |
def method_that_can_be_used_in_template |
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 'rack/app' | |
class App < Rack::App | |
desc 'health check endpoint' | |
get '/' do | |
'OK' | |
end | |
get '/hello' do |
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 'rack/app' | |
require 'escher' | |
require 'escher-keypool' | |
require 'escher/rack_middleware' | |
Escher::RackMiddleware.config do |c| | |
c.add_escher_authenticator { Escher::Auth.new(Credential::Scope, Credential::AuthOptions) } | |
c.add_credential_updater { Escher::Keypool.new.get_key_db } | |
end |
NewerOlder