This file contains hidden or 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 | |
| apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common sudo | |
| curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - | |
| add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" | |
| apt-get update |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Reflection; | |
| using System.Text; | |
| using Newtonsoft.Json; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Composing; |
This file contains hidden or 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
| set @COLLATE_Target ='utf8mb4_unicode_ci'; | |
| set @CHARACTER_Target ='utf8mb4'; | |
| set @sqlstrDB ='ALTER DATABASE {{DB}} CHARACTER SET = {{CHARACTER}} COLLATE = {{COLLATE}};'; | |
| set @sqlstrTable ='ALTER TABLE {{DB}}.{{TABLE}} CONVERT TO CHARACTER SET {{CHARACTER}} COLLATE {{COLLATE}};'; | |
| set @sqlstrColumn =' ALTER TABLE {{DB}}.{{TABLE}} MODIFY {{COLUMN}} {{COLUMN_TYPE}}({{COLUMN_SIZE}}) CHARACTER SET {{CHARACTER}} COLLATE {{COLLATE}};'; | |
| set @sqlstrTextColumn =' ALTER TABLE {{DB}}.{{TABLE}} MODIFY {{COLUMN}} {{COLUMN_TYPE}} CHARACTER SET {{CHARACTER}} COLLATE {{COLLATE}};'; | |
This file contains hidden or 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
| apt-get install -y curl ngrep git | |
| # Using Debian, as root | |
| curl -sL https://deb.nodesource.com/setup_12.x | bash - | |
| apt-get install -y nodejs | |
| npm install -g pm2 | |
| pm2 startup systemd |
This file contains hidden or 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
| puppeteer = require("puppeteer") | |
| async function Start(){ | |
| let browser= await puppeteer.launch({ | |
| headless: false, | |
| args: ['--disable-infobars','--use-fake-ui-for-media-stream','--use-fake-device-for-media-stream', `--window-size=${800},${680}`], | |
| }) | |
| const page = await browser.newPage(); | |
| await page.goto('https://janus-phone-kit.netlify.app/demo.html'); | |
| const elements = await page.$x('//*[@id="app"]/div[1]/main/div[1]/div/button') | |
| await elements[0].click() |