Skip to content

Instantly share code, notes, and snippets.

View aldoyh's full-sized avatar
🎩
I am Laravel-ing

Hasan AlDoy aldoyh

🎩
I am Laravel-ing
View GitHub Profile
@aldoyh
aldoyh / dumprequest.php
Created August 28, 2023 03:34 — forked from magnetikonline/dumprequest.php
PHP script to dump full HTTP request to file (method, HTTP headers and body).
<?php
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
class DumpHTTPRequestToFile {
public function execute($targetFile) {
$data = sprintf(
"%s %s %s\n\nHTTP headers:\n",
$_SERVER['REQUEST_METHOD'],
$_SERVER['REQUEST_URI'],
$_SERVER['SERVER_PROTOCOL']
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=$1 # <-- wordpress owner
WP_GROUP=$1 # <-- wordpress group
WP_ROOT=$2 # <-- wordpress root directory
@aldoyh
aldoyh / localhost-ssl-certificate.md
Created July 31, 2022 04:19 — forked from ethicka/localhost-ssl-certificate.md
Localhost SSL Certificate on Mac OS

🚨 2020 Update: I recommend using mkcert to generate local certificates. You can do everything below by just running the commands brew install mkcert and mkcert -install. Keep it simple!


This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.

Set up localhost.conf

sudo nano /etc/ssl/localhost/localhost.conf

@aldoyh
aldoyh / README.md
Last active June 18, 2024 03:28 — forked from og-shawn-crigger/favicon.sh
favicon icon generator shell script

One Line Favicon Creator

Coded by: Hasan AlDoy


MIT License

Copyright (c) Facebook, Inc. and its affiliates.