Skip to content

Instantly share code, notes, and snippets.

View ItsWachira's full-sized avatar

Wachira ItsWachira

View GitHub Profile
@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!
@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 / gist:08cbadb2d702184db55469d3cc4d9f1b
Last active June 29, 2024 18:48
What is Project Euler? Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems. The motivatio…
Multiples of 3 or 5
Problem 1
If we list all the natural numbers below 10 that are multiples of 3 or 5 , we get 3,5,6,9. The sum of these multiples is 23
.
Find the sum of all the multiples of 3 or 5 below 1000.
solution (js) ----
@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 / 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