This file contains hidden or 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
| SITE_USER=mysiteuser | |
| SITE_GROUP=$(id $SITE_USER | sed -E 's/.+gid=[[:digit:]]+\(([^)]+)\).+/\1/g') | |
| PROJECT_DIR=/var/www/mysiteproject | |
| BUTHEAD_USER=dimti | |
| FROM_UID=1001 | |
| TO_UID=1000 | |
| INTERMEDIATE_UID=1002 | |
| usermod -u $INTERMEDIATE_UID $BUTHEAD_USER && \ | |
| groupmod -g $INTERMEDIATE_UID $BUTHEAD_USER && \ |
This file contains hidden or 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
| command -v direnv || curl -sfLo /usr/local/bin/direnv https://github.com/direnv/direnv/releases/download/v2.35.0/direnv.linux-amd64 && chmod a+x /usr/local/bin/direnv | |
| command -v starship || curl -sS https://starship.rs/install.sh | sh -s -- -f > /dev/null | |
| command -v yadm && { | |
| yadm remote set-url origin https://vcs.wpstudio.ru/gitea/dotfiles.git | |
| rm -rf .tmux/plugins/tmux-ip-address | |
| yadm pull && yadm checkout . | |
| } || { | |
| curl -sfLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm |
This file contains hidden or 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
| const webpack = require('webpack'); | |
| const path = require('path'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); | |
| module.exports = { | |
| entry: './src/index.js', | |
| output: { | |
| path: path.resolve(__dirname, 'dist'), | |
| filename: 'bundle.js' |