Skip to content

Instantly share code, notes, and snippets.

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

Taymindis Woon Taymindis

🏠
Working from home
View GitHub Profile
@Taymindis
Taymindis / install_nginx_macos_source.md
Created February 25, 2021 03:19 — forked from beatfactor/install_nginx_macos_source.md
Install Nginx on Mac OS from source (without brew)

Install Nginx on Mac OS from source

no Homebrew required

1. Download Nginx

$ cd /usr/local/src
$ curl -OL http://nginx.org/download/nginx-1.12.2.tar.gz
$ tar -xvzf nginx-1.12.2.tar.gz && rm nginx-1.12.2.tar.gz
@Taymindis
Taymindis / socket.c
Created August 30, 2016 07:03 — forked from nolim1t/socket.c
HTTP Request in C using low level write to socket functionality
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>