gh api repos/:owner/:repo/branches/main/protection
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 nextMDX from "@next/mdx"; | |
/** @type {import('next').NextConfig} */ | |
const nextConfig = { | |
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"], | |
experimental: { | |
mdxRs: true | |
}, | |
}; | |
const withMDX = nextMDX({ |
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
# Pull latest static opa executable image | |
FROM openpolicyagent/opa:latest-static AS opa-stage | |
# Start lambda image | |
FROM public.ecr.aws/lambda/java:11 | |
ARG OPA_INSTALL_PATH=${LAMBDA_TASK_ROOT}/opa | |
ARG OPA_EXECUTABLE_PATH=${OPA_INSTALL_PATH}/opa | |
COPY --from=opa-stage /opa ${OPA_INSTALL_PATH}/ |
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
// Configure Google Cloud library with JSON credentials in an environment variable | |
const | |
os = require('os'), | |
fs = require('fs') | |
; | |
exports.configureGoogleCloud = function (isWarnOnly) { | |
// if standard GOOGLE_APPLICATION_CREDENTIALS is set then use that | |
if (!process.env['GOOGLE_APPLICATION_CREDENTIALS']) { | |
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
Midi Note | Note | Name | |
---|---|---|---|
85 | C#5 | Bongo Low - palm | |
84 | C5 | Bongo Low - closed slap | |
82 | A#4 | Shaker | |
75 | D#4 | Clave | |
59 | B2 | Splash2 | |
57 | A2 | Hand Crash 2 | |
56 | G#2 | Cowbell | |
55 | G2 | Splash 1 | |
54 | F#2 | Tambourine |
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 com.clario.aws | |
import com.amazonaws.DefaultRequest | |
import com.amazonaws.SignableRequest | |
import com.amazonaws.auth.AWS4Signer | |
import com.amazonaws.auth.AWSCredentialsProvider | |
import com.amazonaws.http.HttpMethodName | |
import groovy.util.logging.Slf4j | |
import org.apache.http.client.utils.URLEncodedUtils | |
import org.springframework.http.HttpHeaders |
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
// I made one of my @Configuration classes extend org.springframework.beans.factory.config.BeanPostProcessor | |
// There probably is a better way to intecept the ContentNegotiationManager when it is being updated but I couldn't figure out how | |
// This solved the problems I had better than using the {id:.+} regular expression in path variables idea I've seen on other fixes. | |
@Override | |
Object postProcessBeforeInitialization(Object bean, String name) throws BeansException { | |
if (bean instanceof RequestMappingHandlerMapping) { | |
// handle when dots in url path |
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
// The example is in Groovy but this probably works for any kind of logging for an app/test running in IDEA | |
// The important part is the template: "ComparisonFailure\nexpected:<{?}> but was:<{?}>" | |
// This works for multi-line values for each '?', which is why being able to use in-ide diff is so nice | |
def expected = ... | |
def actual = ... | |
// do your custom comparison, then if fails throw: | |
String msg = "ComparisonFailure\nexpected:<{${expected}}> but was:<{${actual}}>" |
NewerOlder