UDP Trash Hack for WireGuard on AsusWRT Merlin
Проверяем, что включен пункт меню Enable JFFS custom scripts and configs
- Кладём файл
wgclient-start
в/jffs/scripts/
- Делаем скрипт запускаемым
Проверяем, что включен пункт меню Enable JFFS custom scripts and configs
wgclient-start
в /jffs/scripts/
const { sources } = require('webpack') | |
const { getCompilerHooks } = require('webpack-manifest-plugin') | |
const PLUGIN_NAME = 'BundleManifestPlugin' | |
/** @typedef {import("webpack").Compiler} Compiler */ | |
/** | |
* @typedef {Object} Options | |
* @property {string} to |
const minimatch = require('minimatch') | |
const path = require('path') | |
const PLUGIN_NAME = 'CollectEntriesRoutesPlugin' | |
const routeMap = new Map() | |
/** @typedef {import("webpack").Compiler} Compiler */ | |
/** |
import peerDepsExternal from 'rollup-plugin-peer-deps-external' | |
import alias from 'rollup-plugin-alias' | |
import babel from 'rollup-plugin-babel' | |
import commonjs from 'rollup-plugin-commonjs' | |
import json from 'rollup-plugin-json' | |
import filesize from 'rollup-plugin-filesize' | |
import resolve from 'rollup-plugin-node-resolve' | |
import replace from 'rollup-plugin-replace' | |
import { eslint } from 'rollup-plugin-eslint' | |
import cleaner from 'rollup-plugin-cleaner' |
import sass from 'rollup-plugin-sass' | |
import webworkify from 'rollup-plugin-webworkify' | |
import bundleWorker from 'rollup-plugin-bundle-worker' | |
import autoprefixer from 'autoprefixer' | |
import alias from 'rollup-plugin-alias' | |
import babel from 'rollup-plugin-babel' | |
import cjs from 'rollup-plugin-commonjs' | |
import cssurl from 'postcss-url' | |
import env from 'postcss-preset-env' | |
import json from 'rollup-plugin-json' |
This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.
Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.
Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup
const RAW_CONTENT_TYPES = ['image/svg+xml'] | |
/** | |
* Fetch url | |
* | |
* @param {string} url | |
*/ | |
export const fetchResources = url => fetch(url, { | |
credentials: 'same-origin', | |
}).then((response) => { |
[ignore] | |
<PROJECT_ROOT>/app/* | |
<PROJECT_ROOT>/bin/* | |
<PROJECT_ROOT>/config/* | |
<PROJECT_ROOT>/db/* | |
<PROJECT_ROOT>/doc/* | |
<PROJECT_ROOT>/dockerfiles/* | |
<PROJECT_ROOT>/engines/* | |
<PROJECT_ROOT>/kubernetes/* | |
<PROJECT_ROOT>/lib/* |
#!/usr/bin/env node | |
/** | |
* Flowtype understands Node (or Haste) imports but not Webpack. | |
* | |
* Many codebases have webpack set up like: | |
* src/foo.js | |
* src/components/Bar.jsx | |
* | |
* And then import them like `require('foo')` or `require/components/Bar.jsx` | |
* |
{ | |
plugins: [ | |
new webpack.optimize.CommonsChunkPlugin({ | |
name: 'app', | |
async: 'common', | |
children: true, | |
deepChildren: true, | |
minChunks: (module, count) => { | |
return count >= 3 && module.context && !module.context.includes('node_modules'); | |
}, |