Skip to content

Instantly share code, notes, and snippets.

View daminebenq's full-sized avatar
🇹🇳
How long ? not long ! Because what you reap is what you sow.

Mohamed Amine Ben Salah daminebenq

🇹🇳
How long ? not long ! Because what you reap is what you sow.
View GitHub Profile
@daminebenq
daminebenq / add-domain.sh
Created May 26, 2021 22:40
add-domain.sh - apache2
#!/bin/bash
read -p "Enter your desired Domain Name: " DOMAIN
read -p "Enter your desired WEB_ROOT_DIR: " WEBROOT
read -p "Enter your ServerAdmin email address: " EMAIL
name=$DOMAIN
WEB_ROOT_DIR=$WEBROOT
email=${EMAIL-'webmaster@localhost'}
sitesEnable='/etc/apache2/sites-enabled/'
@daminebenq
daminebenq / add-domain.sh
Last active May 26, 2021 22:40 — forked from daminebenz/add-domain.sh
add-domain.sh - nginx
#!/bin/bash
# Info
# ---
# script can run with the domain as a command line input
# `sudo ./add-domain.sh your-new-domain.com` or without and
# the script will prompt the user for input
#config
web_root='/usr/share/nginx'
#!/bin/bash -ex
# Copyright (c) 2018 BigBlueButton Inc.
#
# This program is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free Software
# Foundation; either version 3.0 of the License, or (at your option) any later
# version.
#
# BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
@daminebenq
daminebenq / vscode_settings
Created January 30, 2020 18:10
vscode_settings
// vscode settings
@daminebenq
daminebenq / installer.sh
Created December 30, 2019 17:05
Teamspeak Server install script
#!/bin/bash
# Name: install_ts3-server.sh
# Version: 0.0
# Created By: BJARNE L.
# ==> VARIABLES <==
# user to run the ts3server and where to install it
TS3_USER="teamspeak3"
TS3_DIR="/opt/ts3server"
TS3_VER="3.10.0"