Skip to content

Instantly share code, notes, and snippets.

View Issaminu's full-sized avatar
🏃‍♂️
Chasing Goombas

Issam Boubcher Issaminu

🏃‍♂️
Chasing Goombas
View GitHub Profile
@Issaminu
Issaminu / go_update.sh
Created June 18, 2024 20:36
Bash script that updates Golang to latest version
#!/usr/bin/env bash
version=$(go version | awk '{print $3}')
release=$(wget -qO- "https://golang.org/VERSION?m=text" | head -n 1)
if [[ $version == "$release" ]]; then
echo "The local Go version ${release} is up-to-date."
exit 0
else
echo "The local Go version is ${version}. A new release ${release} is available."
@Issaminu
Issaminu / layout.tsx
Created August 29, 2023 13:40
/app/layout.tsx
import "@/styles/globals.css";
import Providers from "@/app/providers";
import { headers } from "next/headers";
import localFont from "next/font/local";
import { Metadata } from "next";
import { ClerkProvider } from "@clerk/nextjs";
const inter = localFont({
src: "../public/fonts/Inter.ttf",
display: "swap",