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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.5S" type="static" mediaPresentationDuration="PT0H4M40.00S" profiles="urn:mpeg:dash:profile:isoff-live:2011,urn:mpeg:dash:profile:isoff-main:2011"> | |
| <Period duration="PT0H4M40.00S"> | |
| <AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2" startWithSAP="1" segmentAlignment="true"> | |
| <Representation id="249-drc" bandwidth="128000"> | |
| <BaseURL>http://localhost:8080/v1/videos/proxy?url=https%3A%2F%2Frr2---sn-qp5avb5mp5u5-jhc6.googlevideo.com%2Fvideoplayback%3Fexpire%3D1747063739%26ei%3DW78haPjGE7KPssUPn4Sa4Aw%26ip%3D2402%253A4000%253A2082%253A51bb%253A1db4%253A60dc%253A9f50%253A2925%26id%3Do-AOxv2KWAcOR0u5M05WKceouVv0uyihn2tCfl_qnVN9p2%26itag%3D249%26source%3Dyoutube%26requiressl%3Dyes%26xpc%3DEgVo2aDSNQ%253D%253D%26met%3D1747042139%252C%26mh%3Duo%26mm%3D31%252C29%26mn%3Dsn-qp5avb5mp5u5-jhc6%252Csn-cvh7knzd%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D2%26pcm2cms%3Dyes%26pl%3D48%26rms%3Dau%252Cau%26initcwndbps%3 |
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
| { | |
| "openapi": "3.0.1", | |
| "info": { | |
| "title": "KLASS.LK API", | |
| "version": "1.0" | |
| }, | |
| "servers": [ | |
| { | |
| "url": "http://localhost:8080/api", | |
| "description": "Generated server url" |
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
| package lk.klass.dyntube; | |
| import lk.klass.dyntube.dtos.CreateProjectRequest; | |
| import lk.klass.dyntube.dtos.GetProjectsResponse; | |
| import lk.klass.dyntube.dtos.GetVideosResponse; | |
| import lk.klass.dyntube.dtos.UploadDyntubeVideoResponse; | |
| import lk.klass.dyntube.models.Video; | |
| import lombok.extern.slf4j.Slf4j; | |
| import org.springframework.http.HttpEntity; | |
| import org.springframework.http.HttpHeaders; |
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
| package com.cloudimpl.beep; | |
| /** | |
| * @author danushka | |
| * 2023-05-08 | |
| */ | |
| import java.util.*; | |
| import java.util.stream.Collectors; |
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
| sudo apt update | |
| sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| sudo apt update | |
| sudo apt install -y docker-ce | |
| sudo groupadd docker | |
| sudo usermod -aG docker $USER | |
| newgrp docker | |
| docker run hello-world |
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
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
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
| import com.google.gson.Gson; | |
| import com.google.gson.JsonArray; | |
| import com.google.gson.JsonObject; | |
| /** | |
| * @author danushka | |
| */ | |
| public class test { | |
| public static void main(String[] args) { | |
| JsonArray arr1 = new JsonArray(); |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> |
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
| char data = 0; | |
| void setup() { | |
| // put your setup code here, to run once: | |
| pinMode(12,OUTPUT); | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| // put your main code here, to run repeatedly: | |
| if(Serial.available() > 0){ |
NewerOlder