This file contains 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
cat >example.crt<<EOF | |
-----BEGIN CERTIFICATE----- | |
MIIDPDCCAiQCCQDfkemtGUyxAjANBgkqhkiG9w0BAQsFADBgMQswCQYDVQQGEwJK | |
UDEOMAwGA1UECAwFVG9reW8xEzARBgNVBAcMCkNoaXlvZGEta3UxDzANBgNVBAoM | |
BkNsaWVudDEbMBkGA1UEAwwSY2xpZW50LmV4YW1wbGUub3JnMB4XDTIwMDUxMTEx | |
MDcyM1oXDTIxMDUxMTExMDcyM1owYDELMAkGA1UEBhMCSlAxDjAMBgNVBAgMBVRv | |
a3lvMRMwEQYDVQQHDApDaGl5b2RhLWt1MQ8wDQYDVQQKDAZDbGllbnQxGzAZBgNV | |
BAMMEmNsaWVudC5leGFtcGxlLm9yZzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC | |
AQoCggEBAMu7V2QyQk4iLPry0OsykR/8WO2aNOBNoVZYDexF1TsFv9s2S4PEDFEt | |
1BZrEmBe5HWpGb1iuDGG6wjAanEkea8AIUgslMsOOB0rQnbJA3nI5wktjCG2VzWo |
This file contains 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
// https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-device-authorization-flow#example-request-token-post-to-token-url | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" |
This file contains 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 std::collections::HashMap; | |
pub struct Professor{} | |
pub struct Student{} | |
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] | |
pub struct ProfessorId(u32); | |
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] |
This file contains 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
upstream demo2.localhost { | |
server ${UPSTREAM}; | |
} | |
server { | |
#ssl_certificate /etc/nginx/certs/demo.pem; | |
#ssl_certificate_key /etc/nginx/certs/demo.key; |
This file contains 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
docker run -d --rm --name pause -p 8080:8080 -p 8000:8000 -p 9090:80 -p 8181:8181 dockermonster/pause-amd64:3.0 | |
docker run -d \ | |
--net=container:pause --ipc=container:pause --pid=container:pause \ | |
--env JENKINS_OPTS=--httpPort=8181 \ | |
--env JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n jenkins/jenkins:lts | |
docker run -d \ | |
--net=container:pause --ipc=container:pause --pid=container:pause \ |
This file contains 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
{ | |
"containerDefinitions": [{ | |
"name": "jenkins-swarm", | |
"cpu": 100, | |
"essential": true, | |
"image": "microsoft/windowsservercore", | |
"memory": 500, | |
"entryPoint": [ | |
"powershell", | |
"-Command" |
This file contains 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 br.com.tiequity; | |
import java.util.Map; | |
import com.amazonaws.auth.AWSCredentials; | |
import com.amazonaws.auth.AWSCredentialsProvider; | |
import com.amazonaws.auth.AWSSessionCredentials; | |
import com.amazonaws.internal.StaticCredentialsProvider; | |
import com.amazonaws.mobileconnectors.apigateway.ApiClientFactory; | |
import com.auth0.Auth0; |
This file contains 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
abort("No SERVER_IP specified, cannot continue") unless ENV["SERVER_IP"] | |
abort("No SSH_KEY specified, cannot continue") unless ENV["SSH_KEY"] | |
Vagrant.configure('2') do |config| | |
config.vm.box = 'cloudfoundry/bosh-lite' | |
config.vm.provider :virtualbox do |v, override| | |
override.vm.box_version = '9000.126.0' # ci:replace | |
# To use a different IP address for the bosh-lite director, uncomment this line: | |
# override.vm.network :private_network, ip: '192.168.59.4', id: :local |
This file contains 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 python | |
# | |
# Copyright 2015 Cisco Systems, Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains 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
{"keys": [ | |
{ | |
"kty": "RSA", | |
"use": "SIGNATURE", | |
"alg": "RS256", | |
"kid": "01407925-b7c0-45ec-93cd-aa5379a86347", | |
"exp": null, | |
"crv": null, | |
"privateKey": { | |
"n": "hWwigOuUYe40h82_NAweOwEhme4wPnsfo8axV5qp03pWUFQdP1NY9DkRQvKzuWzczxFjlZPXqqc8_hzR7NemHPrbz_JO4i7eF2aEtSolhXvhq0uyO9fsZdXuIhjfuCFSs-PZ3utT-t7zn__IfUDr7QEo_5hSm12nvrCuCZQPURU_Io6PVVZQSjUoryVPRyj7K0J0JaTlqmKvAtBsSzWLi5dBcPDyVFV4hX-bCrpvBDfVlbV6SvcGp40OFboKS-jj09k4vLBM9JanIfa7H1ISb6eoAwS-hMJdt4AHMMKKX_ASKq_mUGJyfHwie57oU0Ep16myuz_P4c5iPsNIkQRjZw", |
NewerOlder