Skip to content

Instantly share code, notes, and snippets.

Avatar

Ömer Faruk Çakı ofarukcaki

View GitHub Profile
@ofarukcaki
ofarukcaki / default.md
Last active Jul 26, 2018
create-react-app with react-router Nginx 404 error solution in page refresh
View default.md

You need to edit /etc/nginx/sites/available/default file

change the location part as follows

location / { try_files $uri $uri/ /index.html; }

lastly, refresh the Nginx with sudo servuce restart nginx

@ofarukcaki
ofarukcaki / notes.md
Created May 22, 2018 — forked from matthewjberger/notes.md
How to make an electron app using Create-React-App and Electron with Electron-Builder.
View notes.md
View how-to-setup-shadowsocks-on-your-ubuntu-server.md

How to setup Shadowsocks on your Ubuntu server

Your school or company network may block the access to a few specific websites. To solve this problem, I'd highly recommend Shadowsocks, since it is the easiest proxy tool I've ever found, and it's FREE (of course iff you have your own server running).

First, ssh to your server, and make sure you have Python and pip installed. If you have Python but not pip, install it using the following command

$ sudo apt-get install python3-pip