Skip to content

Instantly share code, notes, and snippets.

View sirius0486's full-sized avatar

sirius sirius0486

View GitHub Profile
@sirius0486
sirius0486 / not-authorized.tsx
Last active October 18, 2024 07:27
route.ts
import Link from "next/link"
import { AlertCircle } from "lucide-react"
import { Button } from "@/components/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
@sirius0486
sirius0486 / user-avatar.tsx
Created October 16, 2024 16:10
user-avatar.tsx
"use client"
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from "@/components/ui/hover-card"
import { LogOut } from "lucide-react"
@sirius0486
sirius0486 / Powseshell_gitalias.ps1
Last active May 19, 2024 15:13
Powershell profile
function sw() {
git switch $args
}
function unresolve() {
git checkout --conflict=merge --
}
# temporarily ignoring files
function ignore() {
@sirius0486
sirius0486 / shortcut.md
Created September 4, 2023 11:17
Shortcut (Mac、VS Code、IDEA、Arc)

Mac

Mac 系统内置快捷键

Commands Usage Mean
Command + A 全选 Select All
Command + X 剪切 Cut
Command + C 复制 Copy
Command + V 粘贴 Paste
{
// $0 — tab stop final cursor position
// $1, $2 for tab stops — tab stop to specify the cursor location and allow the user to customize the the name of the component
// ${1:label}, ${2:another} for placeholders.
// ${TM_FILENAME_BASE} — variable for getting the current filename
// \t
// /capitalize
// JS & TS import snippets
"Print to console": {