Skip to content

Instantly share code, notes, and snippets.

@dchernokur
dchernokur / .zshrc
Created June 30, 2019 22:02
macOS 10.15 Catalina switch from .bash_profile to .zshrc
export PATH="$PATH:$HOME/.npm-global/bin"
@dchernokur
dchernokur / index.js
Created January 10, 2018 16:41
webpack initial chunk with dynamic import
//chunkFilename: "[name].bundle.js" in output of webpack config to split in 2
import(/* webpackChunkName: "app" */ "./App").then(App => App.start());
@dchernokur
dchernokur / index.js
Last active June 29, 2017 19:51
html webpack plugin custom chunks order
//https://github.com/jantimon/html-webpack-plugin/issues/140#issuecomment-263927464
entry: {
first: 'first.js',
second: 'second.js'
}
new HtmlWebpackPlugin({
chunksSortMode: function (a, b) {
@dchernokur
dchernokur / rd-clean.sh
Created November 12, 2015 10:52 — forked from unicolet/rd-clean.sh
Shell script to purge Rundeck execution history
#!/bin/sh
# setup ~/.pgpass to allow passwordless connection to postgres
# keep last 30 executions for each job
KEEP=30
cd /var/lib/rundeck/logs/rundeck
JOBS=`find . -maxdepth 3 -path "*/job/*" -type d`