This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const WebpackConfig = require('webpack-config').Config; | |
module.exports = new WebpackConfig().merge({ | |
name: 'myapp', | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemon off; | |
worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
upstream my_nginx { | |
server unix:/tmp/nginx.socket fail_timeout=0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
BASE_DIR=/var/www/owncloud/data | |
DEST_DIR=/var/www/mydata | |
# Get all InstantUpload folders | |
dirs="$(find "$BASE_DIR" -type d -name InstantUpload)" | |
## Find those files | |
for d in $dirs ; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************ | |
--Usage | |
node covertCSV.js filename.csv > redirect.conf | |
CSV column A contains base URL and column B contains the Redirect URL. | |
Generates redirects based off of unique GUID in query string if present. | |
************************/ | |
var fs = require('fs'); |