Skip to content

Instantly share code, notes, and snippets.

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

Andres Carmona valdepeace

🏠
Working from home
View GitHub Profile
Blackhat USA 2016 presentations
http://owasp.org/index.php/iran
Twitter : https://twitter.com/owaspiran
Telegram : https://telegram.me/irOWASP
https://www.blackhat.com/docs/us-16/materials/us-16-Molinyawe-Shell-On-Earth-From-Browser-To-System-Compromise.pdf
@valdepeace
valdepeace / nginxproxy.md
Created July 3, 2018 09:44 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@valdepeace
valdepeace / post-receive
Created November 7, 2017 16:26 — forked from lemiorhan/post-receive
Post-receive hook to deploy the code being pushed to production branch to a specific folder
#!/bin/bash
target_branch="production"
working_tree="PATH_TO_DEPLOY"
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then