Skip to content

Instantly share code, notes, and snippets.

View itechnotion's full-sized avatar

Avkash Kakadiya itechnotion

View GitHub Profile
@itechnotion
itechnotion / browser_os_detect.js
Last active June 27, 2022 18:40
Javascript to detect OS, browser, ipad, iphone etc
// define 'is' object and current version
let is = {};
is.VERSION = '0.9.0';
// store navigator properties to use later
let navigator = window.navigator || {};
let platform = (navigator.platform || '').toLowerCase();
let userAgent = (navigator.userAgent || '').toLowerCase();
let vendor = (navigator.vendor || '').toLowerCase();
@itechnotion
itechnotion / jitsi-meet-multi-server.md
Created August 14, 2020 13:51 — forked from facsiaginsa/jitsi-meet-multi-server.md
This tutorial is for jitsi-meet installation using 2 server or more. The main server will contain jitsi-meet react source code, prosody, nginx, and jicofo. The videobridge will be installed seperatelly on the second server and so on.

How to Install Jitsi Meet with Multi Server Configuration

This tutorial is for jitsi-meet installation using 2 server or more. The main server will contain jitsi-meet react source code, prosody, nginx, and jicofo. The videobridge will be installed seperatelly on the second server and so on.

Prerequisite

  1. Minimum 2 server with 1 IP Public each
  2. Ubuntu 18.04

Sudo Privileges

Before start we make sure that we will have no permission issue on the installation.

#!/bin/bash -p
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "DB Host: "
read dbhost
echo "Database Name: "
read dbname
echo "Database User: "
var spi = new SPI();
spi.setup({mosi:B15, miso:B14, sck:B10});
E.connectSDCard(spi, B1);
console.log(require("fs").readdirSync());
var w = new Waveform(128, {bits:16});
w.on("finish", function(buf) {
require("fs").writeFileSync("sound.raw",buf);
});
w.startInput(B0,2000,{repeat:false});
{"name":"first","audio": "data:audio/mp3;base64,//NExAAAAANIAAAAAKnPIEIoAAEnO//qQjTnO6HPISrznPkI0hG//1ITO//XOd9CVIRqnPQ56E////PkIygAhlOc7od5Gnec7/nf/rkIygAhkPX9XzgDw8v4guYhA/vz//NExFMRYv3AAUIQAa3OQf3IukxDCFIh5oZm7kyOAjhffLhoYlsnB2D5DHwgkFG/lwuGhOGBOB1wbHxlRS5TBu/+fMEFpIMDYgTumMeKcREm//QJxnWmnD2B2mZIEEKZ//NExGAiGypgAY+YAA82Mv/799SDOaFwrGhBCkWC4WS2Tht///7e9suOojz5JFFzYzMCJmzKOF8d+wQKqigRAIJxKuk6opVPPLd9YpCrj3TutiWXb04Xe4iSZIaJ3c3G//NExCobIi6QAclIAGfUB4dGmV4wFBuIoNomYXsE6fZJbbDeQUrbr7HPtxlcu7KjlPqcKjfq/t/yjKG2/WhscLsQy63aApqHFm2D3kHKOLpcUM4AsCUQ2AlBwNjGtpxU//NExBAU2V6gAHmSlEIQMrxG++zzu/WiGrLb/tTQi2iZXobJFdJGV72R97IrmqIyc2RuN7bm9qTF7NciEAMKI2oOUYofb+bBAEFdWpn/1+K1yyqy8nw/FLBQykHIgSqX//NExA8UsWKwAMISlJgdBXBgdhAQo5hRPqK7mf0SoTRKSEklMQB6JtdRGmkgmY5eM8RrtGmNmghN87xOqxXnrmeNNG//Qhr2Cy2hi2X+mlupq8zsCFyQE5KFklnj4SDo//NExA8VQUq4AMISlAkvkbwFHvB094Ym/6udhrXyjjx+hEKyNCgPUeCq6FkXIbMGEJAKWwmMkAlNDi00VZC0rIkWvc9CegjX/1xjjwoeNp/11er+Z4vEWnk81TPoQ0q///NExA0R4S7AAMrScC9hiAKCZXomj/mv5apnuWsV+tOXksrsFkRUu0yqkToMiKjpEgSCxGQawZgBFnVw
using System;
using System.Threading.Tasks;
using Microsoft.CognitiveServices.Speech;
namespace SpeechToTextConsol
{
class MainClass
{
public static void Main(string[] args)
{
=CONCATENATE("<p><img src='",L2,"'/><p><p>Frequency: ",S2,"</p><p>Viewing Times: ",X2,"</p>")

Remove Sendmail from Ubuntu

This should help you completely uninstall Sendmail and all that comes with it.

First, stop the service (assuming it's running).

sudo /etc/init.d/sendmail stop

Uninstall sendmail and sendmail-bin

server {
listen 80;
root /var/www/website/public_html/;
access_log /var/www/website/logs/access.log;
error_log /var/www/website/logs/error.log;
index index.php index.html index.htm;
server_name website.com www.website.com;