Skip to content

Instantly share code, notes, and snippets.

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

Rashedul Islam Sagor sagormax

🏠
Working from home
View GitHub Profile
@bradtraversy
bradtraversy / docker_wordpress.md
Last active September 16, 2024 05:17
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@gabrysiak
gabrysiak / php-http-basic-auth.php
Created August 14, 2014 19:40
PHP - HTTP Request with Basic Authentication
$username = "some-username";
$password = "some-password";
$remote_url = 'http://www.somedomain.com/path/to/file';
// Create a stream
$opts = array(
'http'=>array(
'method'=>"GET",
'header' => "Authorization: Basic " . base64_encode("$username:$password")
)