This file contains hidden or 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
| # ========================================== | |
| # CLI Tools Configuration | |
| # ========================================== | |
| # Aliases for better tools | |
| alias ls='eza --color=always --group-directories-first -l' | |
| alias ll='eza -alF --color=always --group-directories-first' | |
| alias la='eza -al --color=always --group-directories-first' | |
| alias l='eza -Fl --color=always --group-directories-first' | |
| alias l.='eza -a | grep "^\."' |
This file contains hidden or 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 | |
| FOLDER_PATH="./build" | |
| # Create a build folder for artifacts | |
| if [ ! -d "$FOLDER_PATH" ]; then | |
| mkdir -p "$FOLDER_PATH" | |
| fi | |
| # Build the thing |
This file contains hidden or 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 notion.client import NotionClient | |
| import requests | |
| import schedule | |
| import time | |
| from datetime import datetime | |
| def get_todoist_tasks(): | |
| token = "todoist_token" | |
| headers = { |
This file contains hidden or 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
| function Set-NamecheapDdnsRecord { | |
| <# | |
| .SYNOPSIS | |
| Update the IP address of a Dynamic DNS record in Namecheap. | |
| .EXAMPLE | |
| PS C:\> Set-NamecheapDdnsRecord -HostRecord www -Domain brianmorrison.me -ApiKey 12345678abcd -Ip 123.234.123.234 | |
| Updates the record for www.brianmorrison.me to 123.234.123.234 | |
| .NOTES | |
| Author: Brian Morrison II | |
| Date: 4/10/2019 |
This file contains hidden or 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 { createClient } from 'npm:@supabase/supabase-js' | |
| import { verifyWebhook } from 'npm:@clerk/backend/webhooks' | |
| Deno.serve(async (req) => { | |
| // Verify webhook signature | |
| const webhookSecret = Deno.env.get('CLERK_WEBHOOK_SECRET') | |
| if (!webhookSecret) { | |
| return new Response('Webhook secret not configured', { status: 500 }) | |
| } |
This file contains hidden or 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 | |
| # Set variables | |
| REGISTRY_URL="localhost:32000" | |
| get_in_use_images() { | |
| microk8s kubectl get pods --all-namespaces -o jsonpath='{.items[*].spec.containers[*].image}' | tr ' ' '\n' | sort | uniq | |
| } | |
| get_registry_images() { |
This file contains hidden or 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
| // convex/http.ts | |
| import { httpRouter } from "convex/server"; | |
| import { httpAction } from "./_generated/server"; | |
| import { createWebhooksHandler } from "@brianmmdev/clerk-webhooks-handler"; | |
| import { api } from "./_generated/api"; | |
| // define the webhook handler | |
| const handleClerkWebhook = httpAction(async (ctx, request) => { | |
| const handler = createWebhooksHandler({ | |
| onUserCreated: async user => { |
This file contains hidden or 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
| // Follow this setup guide to integrate the Deno language server with your editor: | |
| // https://deno.land/manual/getting_started/setup_your_environment | |
| // This enables autocomplete, go to definition, etc. | |
| // Setup type definitions for built-in Supabase Runtime APIs | |
| import "jsr:@supabase/functions-js/edge-runtime.d.ts" | |
| import { createClient } from 'https://esm.sh/@supabase/supabase-js@2.39.3' | |
| console.log("Hello from Functions!") |
This file contains hidden or 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 { ReactNode } from "react" | |
| import Navbar from "./Navbar" | |
| import { useUser } from "@clerk/remix" | |
| import { Toaster } from "./ui/toaster" | |
| import Spinner from "./Spinner" | |
| import { PosthogPageview } from "~/posthog/PosthogPageview" | |
| import OnboardingDialog from "./OnboardingDialog" | |
| import { useLoaderData } from "@remix-run/react" | |
| import { clerkLoader } from "~/loaders" | |
| import { useQuery } from "convex/react" |
This file contains hidden or 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
Show hidden characters
| { | |
| "Convex Query": { | |
| "prefix": "cvq", | |
| "scope": "typescript", | |
| "body": [ | |
| "export const ${1} = query({", | |
| "\targs: {", | |
| "\t\t${2}", | |
| "\t},", | |
| "\thandler: async (ctx, args) => {", |
NewerOlder