Skip to content

Instantly share code, notes, and snippets.


neocxf neocxf

Block or report user

Report or block neocxf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
neocxf / md-renderer.conf
Created Sep 12, 2018 — forked from max-lt/md-renderer.conf
Nginx config to render markdown files (client side)
View md-renderer.conf
location /__special {
allow all;
root /usr/share/nginx/html/__special;
location = /__md_file {
allow all;
neocxf /
Created Jul 17, 2018 — forked from nmrony/
All configuration files needed to install nginx on Ubuntu 16.04 Compile Nginx from source with nginx-rtmp-module, pagespeed and cache-purge module.
#change it to latest version
echo "Changing Directory to $HOME..."
cd $HOME;
echo "Nginx version to install: " && \
echo "Downloading nginx-$NGINX_VERSION..." && \
wget$NGINX_VERSION.tar.gz && \
echo "Installing Nginx Dependencies..." && \
neocxf / cors-nginx.conf
Created Jul 10, 2018 — forked from alexjs/cors-nginx.conf
Slightly tighter CORS config for nginx
View cors-nginx.conf
# Slightly tighter CORS config for nginx
# A modification of to include a white-list of URLs
# Despite the W3C guidance suggesting that a list of origins can be passed as part of
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox)
# don't seem to play nicely with this.
View duffs-device-improved.js
var iterations = Math.floor(values.length / 8);
var leftover = values.length % 8;
var i = 0;
if ( leftover > 0 )
do {
process( values[i++] );
} while ( --leftover > 0 );
do {
neocxf /
Created Nov 10, 2017 — forked from BDF/
Using the maven shade plugin on a Spring Boot application
  • Maven shade with Spring Boot

The goal was to create an uber-jar out of the Spring boot application. Following the directions given at Apache went very smoothly yet when I tried to execute the jar a large number of spring beans were missing and not getting loaded during runtime. For example, one of the beans not getting loaded was 'AutoConfigurationPackages'

jar -tvf name.jar | grep AutoConfigurationPackages showed that the class file was present in tha jar.

neocxf / OpenWithSublimeText3.bat
Created Sep 13, 2017 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
View OpenWithSublimeText3.bat
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
neocxf / getcookiebyname.js
Created Jun 27, 2017 — forked from meandmax/getcookiebyname.js
get the cookie value by name if a cookie name exists.
View getcookiebyname.js
* get cookie by name without using a regular expression
var getCookie = function(name) {
var getCookieValues = function(cookie) {
var cookieArray = cookie.split('=');
return cookieArray[1].trim();
var getCookieNames = function(cookie) {
neocxf / nginx.conf
Created Jun 5, 2017 — forked from turtlesoupy/nginx.conf
node.js upstream nginx config
View nginx.conf
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
neocxf / Angular seed with sockets example - app.js
Created May 17, 2017 — forked from laterbreh/Angular seed with sockets example - app.js
Basic ping pong with angular and sockets. This uses an express backend to communicate the emit events.
View Angular seed with sockets example - app.js
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
neocxf / webpackProgrammaticConfig.js
Created Mar 15, 2017 — forked from jwietelmann/webpackProgrammaticConfig.js
File that exports separate webpack configs for frontend and backend
View webpackProgrammaticConfig.js
var webpack = require('webpack');
var path = require('path');
var fs = require('fs');
var deepMerge = require('deep-merge');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
// Set up config merging function.
var merge = deepMerge(function(target, source, key) {
You can’t perform that action at this time.