!pip install faster-whisper
!pip install googletrans==3.1.0a0
!pip install pysubs2
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
#!/bin/bash | |
# Function to get Docker API version | |
get_docker_api_version() { | |
docker version --format '{{.Server.APIVersion}}' | |
} | |
# Function to get volume paths from docker-compose and backup | |
backup_volumes() { | |
# Get the API version |
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 os | |
import sys | |
import uuid | |
import time | |
import math | |
import multiprocessing | |
from abc import ABC, abstractmethod | |
from typing import ( | |
List, | |
Optional, |
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
00033caf-494f-4721-99d9-cd109aa152d4.jpg | |
000ba543-20b2-452e-abe3-b4ce42cfe91b.jpg | |
001729ab-d648-4e67-aeda-4757131f19b3.jpg | |
00182245-a6d6-43a4-8eb1-0ca0ba3015c5.jpg | |
002a3cab-b0b4-4fd2-b602-10c60c8d9255.jpg | |
002b037f-ecca-4a46-b424-7560ca4ecf1e.jpg | |
002b7873-92cd-472c-a92b-ebba91502fdb.jpg | |
0036b7d7-9749-4cff-85c2-3bb37bb28df0.jpg | |
003807b1-b06d-4105-b959-4e172eb20f56.jpg |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#2f2f2f", | |
"foreground": "#26C6DA", | |
"leading_diamond": "\ue0c7\u2593", |
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
version: "3" | |
services: | |
janusgraph: | |
image: janusgraph/janusgraph:0.6.2 | |
container_name: jce-janusgraph | |
env_file: | |
- janusgraph.env | |
ports: | |
- "8182:8182" |
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
javascript: (() => { | |
const blocked = new Set(['fbclid', 'utm_source', 'utm_medium', 'utm_campaign', 'ref_src', 'ref_url']); | |
let url = new URL(document.URL); | |
let params = new URLSearchParams(url.searchParams); | |
for (let key of params.keys()) { | |
if (blocked.has(key)) { | |
url.searchParams.delete(key); | |
} | |
} | |
let result = `${url.origin}${url.pathname}${url.searchParams.toString() ? '?' + url.searchParams.toString() : ''}${url.hash}`; |
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
javascript: (() => { | |
const vid = new URL(document.URL).searchParams.get('v'); | |
navigator.clipboard.writeText("https://youtu.be/" + vid); | |
})(); |
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
from pydantic import BaseModel | |
def func_helper(parameter_type, return_type=None): | |
def decorator(function): | |
def wrapper(*args, **kwargs): | |
result = function(parameter_type(**kwargs)) | |
return return_type(**result) if return_type else result | |
return wrapper |
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
// Auto switch to next one when end of a song. | |
// start playing a song then paste this code. | |
(function() { | |
function getElementByXpath(path) { | |
return document.evaluate( | |
path, | |
document, | |
null, | |
XPathResult.FIRST_ORDERED_NODE_TYPE, | |
null |
NewerOlder