Skip to content

Instantly share code, notes, and snippets.

View hamaadraza's full-sized avatar

Syed Hamaad Raza hamaadraza

View GitHub Profile
@CeeFeS
CeeFeS / nginx_reverse_proxy_with_ssl.md
Last active December 4, 2024 08:46
Simple nginx reverse proxy with ssl installation

How-to install/configure a reverse proxy with nginx and ssl

Seven easy steps to configure a full nginx reverse proxy with ssl:

- 1: go to your nginx folder

cd /etc/nginx/sites-available

- 2: create a new config file with your domain or subdomain name

nano {subdomain.domain.de.conf}

- 3: copy this inside the file and replace the right values

@FrederikLi
FrederikLi / AWS Lambda nodejs10.x serverless + phantomjs
Last active November 6, 2023 12:13
AWS Lambda nodejs10.x serverless + phantomjs
Download phantomjs 2.1.1 for linux
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
(https://bitbucket.org/ariya/phantomjs/downloads/)
Move exectuable to root folder: ./lib/phantomjs
Download phantom-lambda-fontconfig-pack
https://github.com/naeemshaikh27/phantom-lambda-fontconfig-pack
Create fonts folder, move *.ttf + *.conf there.
Move all lib*.so.[version] to the root directory
@brunogaspar
brunogaspar / macro.md
Last active November 25, 2024 11:01
Recursive Laravel Collection Macros

What?

If a nested array is passed into a Laravel Collection, by default these will be threaded as normal arrays.

However, that's not always the ideal case and it would be nice if we could have nested collections in a cleaner way.

This is where this macro comes in handy.

Setup