Skip to content

Instantly share code, notes, and snippets.

View horlathunbhosun's full-sized avatar
🎯
Focusing

Olulode Olatunbosun horlathunbhosun

🎯
Focusing
View GitHub Profile
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
sudo apt-get install php-mbstring
sudo apt-get install php-zip
sudo apt-get install php-xml
sudo apt-get install php-mysql
server {
root /var/www/app/public;
index index.php;
server_name domain;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
@alghanmi
alghanmi / curl_example.cpp
Created May 5, 2014 20:12
cURL C++ Example
#include <iostream>
#include <string>
#include <curl/curl.h>
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}