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
| #!/usr/bin/env node | |
| /** | |
| * Script to get the number of PRs reviewed by you in the usual-dao organization in 2025 | |
| * | |
| * Usage: | |
| * 1. Set your GitHub username in the GITHUB_USERNAME variable below | |
| * 2. Set your GitHub personal access token in the GITHUB_TOKEN environment variable | |
| * 3. Run: node get-pr-reviews.js | |
| * |
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
| 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 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
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: ca-crt | |
| namespace: drone | |
| data: | |
| kubca.crt: | | |
| -----BEGIN CERTIFICATE----- | |
| MIICMzCCAZygAwIBAgIJALiPnVsvq8dsMA0GCSqGSIb3DQEBBQUAMFMxCzAJBgNV | |
| BAYTAlVTMQwwCgYDVQQIEwNmb28xDDAKBgNVBAcTA2ZvbzEMMAoGA1UEChMDZm9v |
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
| 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 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
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
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
| 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 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
| 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 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
| { | |
| header: { | |
| alg: "ES256K" | |
| typ: "JWT" | |
| }, | |
| payload: { | |
| core_token: null, | |
| email: null, | |
| exp: 1544801401, | |
| hubUrl: "https://hub.blockstack.org", |
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
| 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 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
| /* | |
| 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; |
NewerOlder