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 cv2 | |
from moviepy.video.compositing.CompositeVideoClip import CompositeVideoClip | |
from moviepy.video.VideoClip import ImageClip, TextClip | |
img = cv2.imread("input.png") | |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) | |
vid = ImageClip(img) | |
frame_height = img.shape[0] |
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 json | |
import os | |
import pathlib | |
import subprocess | |
import time | |
import whisper | |
import yt_dlp | |
from whisper.utils import get_writer |
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
// Credit: https://www.rushworth.us/lisa/?p=6854 | |
var objTranscriptionLines = window.angular.element(window.document.querySelectorAll('.transcript-list')).scope().$ctrl.transcriptLines; | |
var strRunningText = ""; | |
for(var i = 0; i < objTranscriptionLines.length; i++){ | |
if( objTranscriptionLines[i] ){ | |
var strLineText = objTranscriptionLines[i].eventData.text; | |
strRunningText = strRunningText + "\n" + strLineText; | |
} | |
} |
Common commands used in GNS3 for setting up network topologies and for troubleshooting.
Using the Task Scheduler, you can schedule when to enable Dark Mode for apps by using these Powershell commands and setting them to be triggered at the time you prefer.
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 -Type Dword -Force;