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
FROM alpine:3.3 | |
ADD logger.sh /logger.sh | |
RUN chmod +x /logger.sh | |
CMD /bin/sh -c "/logger.sh" |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 16, | |
// font family with optional fallbacks | |
fontFamily: '"Droid Sans Mono For Powerline", "Roboto Mono", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', | |
// terminal cursor background color (hex) | |
// cursorColor: '#F81CE5', |
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 logger = (t) => (document.body.innerHTML = `${document.body.innerHTML}<br>${JSON.stringify(t)}`) | |
/// app | |
const { createStore, combineReducers } = require('redux') | |
const OPEN_COMPOSER = 'OPEN_COMPOSER' | |
const CLOSE_COMPOSER = 'CLOSE_COMPOSER' | |
// The metrics reducer - we just grab the even and let the state pass through | |
const bufferMetrics = (state = {}, action) => { |
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
<?php | |
class MongoId implements Serializable, JsonSerializable | |
{ | |
public $id; | |
public function __construct($id) | |
{ | |
$this->id = (string) $id; | |
} |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: respond-server | |
namespace: reply | |
spec: | |
replicas: 12 | |
strategy: | |
rollingUpdate: | |
maxSurge: 2 |
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
# 3 package approach | |
/maildev-smtp | |
/src # most of what currently is in /lib | |
/test | |
/index.js | |
/package.json | |
/maildev-ui | |
/src # all the react components, etc. | |
/public | |
/package.json |
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
#!/bin/bash | |
# Usage `./local-deploy.sh <command> <service-name> | |
# Requirements: helm must be installed and match the version on our cluster | |
# commands: | |
# deploy Deploys the code to the cluster (requires cluster access) | |
# dry-run Prints the k8s deployment and service yaml files generates by helm | |
CMD="$1" | |
SVC="$2" |
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 { createFunction } from "inngest"; // v0.6.1 | |
import { serve } from "inngest/cloudflare"; | |
/** | |
* Inngest serve requires "node_compat = true" to be set in your wrangler.toml | |
* | |
* Set INNGEST_SIGNING_KEY in your wrangler.toml environment variables. | |
* Get this key in your Inngest dashboard: https://app.inngest.com/secrets | |
*/ |
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 { InngestMiddleware } from "inngest"; | |
export const encryptionMiddleware = ( | |
key: string = process.env.INNGEST_ENCRYPTION_KEY || "" | |
) => { | |
if (!key) { | |
throw new Error("Must provide an encryption key"); | |
} | |
const prefix = "__ENCRYPTED__"; |
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 { type NextRequest } from 'next/server'; | |
import { Inngest, InngestMiddleware } from 'inngest'; | |
import { schemas } from './types'; | |
export const searchParamsMiddleware = new InngestMiddleware({ | |
name: 'query-params-pass-through', | |
init({}) { | |
return { | |
onFunctionRun() { | |
return { |