Skip to content

Instantly share code, notes, and snippets.

View tysonrm's full-sized avatar
🎯
Focusing

tyson tysonrm

🎯
Focusing
View GitHub Profile
@jacob-ebey
jacob-ebey / remix-compose-routes.ts
Created July 16, 2021 16:47
Compose Remix routes
import type { LinksFunction, LoaderFunction, MetaFunction } from "remix";
export let composeMeta =
(
...metas: (MetaFunction | { data: string; meta: MetaFunction })[]
): MetaFunction =>
(args) =>
metas.reduce<ReturnType<MetaFunction>>((res, meta) => {
if (typeof meta === "function") {
return { ...res, ...meta(args) };
@jacob-ebey
jacob-ebey / webpack-access-federated-containers-plugin.js
Created December 8, 2020 05:12
webpack-access-federated-containers-plugin.js
/*
Makes your remote containers low level API accessible via:
import accessFederatedContainer from "access-federated-containers";
accessFederatedContainer("app2")
*/
/** @typedef {import("webpack").Compiler} Compiler */
/** @typedef {import("webpack").Compilation} Compilation */
@MichaelCurrin
MichaelCurrin / README.md
Last active July 24, 2024 05:21
GitHub GraphQL - Get files in a repository

Get GitHub Files

Get the metadata and content of all files in a given GitHub repo using the GraphQL API

You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.

The approach here is to query data from GitHub using the Github V4 GraphQL API.

About the query

@cloudnull
cloudnull / vxlan-mesh-create.sh
Last active February 3, 2024 15:51
Create a vxlan mesh on multiple hosts for multiple bridged interfaces to create isolated user networks. The primary use-case here is tenant Isolation with OpenStack Ironic.
#!/bin/bash
# Copyright 2016, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software