View videocomp.js
This file contains 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
<div class="relative max-w-sm rounded overflow-hidden shadow-lg mx-auto my-8"> | |
<div> | |
<span class="left-0 top-0 text-red-700 absolute">Live</span> | |
<span class=" right-0 bottom-0 flex w-2/3 absolute"> | |
<div class="w-full md:w-1/2 px-3 mb-6 md:mb-0"> | |
<div class="relative"> | |
<select class="block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500" id="grid-state"> | |
<option value={0}>Auto</option> | |
<option value={128}>128 kbit</option> |
View streaming.js
This file contains 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
var server = "wss://janus.conf.meetecho.com/ws"; | |
var janus = null; | |
var streaming = null; | |
var opaqueId = "streamingtest-" + Janus.randomString(12); | |
var bitrateTimer = null; | |
var spinner = null; | |
var simulcastStarted = false, |
View youtube_to_embed.js
This file contains 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
// ==UserScript== | |
// @name Youtube Redirect To Embed | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description youtube to embed | |
// @author Shubham Kamthania | |
// @match https://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== |
View 01_pkcs12-cacerts-workaround.sh
This file contains 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
# Ubuntu 18.04 and various Docker images such as openjdk:9-jdk throw exceptions when | |
# Java applications use SSL and HTTPS, because Java 9 changed a file format, if you | |
# create that file from scratch, like Debian / Ubuntu do. | |
# | |
# Before applying, run your application with the Java command line parameter | |
# java -Djavax.net.ssl.trustStorePassword=changeit ... | |
# to verify that this workaround is relevant to your particular issue. | |
# | |
# The parameter by itself can be used as a workaround, as well. |
View remove_youtube_recommended_and_homepage_userscript.js
This file contains 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
// ==UserScript== | |
// @name Remove youtube recommended and homepage | |
// @namespace body | |
// @version 1.0 | |
// @description Remove the youtube recommended junk along with complete landing page | |
// @author Shameless copy and modified from https://github.com/jpancik/Remove-YouTube-Recommendations | |
// @include *youtube.com/* | |
// ==/UserScript== | |
function ready(fn) { |
View gist:c1326f7c28db28ffcfc0ebf54a7f4f88
This file contains 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 scala.util._ | |
import java.security.SecureRandom | |
import java.security.MessageDigest | |
/* | |
* Generates a Bearer Token with a length of | |
* 32 characters (MD5) or 64 characters (SHA-256) according to the | |
* specification RFC6750 (http://tools.ietf.org/html/rfc6750) | |
* | |
* Uniqueness obtained by hashing system time combined with a |
View service_invoke.scala
This file contains 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
// call from web-gateway | |
// have a controller named MessageController with end point add message | |
def addMessage = Action.async { implicit rh => | |
messageService.addMessage | |
.handleRequestHeader(ResourceClientSecurity.authenticate()) | |
.invoke(rh.body.asJson.get.as[Message]) | |
.map { | |
msg => Ok("") | |
} |