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
const jose = require("jose"); | |
const ethers = require("ethers"); | |
const { | |
JWE, // JSON Web Encryption (JWE) | |
JWK, // JSON Web Key (JWK) | |
JWKS, // JSON Web Key Set (JWKS) | |
JWS, // JSON Web Signature (JWS) | |
JWT, // JSON Web Token (JWT) |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: ca-crt | |
namespace: drone | |
data: | |
kubca.crt: | | |
-----BEGIN CERTIFICATE----- | |
MIICMzCCAZygAwIBAgIJALiPnVsvq8dsMA0GCSqGSIb3DQEBBQUAMFMxCzAJBgNV | |
BAYTAlVTMQwwCgYDVQQIEwNmb28xDDAKBgNVBAcTA2ZvbzEMMAoGA1UEChMDZm9v |
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
image: | |
repository: drone/drone-runner-kube | |
tag: 1.0.0-beta.1 | |
pullPolicy: IfNotPresent | |
## If you need to pull images from a private Docker image repository, pass in the name | |
## of a Kubernetes Secret that contains the needed secret. For more details, see: | |
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | |
## | |
imagePullSecrets: [] |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
JSX> res = w.capacity.reserve_zos_vm('[email protected]','t1000.example','ac1f6b457338',2) | |
1 | |
Mon 03 14:09:13 BCDB.py - 428 - bcdb:bcdb : load model: | |
jumpscale.threefold_directory.client | |
Mon 03 14:09:13 BCDB.py - 428 - bcdb:bcdb : load model: | |
jumpscale.gedis.client | |
Mon 03 14:09:13 GedisClient.py - 138 - j.clients.gedis:gedisclient : redisclient | |
: notary.grid.tf:5000 | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> |
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
import { Injectable } from '@angular/core'; | |
import * as blockstack from 'blockstack'; | |
import { Observable, from, of } from 'rxjs'; | |
import { tap, map, catchError } from 'rxjs/operators'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class StorageService { |
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
{ | |
header: { | |
alg: "ES256K" | |
typ: "JWT" | |
}, | |
payload: { | |
core_token: null, | |
email: null, | |
exp: 1544801401, | |
hubUrl: "https://hub.blockstack.org", |
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
private searchUrl = 'https://core.blockstack.org/v1/search'; | |
public searchContacts(queryValue: string): Observable<ContactSearchResult[]> { | |
if (!queryValue || queryValue.trim().length < 1) { | |
return of(new Array<ContactSearchResult>()); | |
} | |
return this.http.get<BlockstackSearchResponse>(this.searchUrl, { params: { query: queryValue.trim() } }) | |
.pipe( | |
map((r: BlockstackSearchResponse) => { | |
return r.results.map(i => this.mapToSearchResult(i)); | |
}) |
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
/* | |
Every app that uses multi-player storage must add itself to the user's profile.json file. | |
The Blockstack Browser will handle this part automatically when the publish_data scope is requested during authentication. | |
to read a another user file, you just need to call getFile with the appropriate options: | |
const options = { username: username, decrypt: false, zoneFileLookupURL: 'https://core.blockstack.org/v1/names/'} | |
getFile(statusFileName, options) | |
*/ | |
signIn() { | |
const origin = window.location.origin; |
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
var CryptoJS = require("crypto-js"); | |
const zonefile = '$ORIGIN jude.id\n$TTL 3600\n_https._tcp URI 10 1 \"https://raw.githubusercontent.com/jcnelson/profile/master/jude.id\"\n_https._tcp URI 10 1 \"https://www.cs.princeton.edu/~jcnelson/jude.id\"\n'; | |
const zonefilehash = cryptoJS.RIPEMD160(cryptoJS.SHA256(this.zonefile)); | |
console.log(zonefilehash); |
NewerOlder