Skip to content

Instantly share code, notes, and snippets.

View dgershman's full-sized avatar
🔒

Danny Gershman dgershman

🔒
View GitHub Profile
#permissions
sudo chmod -R a+rwX folder/
sudo chown -R node:node folder/
#systemd
sudo systemctl enable <service-name>
sudo systemctl daemon-reload
sudo systemctl start|stop <service-name>
@dgershman
dgershman / vlc_commands.sh
Last active September 4, 2015 04:32
vlc ccommands
vlc -vvv file:///home/danny/Downloads/test.mp3 --sout '#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:standard{access=http,dst=:8080/test.mp3'
@dgershman
dgershman / mod_vlc_install_rhel6.4.sh
Last active January 21, 2016 04:25
mod_vlc installation on Centos 6.4
#this maybe better, still testing
# wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo
# mv linuxtech.repo /etc/yum.repos.d
# yum -y install vlc vlc-devel
yum -y install git pkgconfig pcsc-lite-devel
#ragel
cd /usr/local/src
cd /usr/local/src
git clone https://github.com/OpenZWave/open-zwave.git
cd open-zwave
wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.42.tar.gz
tar -zxvf libmicrohttpd-0.9.42.tar.gz -C libmicrohttpd
cd libmicrohttpd
apt-get install libmicrohttpd10
./configure && make && make install
cd ../
git clone https://github.com/OpenZWave/open-zwave-control-panel.git
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm
yum clean all
yum install -y freeswitch-config-vanilla
yum install sox freeswitch-sounds*
rename the new conf folder to conf.factory
clone the config and scripts to the new fs folder
@dgershman
dgershman / index.html
Created February 18, 2015 18:32
radywY
<form>
<input type="text" ""
@dgershman
dgershman / installing_arch.sh
Last active August 29, 2015 14:15
installing arch
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs
hash -r
sudo apt-get install -y npm git openjdk-7-jre-headless
wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main"
sudo apt-get update && sudo apt-get install elasticsearch
sudo update-rc.d elasticsearch defaults 95 10
@dgershman
dgershman / fs1.4_upgrade.sh
Last active February 3, 2016 01:19
Upgrading to FS1.4
#git remote rm origin
#git remote add origin https://freeswitch.org/stash/scm/fs/freeswitch.git
#may need to do this
git config --global http.proxy <http-proxy-server>
#and
export http_proxy=<http-proxy-server>
cd /usr/local/src
yum -y install htop git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel net-snmp-devel patch libogg unixODBC-devel mysql-connector-odbc
@dgershman
dgershman / configureODBC.sh
Last active March 10, 2021 17:32
Used for configuring ODBC for FreeSWITCH
while true; do
read -p "If you already have compiled FreeSWITCH you will need to manually edit the configure file to set enable_core_odbc_support=yes, are you sure you want to continue? (y/n)" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
* ) echo "Please answer yes to continue to installing ODBC and compiling FreeSWITCH, answer no to abort this process.";;
esac
done
yum -y install unixODBC-devel mysql-connector-odbc
@dgershman
dgershman / bash_profile.sh
Last active August 29, 2015 14:07
bash_profile alias for swapping between java6 and java7
#functions
function func_java6() {
export JAVA_HOME=$JAVA6_HOME
echo $JAVA_HOME
}
function func_java7() {
export JAVA_HOME=$JAVA7_HOME
echo $JAVA_HOME
}