Skip to content

Instantly share code, notes, and snippets.

@arturschaefer
arturschaefer / breed_list.json
Created October 29, 2021 11:26
The Dogs API - Breed list
[
{
"weight": {
"imperial": "6 - 13",
"metric": "3 - 6"
},
"height": {
"imperial": "9 - 11.5",
"metric": "23 - 29"
},
@arturschaefer
arturschaefer / dogs_environment.json
Created October 29, 2021 19:38
The Dogs API - Mockoon
{
"uuid": "beb2dc89-39d8-45f1-b6b3-f13e36546512",
"lastMigration": 18,
"name": "The Dogs API",
"endpointPrefix": "",
"latency": 0,
"port": 3001,
"hostname": "0.0.0.0",
"routes": [
{
@arturschaefer
arturschaefer / webm_to_mp4_converter.py
Created June 13, 2023 16:49
Python script to convert WEBM to MP4
import sys
import subprocess
def convert_webm_to_mp4(filename):
try:
subprocess.run(["ffmpeg", "-i", filename, "-c:v", "libx264", "-c:a", "aac", "-b:a", "192k", "-strict", "experimental", "-f", "mp4", filename[:-5] + ".mp4"], check=True)
except subprocess.CalledProcessError as e:
print("Error:", e)
sys.exit(1)