Skip to content

Instantly share code, notes, and snippets.


Adalen Vladi adalenv

View GitHub Profile
View vcd_db_query.php
# vdc_db_query.php
# Copyright (C) 2016 Matt Florell <> 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
# 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 ~
View RocketchatUpdate
service rocketchat stop
sudo rm -rf /opt/Rocket.Chat
curl -L -o /tmp/
tar -xzf /tmp/ -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

Keybase proof

I hereby claim:

  • I am adalenv on github.
  • I am adalenv ( on keybase.
  • I have a public key whose fingerprint is C0E2 18F0 E3AE DD2B A6DB 2C9B B549 4F5C A538 5013

To claim this, I am signing this object:

vzctl exec 201 "/usr/share/astguiclient/ ; /usr/share/astguiclient/ --debug;" ;
vzctl exec 202 "/usr/share/astguiclient/ ; /usr/share/astguiclient/ --debug;" ;
vzctl exec 203 "/usr/share/astguiclient/ ; /usr/share/astguiclient/ --debug;" ;
vzctl exec 204 "/usr/share/astguiclient/ ; /usr/share/astguiclient/ --debug;" ;
vzctl exec 205 "/usr/share/astguiclient/ ; /usr/share/astguiclient/ --debug;" ;
vzctl exec 206 "/usr/share/astguiclient/ ; /usr/share/astguiclient/ --debug;" ;
vzctl exec 213 "/usr/share/astguiclient/ ; /usr/share/astguiclient/ --debug;" ;
View openVZ Commands
For OpenVZ refer this URL: (
vzlist -a ------ To list all the containers on OpenVZ including running and stopped.
vzlist -a 101 ----- To check specific container is present or not (101 => Container ID)
/vz/template/cache ------ Contains all the OS templates
/vz/private/ ----- it contains list of all the existing containers.
View WhatsappSpammer.js
var allElementsClassName = "m6ZEb";
var buttonSendClass = "._35EW6";
var inputMessageClassName = "_2S1VP";
var timer = setInterval(general, 1000);
function general() {
if (document.getElementsByClassName(allElementsClassName)[0] != null) {
console.log("WS Spam: Found Div to inject ...");
var item = document.getElementsByClassName(allElementsClassName)[0];
adalenv / CSVparse.js
Last active Oct 5, 2018
Parse csv file to json object
View CSVparse.js
//-read file-\\
var openFile = function(file) {
var reader = new FileReader();
reader.onload = function(){
var f= csvToJson(reader.result);
//-convert from tab delimited to json array on js-\\