Skip to content

Instantly share code, notes, and snippets.

View adalenv's full-sized avatar
🌐
Worldwide

Adalen Vladi adalenv

🌐
Worldwide
View GitHub Profile
@adalenv
adalenv / init.coffee
Last active August 27, 2019 15:17
GITHUB_TOKEN
init
service rocketchat stop
sudo rm -rf /opt/Rocket.Chat
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar -xzf /tmp/rocket.chat.tgz -C /tmp
cd /tmp/bundle/programs/server && npm install
sudo mv /tmp/bundle /opt/Rocket.Chat
sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat
service rocketchat start
@adalenv
adalenv / freepbx-asterisk13-install-opus.sh
Last active September 9, 2019 22:01 — forked from worldadventurer/freepbx-asterisk13-install-opus.sh
FreePBX Asterisk 13 Install Opus Codec
# This is for x64 only
# To check x32 vs x64, run: getconf LONG_BIT
# Tested on Centos x64 - on a FreePBX Distro 13 x64
echo -------
echo This installs opus codec from the Digium website
echo -------
read -rsp $'Press any key to continue OR CTRL-c to QUIT ...\n' -n1 key
cd ~
wget http://downloads.digium.com/pub/telephony/codec_opus/asterisk-13.0/x86-64/codec_opus-13.0_1.1.0-x86_64.tar.gz
console.log('test');
<?php
# vdc_db_query.php
#
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# This script is designed to exchange information between vicidial.php and the database server for various actions
#
# required variables:
# - $server_ip
# - $session_name