Skip to content

Instantly share code, notes, and snippets.

View luislortega's full-sized avatar
🏠
Working from home

∑ (0 to N) = U Hz luislortega

🏠
Working from home
  • 127.0.0.1
View GitHub Profile
@luislortega
luislortega / server.c
Created December 19, 2023 05:55 — forked from nir9/server.c
Minimalist C Web Server - not for production use, only for fun :)
#include <sys/socket.h>
#include <string.h>
#include <fcntl.h>
#include <sys/sendfile.h>
#include <unistd.h>
#include <netinet/in.h>
void main() {
int s = socket(AF_INET, SOCK_STREAM, 0);
struct sockaddr_in addr = {
@luislortega
luislortega / sendMail.go
Created October 22, 2020 18:59 — forked from andelf/sendMail.go
golang send mail net/smtp SMTP
package main
import (
"log"
"net/mail"
"encoding/base64"
"net/smtp"
"fmt"
"strings"