Skip to content

Instantly share code, notes, and snippets.

View fabiomontefuscolo's full-sized avatar

Fabio Montefuscolo fabiomontefuscolo

View GitHub Profile

Nginx + Git

  1. Nginx conf is above
  2. Then, supposing the repository owner is the user git
systemctl enable fcgiwrap@git
systemctl start fcgiwrap@git
systemctl status fcgiwrap@git
@fabiomontefuscolo
fabiomontefuscolo / jvb-jicofo-on-openfire.md
Last active May 9, 2020 01:11
[WIP] jitsi-videobridge and jicofo connection to Openfire

Jitsi over Openfire

This document presents the configuration steps to install Jitsi meetings over the Openfire XMPP server. But it doesn't cover the Openfire installation.

Materials

  • ClearOS 7
  • Apache 2.4
  • Java 1.8
LogFormat "%h %l %u %t \"%m %{REQUEST_SCHEME}x://%v%U%q\" %>s %b \
\"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
@fabiomontefuscolo
fabiomontefuscolo / move-to-clearos.sh
Created January 13, 2020 04:12
From CentOS 7 to ClearOS 7
#!/bin/bash
#
# It is based on a StackScript found in Linode.
#
#!/bin/bash
rpm -Uvh "https://mirror2-singapore.clearos.com/clearos/7/updates/x86_64/RPMS/clearos-release-7-7.3.v7.x86_64.rpm"
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-ClearOS-7
# .bashrc
shopt -s histappend
export HISTCONTROL=ignoreboth
export HISTTIMEFORMAT='%F %T '
export PROMPT_COMMAND="history -a;${PROMPT_COMMAND}"
export GLOBIGNORE="${GLOBIGNORE-'.:..'}"
export EDITOR=vim
export SYSTEMD_PAGER=cat
@fabiomontefuscolo
fabiomontefuscolo / create-tiki-instance.sh
Last active October 7, 2019 17:04
Script to create a Tiki instance in clearos
#!/bin/bash
version="20.x"
domain="$1";
db_host="localhost"
if [ -z "$domain" ];
then
echo "A domain name is needed" >&2
exit 1
fi
@fabiomontefuscolo
fabiomontefuscolo / tiki20-fix-permissions.sh
Created September 6, 2019 14:00
fix tiki20 permissions
#!/bin/bash
SELF="${0}"
tiki_path=""
safe_user="root"
safe_group="root"
web_user="$(grep -Eo '^(apache|httpd|wwwrun|www-data)' /etc/passwd)"
@fabiomontefuscolo
fabiomontefuscolo / tiki-backup.sh
Created September 2, 2019 16:34
Backup a TikiWiki instance
#!/bin/bash
tiki_name=''
tiki_path=''
bckp_path=''
db_user=''
db_pass=''
db_name=''
db_host=''
@fabiomontefuscolo
fabiomontefuscolo / tiki-docker-dev-env.markdown
Created July 21, 2019 10:32
Create a development environment for Tiki using Docker

Docker dev environment for Tiki

Getting the tiki repository

The first thing needed for any development environment is the source code of application to work on.

Tiki has a huge history and this means a huge git repository. So, instead to clone a full Tiki repository for each instance of Tiki website, it is possible to create a central repository and create clones from this local repository.

@fabiomontefuscolo
fabiomontefuscolo / new-of-plugin-dev.markdown
Last active August 18, 2023 22:01
Starting plugin development in Openfire

New Openfire Plugin

Install requirements

$ sudo pacman -S \
	intellij-idea-community-edition \
	jre8-openjdk \
	maven