Skip to content

Instantly share code, notes, and snippets.

View SankaitLaroiya's full-sized avatar

Sankait Laroiya SankaitLaroiya

View GitHub Profile
@soheilhy
soheilhy / nginxproxy.md
Last active March 22, 2024 08:54
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

@tarolandia
tarolandia / steps
Created May 5, 2013 02:30
Disable sync flag when mounting an External HDD to your raspberry pi (xBian)
sudo vi /etc/usbnount/usbmount.conf
...
MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime,rw"
...
remove sync flag and save the file
...
@mkchandler
mkchandler / Setting up SourceGear DiffMerge for Git.md
Last active January 13, 2022 10:44
Setup guide for making Git recognize and use SourceGear DiffMerge.
  1. Download SourceGear DiffMerge: http://sourcegear.com/diffmerge/index.html

  2. Add the following to your global .gitconfig file:

     [diff]
         tool = DiffMerge
     [difftool "DiffMerge"]
         cmd = 'C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe' "$LOCAL" "$REMOTE"
     [merge]
    

tool = DiffMerge