start new:
tmux
start new with session name:
tmux new -s myname
# Prepare kaldi exp to vosk model format. ! Unnecessary | |
# https://gist.github.com/mzaksana/83f673a2e0460f88c671c4f7f94dc0bb | |
online2-tcp-nnet3-decode-faster \ | |
--verbose=1 \ | |
--endpoint.silence-phones=1:2:3:4:5 \ | |
--mfcc-config=model-android/conf/mfcc.conf \ | |
--ivector-extraction-config=model-android/conf/ivector_extractor.conf \ | |
model-android/am/final.mdl \ | |
model-android/graph/HCLG.fst \ |
# Script to genarate vosk api model from kaldi exp | |
# by mzaksana | |
# Path for model | |
model_online="/path-user/chain-online" | |
graph="/path-user/tree/graph" | |
lang="/path-user/data/lang" | |
// upload.js, from https://github.com/googledrive/cors-upload-sample | |
// Contributors Steve Bazyl, Mike Procopio, Jeffrey Posnick, Renaud Sauvain | |
// License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Implements Resumable Upload for Google Drive as described by | |
// https://developers.google.com/drive/v3/web/resumable-upload | |
// | |
// Modified by Paul Brewer, Economic and Financial Technology Consulting LLC | |
// Nov. 1 2017 | |
// 1. use Google Drive API V3 instead of V2 |
#!/bin/bash -v | |
# backing up a vm | |
cd /media/tim/WD6/ | |
base="/home/tim/VirtualBox VMs" | |
src=win10-2018 | |
mv $src.tar.lz4 $src.tar.lz4.old |
#!/bin/bash | |
# Just set of command for generate tex from pdf using inkscape | |
# depedency : | |
# - inkscape | |
# - sed | |
# some editor/compiler cant find generated pdf file with realtive path by inkscape | |
# sed using for replace realtive path for *.pdf with absolute path in *.pdf_tex | |
# | |
# script only work with single case |
//https://habr.com/post/213515/ | |
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB, | |
IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction, | |
baseName = "baseName", | |
storeName = "storeName"; | |
function logerr(err){ | |
console.log(err); |
<html> | |
<head> | |
<title>Realtime Chat</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> | |
<style> | |
.message-bubble | |
{ | |
padding: 10px 0px 10px 0px; |
import os | |
import pandas | |
import json | |
import re | |
from collections import OrderedDict | |
import plotly.graph_objects as go | |
import chart_studio.plotly as py | |
from bs4 import BeautifulSoup | |
import yaml |