This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#add the repositories | |
sudo apt-get update && sudo apt-get install -y curl | |
curl https://files.freeswitch.org/repo/ubuntu/freeswitch-1.6/freeswitch_archive_g0.pub | apt-key add - | |
echo "deb http://files.freeswitch.org/repo/ubuntu/freeswitch-1.6/ trusty main" | sudo tee /etc/apt/sources.list.d/freeswitch.list | |
sudo apt-get update | |
# install dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file="./lambdas.txt" | |
lines=`cat $file` | |
targetDir=$PWD; | |
#for line in $(ls $targetDir/) # this cycle for all subdirs | |
for line in $lines; #this cycle for list from file | |
do | |
echo "Start processing for " $line | |
cd $targetDir/$line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export abstract class BaseClass { | |
/** | |
* Generic method to typeguard provided instance | |
* @param entity | |
*/ | |
public static classOf<T extends typeof BaseClass>( | |
this: T, | |
entity: BaseClass, | |
): entity is InstanceType<T> { | |
return entity.constructor.name === this.name; |