Skip to content

Instantly share code, notes, and snippets.

View WildGenie's full-sized avatar
🤖
I ❤️ Machine Learning

Bilgehan Zeki ÖZAYTAÇ WildGenie

🤖
I ❤️ Machine Learning
View GitHub Profile
@WildGenie
WildGenie / render_json_jupyter_collapsible.py
Created December 17, 2022 03:02 — forked from t27/render_json_jupyter_collapsible.py
Render JSON as a collapsible field in jupyter notebooks - Updated - Also includes instructions for interleaving with print statements
## Add this to the first block in your note book
import uuid
from IPython.core.display import display, HTML
import json
class RenderJSON(object):
def __init__(self, json_data):
if isinstance(json_data, dict):
self.json_str = json.dumps(json_data)
@WildGenie
WildGenie / Chat.ipynb
Last active December 17, 2022 11:45
Codex modeli kullanılarak hazırlanmış bir ChatGPT klonu
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WildGenie
WildGenie / index.html
Created October 8, 2022 00:56
ROG Overlay
<div class="layer1">
<div class="layer1Content">
<div class="layer1Header">
<img src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/1061292/header.png' alt=''>
</div>
<div class="layer1Body">
<img src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/1061292/background_copy.png' alt=''>
<div class="layer1Text">
<div class="layer1TextHeader">BIT WINNERS</div>
<div class="layer1Bits">

These are notes while researching a way to convert a browser/website to a stream. This could be used for Facebook Live or for webrecording. TL'DR:

  • I started with Phantomjs - but that didn't support the html5 video tag
  • SlimerJS supports it, but there is no way to record audio directly (though this might come from desktop audio)
  • So I moved to research ffmpeg/X11/XVFB to record it with linux which works
  • But ffmpeg has no easy way to mix streams/overlays to I moved on to OBS with overlay browser support
  • I started researching options OBS in docker and it needed best a GPU , so I move to nvidia-docker
  • And so came across building game servers on EC2/AWS using GPUs and managed to run OBS inside of GPU g2x.large machine
  • I tried streaming to twich , which works great and managed to restream 4K 60FPS youtube on an AWS instance
  • Remote control works through OBS-Remote but OBS has kinda limit in types of features
@WildGenie
WildGenie / bar.html
Last active October 6, 2021 19:34
bar.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
@WildGenie
WildGenie / ReadYandexMailbox.java
Created July 21, 2021 23:38 — forked from vergeev/ReadYandexMailbox.java
Opens mailbox on yandex.ru with IMAP, reads the last message and all unread ones.
import com.sun.mail.imap.IMAPMessage;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.BodyPart;
import javax.mail.Flags;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Store;
import javax.mail.internet.MimeMultipart;