Skip to content

Instantly share code, notes, and snippets.

View margauxflores's full-sized avatar
🖐️
Looking for fun projects to help out with!

Margaux Flores margauxflores

🖐️
Looking for fun projects to help out with!
View GitHub Profile
@margauxflores
margauxflores / middleware.ts
Created September 13, 2023 01:14
Next.js Redirect All Pages to Index Page
import { NextResponse, type NextRequest } from 'next/server';
export function middleware(req: NextRequest) {
const { pathname } = req.nextUrl;
if (pathname == '/') {
return NextResponse.next();
}
return NextResponse.redirect(new URL('/', req.url));
@margauxflores
margauxflores / escape.json
Last active February 22, 2024 15:45
Karabiner Elements - Escape Key to Back Tick and Tilde and Escape + Ctrl to Escape
{
"description": "Escape Key",
"manipulators": [
{
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"left_control"
]
@margauxflores
margauxflores / delete.cue
Created March 5, 2024 05:03
Sample Call
package resolvers
import (
schema "github.com/tailor-inc/platform-core-services/cmd/tailorctl/schema/v1:pipeline"
"{{ .Values.cue.package }}/{{ .Values.cue.dist }}/directory:directories"
"{{ .Values.cue.package }}/{{ .Values.cue.dist }}/pipeline:settings"
)
// input moveToDeletedWorkrecordInput
// id: ID!