Skip to content

Instantly share code, notes, and snippets.

View adalenv's full-sized avatar
🌐
Worldwide

Adalen Vladi adalenv

🌐
Worldwide
View GitHub Profile
[user]
name = adalenv
email = adalenvladi@gmail.com
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
@adalenv
adalenv / WhatsappSpammer.js
Created October 5, 2018 08:25
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
adalenv / CSVparse.js
Last active October 5, 2018 08:26
Parse csv file to json object
//-read file-\\
var openFile = function(file) {
var reader = new FileReader();
reader.onload = function(){
var f= csvToJson(reader.result);
echo(f);
};
reader.readAsText(file.target.files[0]);
};
//-convert from tab delimited to json array on js-\\
@adalenv
adalenv / sleep.js
Last active November 5, 2018 12:34
function sleep(delayMS) {
var start = new Date().getTime();
while (new Date().getTime() < start + delayMS);
}
vzctl exec 201 "/usr/share/astguiclient/start_asterisk_boot.pl ; /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --debug;" ;
vzctl exec 202 "/usr/share/astguiclient/start_asterisk_boot.pl ; /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --debug;" ;
vzctl exec 203 "/usr/share/astguiclient/start_asterisk_boot.pl ; /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --debug;" ;
vzctl exec 204 "/usr/share/astguiclient/start_asterisk_boot.pl ; /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --debug;" ;
vzctl exec 205 "/usr/share/astguiclient/start_asterisk_boot.pl ; /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --debug;" ;
vzctl exec 206 "/usr/share/astguiclient/start_asterisk_boot.pl ; /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --debug;" ;
vzctl exec 213 "/usr/share/astguiclient/start_asterisk_boot.pl ; /usr/share/astguiclient/ADMIN_keepalive_ALL.pl --debug;" ;
@adalenv
adalenv / openVZ Commands
Last active December 20, 2018 16:35 — forked from rushipkar90/gist:e3a724885664420215c2
OpenVZ Commands
For OpenVZ refer this URL: (https://openvz.org/User_Guide/Operations_on_Containers)
=======================
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.

Keybase proof

I hereby claim:

  • I am adalenv on github.
  • I am adalenv (https://keybase.io/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:

=IF(LEN(C1)>10,RIGHT(C1, LEN(C1)-2),C1) //remove first two chars if lengh> 10
=RIGHT(A1, LEN(A1)-2) //remove first two characters
=CONCATENATE(A1," ",B1) //merge cells
=LEN() //get length
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 / init.coffee
Last active August 27, 2019 15:17
GITHUB_TOKEN
init