Skip to content

Instantly share code, notes, and snippets.

@yafiyogi
yafiyogi / Third-Party-Library-Build-Instructions.txt
Last active November 1, 2025 13:56
Third Party Library Build Instructions
# Note! change YY_TP_INSTALL_DIR to suit your environment.
export YY_TP_INSTALL_DIR="${HOME}/code/tp"
zlib
====
$ curl -O https://www.zlib.net/current/zlib.tar.gz
$ tar -xvf zlib.tar.gz
$ cd zlib-x.x.x
$ ./configure --prefix=${YY_TP_INSTALL_DIR} --static
... or ...
@yafiyogi
yafiyogi / Email Server (Linux, Unix, Mac).md
Created June 28, 2022 10:28 — forked from surajitbasak109/Email Server (Linux, Unix, Mac).md
Setup Local Mail Server using Postfix for Laravel

Setup Local Mail Server using Postfix for Laravel

You can follow these steps to create your own local mail server using postfix.

Before that we need to learn what is Postfix? Postfix is a mail transfer agent (MTA) that routes and delivers electronic mail. And Mail transfer agent is a software that transfers electronic mail from one computer to another computer using Simple Mail Transfer Protocol(SMTP).

Here we are going to use local mail for that and we will use sendmail driver for our laravel project.

1 - Point localhost.com to your machine

@yafiyogi
yafiyogi / structured_bindings.cpp
Last active June 6, 2021 23:53
C++ Structured Bindings for classes Recipe
/*
* MIT License
*
* Copyright (c) 2021 Yafiyogi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is