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
/* | |
# ┌───────────── start minute (0 - 59) | |
# │ ┌───────────── start hour (0 - 23) | |
# │ │ ┌──────────── end minute (0 - 59) | |
# │ │ │ ┌───────────── end hour (0 - 23) | |
# │ │ │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ │ │ ┌───────────── month (1 - 12) | |
# │ │ │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday) | |
# │ │ │ │ │ │ │ |
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
$ErrorActionPreference = "Stop" | |
$githubAuth = "get your own token" | |
$organization = "your org" | |
$repoName = "your repo" | |
$repo = Invoke-RestMethod -Method Get -Uri "https://api.github.com/repos/$organization/$repoName" -Headers @{ | |
Authorization = "bearer $githubAuth" | |
Accept = "application/vnd.github.v3+json" | |
} -Body $body -UseBasicParsing |
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 sodium = require('tweetsodium'); | |
const { Octokit } = require("octokit"); | |
const fs = require('fs'); | |
const util = require('util'); | |
const path = require("path"); | |
const readFile = util.promisify(fs.readFile); | |
(async () => { | |
const githubAuth = "use your own" | |
const sonarCloudConfigFileName = "sonarcloud-runner.yml" |
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 express = require('express'); | |
const { graphqlHTTP } = require('express-graphql'); | |
const { getIntrospectionQuery, buildClientSchema } = require('graphql'); | |
const { request } = require('graphql-request'); | |
const fs = require("fs"); | |
const util = require("util"); | |
const mocker = require('easygraphql-mock'); | |
const token = "user your own"; |
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
$ErrorActionPreference = "Stop" | |
#https://github.com/settings/tokens/new?scopes=repo | |
$githubAuth = "use your own" | |
$headers = @{ | |
Accept = "application/vnd.github.v3+json" | |
Authorization = "bearer $githubAuth" | |
} | |
$baseUrl = "https://api.github.com" | |
function Get-GitResource($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
class SwaggerDocService(canonicalHost: String, canonicalPort: Int)( | |
implicit override val actorSystem: ActorSystem, | |
override val materializer: ActorMaterializer | |
) extends SwaggerHttpService | |
with HasActorSystem { | |
override val apiTypes = Seq( | |
// your routes | |
typeOf[XNullableExtender] // you register listeners the same way as routes. The reader will sort out what is what | |
) |
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
public class ApplySchemaVendorExtensions : ISchemaFilter | |
{ | |
public void Apply(Schema schema, SchemaRegistry schemaRegistry, Type type) | |
{ | |
if (type.IsArray && type.GetElementType() != typeof(byte)) | |
{ | |
// Special case | |
return; | |
} |