Skip to content

Instantly share code, notes, and snippets.

View ItsWachira's full-sized avatar

Wachira ItsWachira

View GitHub Profile
@ItsWachira
ItsWachira / routing-101.md
Created October 31, 2024 06:58 — forked from ochomoswill/routing-101.md
Routing 101

Routing 101


Create the react vite template

pnpm create vite@latest routing-101 --template react-ts

Install packages

@ItsWachira
ItsWachira / merge_vs_rebase_vs_squash.md
Created August 28, 2024 08:08 — forked from mitchellh/merge_vs_rebase_vs_squash.md
Merge vs. Rebase vs. Squash

I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.

I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:

@ItsWachira
ItsWachira / folder_structure.md
Created May 8, 2024 11:53 — forked from ayoubzulfiqar/folder_structure.md
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@ItsWachira
ItsWachira / google-dorks
Created July 10, 2023 01:40 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!