sudo apt install gcc 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 | |
git clone https://github.com/lwfinger/rtl8852au.git /opt/rtl8852au/ | |
cd /opt/rtl8852au/ | |
dkms add /opt/rtl8852au/ | |
dkms build rtl8852au -v 1.15.0.1 | |
dkms install rtl8852au -v 1.15.0.1 | |
modinfo 8852au | |
modprobe 8852au |
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 [email protected]: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 [email protected]: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" |
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="[email protected]" | |
CORRECT_NAME="Your Correct Name" | |
CORRECT_EMAIL="[email protected]" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then |