Skip to content

Instantly share code, notes, and snippets.

View HooFoo's full-sized avatar
🧄
What's happening?

Gennadiy HooFoo

🧄
What's happening?
View GitHub Profile
@ferhatbostanci
ferhatbostanci / nginx.conf
Created February 17, 2021 15:37
Mailcatcher with Nginx Reverse Proxy
server {
location /mailcatcher {
proxy_pass http://127.0.0.1:1080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 1d;
sub_filter 'src="/' 'src="/mailcatcher/';
sub_filter 'href="/' 'href="/mailcatcher/';
sub_filter 'url(/' 'url(/mailcatcher/';
@asfaltboy
asfaltboy / css_path.js
Created March 28, 2015 14:19
Get Element CSS Selector
/*
* Copyright (C) 2015 Pavel Savshenko
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2008 Matt Lilek <[email protected]>
* Copyright (C) 2009 Joseph Pecoraro
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met: