Skip to content

Instantly share code, notes, and snippets.

version: 2.1
orbs:
win: circleci/windows@2.2.0
jobs:
build:
executor:
name: win/default
size: "medium"
@abantobank
abantobank / youtube_livestream.py
Created August 2, 2023 17:42 — forked from tylercubell/youtube_livestream.py
GStreamer Python YouTube Livestream
import os, gi
gi.require_version("Gst", "1.0")
from gi.repository import GObject, Gst
Gst.init(None)
pipeline = Gst.Pipeline()
# Variables.
youtube_stream_key = "your_key_here"
encoder_speed = "ultrafast"
@abantobank
abantobank / ubuntu_remote_desktop.sh
Created August 2, 2023 02:16 — forked from lokeshsoni/ubuntu_remote_desktop.sh
Google Cloud Ubuntu Remote Desktop Setup
# Install Chrome Remote Desktop on the VM instance
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo apt update
sudo dpkg --install chrome-remote-desktop_current_amd64.deb
sudo apt install --assume-yes --fix-broken
# install desktop environment
sudo apt install ubuntu-desktop
# install google-chrome
@abantobank
abantobank / add_watermark.py
Created August 1, 2023 10:05 — forked from yptheangel/add_watermark.py
add watermark to image using opencv by using steps: insert text at center of image, blend two images together to make watermark transparent
import cv2
filename = "yourfilename.jpg"
frame = cv2.imread(filename)
overlay = frame.copy()
text = "I love opencv"
font, font_scale, font_thickness = cv2.FONT_ITALIC, 3.5, 5
textsize = cv2.getTextSize(text, font, font_scale, font_thickness)[0] # get text size