sudo apt install curl make git build-essential zlib1g-dev tk-dev \
libssl-dev libxml2-dev libxmlsec1-dev libreadline-dev \
liblzma-dev libbz2-dev libsqlite3-dev libffi-dev \
libsasl2-dev libldap2-dev
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
#!/bin/bash | |
sudo adduser --disabled-password --gecos "" nginx | |
git clone --recurse-submodules git@github.com:google/ngx_brotli.git | |
cd ngx_brotli/deps/brotli/ && mkdir out && cd out | |
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed .. | |
cmake --build . --config Release --target brotlienc && cd ../../../../ | |
git clone git@github.com:openresty/headers-more-nginx-module.git ngx_headers_more |
Install NVM, NPM and Elasticdump
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
nvm install --lts
npm install elasticdump -g
Dump data into file
elasticdump \
--input=http://localhost:9200/sample_index \
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
# ======================== Elasticsearch Configuration ========================= | |
# | |
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html | |
# | |
# ------------------------------------------------------------------------------ | |
discovery.type: single-node | |
cluster.name: vormir | |
node.name: vormir-zero |
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
#!/bin/bash | |
echo "Add user and disable password prompt" | |
adduser manti | |
usermod -aG sudo manti | |
echo "manti ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
echo "Remove unnecessary packages" | |
apt remove -y needrestart | |
echo "Install base system packages" |
sudo apt install -y yasm libtheora-dev libvorbis-dev libx264-dev libx265-dev \
libopus-dev libaom-dev libwebp-dev libmp3lame-dev libfdk-aac-dev
git clone https://git.ffmpeg.org/ffmpeg.git && cd ffmpeg/
./configure --enable-gpl --enable-nonfree \
--enable-libfdk-aac --enable-libmp3lame --enable-libopus \
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
#!/bin/sh | |
git filter-branch --env-filter ' | |
OLD_EMAIL="your-old-email@example.com" | |
CORRECT_NAME="Your Correct Name" | |
CORRECT_EMAIL="your-correct-email@example.com" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then |