Skip to content

Instantly share code, notes, and snippets.

View franklinmoy3's full-sized avatar
πŸ—Ώ

Franklin Moy franklinmoy3

πŸ—Ώ
View GitHub Profile
@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
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
@philtrade
philtrade / ovpn_owrt.sh
Last active February 24, 2025 16:36
Set up VPN server on openWRT with openvpn, openssl, and easyrsa
# This script is adapted/tweaked from the openWRT wiki page on creating VPN server.
# VPN client can access outside world as if the traffic originates from the openWRT router.
#
# Prerequisites
# 1. opkg update && opkg install openvpn-openssl openvpn-easy-rsa
# 2. Get a public DDNS domain name or a static IP for the vpn server, put it into ddns_name="" near the bottom of the script.
# 3. Customize parameters, server/client service name, subnet, server port, output dir etc in the same bottom section.
#
# USAGE:
# 1. sh ./ovpn_owrt.sh <pki directory> [optional dh.pem file]
@stramel
stramel / HOWTO.md
Last active April 24, 2025 04:35
Installing Powerline fonts on Windows 10

Installing Powerline fonts on Windows 10

Steps

  1. Download and extract zip from here
  2. Press Windows + x
  3. Press a (Selects PowerShell (Admin))
  4. Navigate to directory where fonts were extracted to (cd ${HOME}\Downloads\fonts-master\fonts-master)
  5. Set Execution Policy Set-ExecutionPolicy RemoteSigned [1]
  6. Press y then Enter to accept
@wojteklu
wojteklu / clean_code.md
Last active April 29, 2025 11:05
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules