Skip to content

Instantly share code, notes, and snippets.

View neesonqk's full-sized avatar
🎯
Focusing

N.z neesonqk

🎯
Focusing
  • IT
View GitHub Profile
@neesonqk
neesonqk / Git configuration command
Last active October 3, 2018 09:51
Git configuration command
#init
git init
# disable ssl verification
git config http.sslVerify false
# set proxy
git config http.proxy http://192.168.15.70:8899
# init repo
@neesonqk
neesonqk / sites-available-ghost
Created May 20, 2017 11:39 — forked from robotnealan/sites-available-ghost
DigitalOcean LetsEncrypt Nginx Config
server {
listen 80;
server_name yourdomain.com www.yourdomain.com;
location ~ ^/.well-known {
root /var/www/ghost;
}
location / {
return 301 https://$server_name$request_uri;
@neesonqk
neesonqk / CORSFilter.java
Created May 2, 2017 15:31 — forked from zeroows/CORSFilter.java
To enable CORS support in Spring MVC 4 - Access-Control-Allow-Origin
package com.elm.mb.rest.filters;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
@neesonqk
neesonqk / maintenance-mode.conf
Created November 13, 2016 07:26 — forked from rictorres/maintenance-mode.conf
nginx maintenance mode
server {
listen 80;
server_name mysite.com;
root /var/www/mysite.com/;
location / {
if (-f $document_root/maintenance.html) {
return 503;
}
... # the rest of your config goes here