Skip to content

Instantly share code, notes, and snippets.

View dmpop's full-sized avatar

Dmitri Popov dmpop

  • Fürth, Germany
  • 16:41 (UTC +02:00)
View GitHub Profile
@dmpop
dmpop / mejiro-ish.sh
Last active April 18, 2023 10:17
iSH-based Bash script
#!/bin/bash
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#!/usr/bin/env bash
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#!/usr/bin/env bash
echo "-----------------------------------------"
echo " Enter a domain name (example: hello.xyz)"
echo " Press ENTER"
echo "-----------------------------------------"
echo
read domain_name
touch /etc/apache2/sites-available/$domain_name.conf
@dmpop
dmpop / vps-setup.sh
Created January 6, 2024 22:01
Automate VPS initial setup
#!/usr/bin/env bash
if [ "$(whoami)" != "root" ]; then
echo "You must run this script as root"
exit 1
fi
apt update
apt upgrade
apt install apache2 php libapache2-mod-php php-gd \
@dmpop
dmpop / languagetool-server-vscodium.md
Last active November 27, 2024 09:41
Self-hosted LanguageTool server + VSCodium

Running a local instance of LanguageTool server with Docker

On the server, create a separate directory for ngrams:

mkdir -p "/home/$USER/ngrams"
cd "/home/$USER/ngrams"

Download and extract ngrams: