Skip to content

Instantly share code, notes, and snippets.

View dayachettri's full-sized avatar
🐶
learning

Daya Chettri dayachettri

🐶
learning
View GitHub Profile
@danawoodman
danawoodman / Using Golang templ with the Echo framework.md
Last active July 15, 2025 09:57
Using Golang templ with the Echo framework

Using Golang templ with the Echo framework

templ is a great view framework but there is no clear documentation (as of writing) showing how to use it with the Echo web framework. This short guide should show you how to set it up:

Install dependencies

Install templ and echo:

go get github.com/a-h/templ
import { diskStorage } from "multer";
import { FileInterceptor } from "@nestjs/platform-express";
import { ApiResponse, ApiConsumes, ApiBody } from "@nestjs/swagger";
import {
Res,
Get,
Post,
Param,
Controller,
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active April 5, 2026 17:40
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.