Skip to content

Instantly share code, notes, and snippets.

View voatsap's full-sized avatar

Volodymyr Tsap voatsap

View GitHub Profile
@voatsap
voatsap / configure output
Created December 26, 2018 12:00
configure command for asterisk
root@iCall-UniMRCP:~/asterisk-unimrcp# ./configure --with-asterisk-version=13.1.0 --with-unimrcp=/opt/unimrcp
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
@voatsap
voatsap / compilation error
Created December 26, 2018 12:03
compilation error
.libs/audio_queue.o:/usr/include/asterisk/strings.h:1099: first defined here
.libs/ast_unimrcp_framework.o: In function `ast_rq_is_int':
/usr/include/asterisk/config.h:1116: multiple definition of `ast_rq_is_int'
.libs/audio_queue.o:/usr/include/asterisk/config.h:1116: first defined here
.libs/recog_datastore.o: In function `ast_atomic_fetchadd_int':
/usr/include/asterisk/lock.h:718: multiple definition of `ast_atomic_fetchadd_int'
.libs/audio_queue.o:/usr/include/asterisk/lock.h:718: first defined here
.libs/recog_datastore.o: In function `ast_atomic_dec_and_test':
/usr/include/asterisk/lock.h:764: multiple definition of `ast_atomic_dec_and_test'
@voatsap
voatsap / initc-vault.sh
Last active March 27, 2019 20:11
initc-vault.sh
#!/bin/sh
#echo "deploying kvp from vault with $VAULT_ADDR, $VAULT_ROLE, $VAULT_SECRET"
apk update >/dev/null 2>&1
apk add jq >/dev/null 2>&1
KUBE_TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
VAULT_K8S_LOGIN=$(curl -s --request POST --data '{"jwt": "'"$KUBE_TOKEN"'", "role": "'"$VAULT_ROLE"'"}' $VAULT_ADDR/v1/auth/kubernetes/login)
X_VAULT_TOKEN=$(echo $VAULT_K8S_LOGIN | jq -r '.auth.client_token')
echo "vault{
@voatsap
voatsap / Logo
Created January 23, 2020 07:02
import streamlit as st
import pandas as pd
from st_aggrid import AgGrid, GridUpdateMode
from st_aggrid.grid_options_builder import GridOptionsBuilder
import pickle
from st_on_hover_tabs import on_hover_tabs
import collections
st.set_page_config(layout="wide")