Skip to content

Instantly share code, notes, and snippets.

View erikusaj's full-sized avatar

Erik Ušaj erikusaj

  • Ljubljana, Slovenia
View GitHub Profile
<html>
<head>
<title>HEVC Support test</title>
<script>
// preverjanje za resolucijo: How to verify certain profile or resolution is supported?
var video_canPlay = [];
var MediaSource_supported = [];
var encrypted_support = [];
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="3.0">
<Ad id="14" sequence="1">
<InLine>
<AdSystem version="4.0"><![CDATA[Castoola]]></AdSystem>
<AdTitle><![CDATA[Preroll 1 - Leaf]]></AdTitle>
<Description><![CDATA[Inline Video Ad]]></Description>
<Survey><![CDATA[https://www.nissan.si/vozila/nova-vozila/leaf.html]]></Survey>
<Error><![CDATA[https://dev.telekom-logging.castoola.tv/log-error?ec=[ERRORCODE]&key=videoerror&client_id=00000000-0000-0000-0000-000000000000&publisher_id=telekom-dev&service_id=1655192505-1&placement_id=3&campaign_id=4&creative_id=14&video_duration=30&did=573956d7-c565-4920-b818-e8babac94ae3&ct=0&startTime=1645175694&stopTime=1645176294&aid=123&dt=si.titan.stb&pr=123&cid=123&kd=0&did=573956d7-c565-4920-b818-e8babac94ae3&brand=nissan&bust=48973249234&cb=1684155220]]></Error>
<Impression><![CDATA[https://dev.telekomads.castoola.tv/www/delivery/lg2.php?bannerid=14&campaignid=4&zoneid=3&OACCAP=1000000&client_id=00000000-0000-0000-0000-000000000000&did=573956d7-c5
<style>
.effect{
width: 250px;
height: 250px;
filter: contrast(360%) brightness(1000%) invert(100%);
background:
radial-gradient(circle at 18% 121%, rgba(0,0,0,1), rgba(0,0,0,0)),
url("data:image/svg+xml,%3Csvg viewBox='0 0 17 17' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
</style>
@erikusaj
erikusaj / empty_vast.xml
Last active October 7, 2022 08:17
empty vast
<VAST version="4.0">
<Error>
<![CDATA[http://adserver.com/noad.gif]>
</Error>
</VAST>
#!/bin/bash
if [ "$1" != "" ]; then
ipaddress=$1;
echo -e "Bluetooth HCI logging on STB $ipaddress ... \n"
# cleanup
rm bluetooth_manager_*
rm bluetooth_hci_*
adb connect $ipaddress
#!/bin/bash
# push apk to Android device, try to find launchable activity
# if this fails use monkey
if [ "$1" == "" ]; then
echo -e "Missing parameter: apk file"
else
echo -e "Please wait, while (re-)installing APK to device... \n"
adb install -r $1
echo -e "Finding what can be launched ... \n"
@erikusaj
erikusaj / mac_tips_tricks.md
Created November 25, 2017 16:23
Mac tips & tricks

xcode-select --install xcode-select: note: install requested for command line developer tools

@erikusaj
erikusaj / nexus7_flo_nougat.md
Last active June 18, 2017 19:12
nexus7_flo_nougat

putting stuff together as didn't work at first... (read: forums threads are not always good to follow. Don't panic if somethign doesn't work as expected)

Here's how reset the device, straight from the Google mouth:

  1. Turn off the Nexus.
  2. Press and hold Volume Down and then press and hold Power until the tablet turns on. ...
  3. Press Volume Down twice to highlight Recovery Mode. ...
  4. Hold down the Power button and press and release the Volume Up button once.

downloads: Recovery Clockwork Touch

@erikusaj
erikusaj / M202_final.md
Last active December 9, 2015 02:23
M202_final.md

Final: Question 1: Distributed vs. Co-Located Replica Sets

For the following problem, you would like to use a 3-member replica set, and are considering the following deployment options:

Option 1:

All 3 servers are co-located in a data center in New York Option 2:

The primary is located in New York

<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/iconsets/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<link rel="import" href="../paper-slider/paper-slider.html">