Skip to content

Instantly share code, notes, and snippets.

View mustafaboleken's full-sized avatar
🎯
Focusing

Mustafa BOLEKEN mustafaboleken

🎯
Focusing
View GitHub Profile
#!/bin/bash
# Check if an argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 fullPathOfMP4File"
exit 1
fi
# Get the full path of the provided MP4 file
fullPathOfMP4File="$1"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tab Recording</title>
</head>
<body>
<button id="startBtn">Start Recording</button>
<button id="stopBtn" disabled>Stop Recording</button>

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

import sys
import PIL.Image as Image
import pathlib
width = int(sys.argv[1])
height = int(sys.argv[2])
output_name = sys.argv[3]
frame_data = sys.stdin.buffer.read()
pathlib.Path('/usr/local/antmedia/image').mkdir(parents=True, exist_ok=True)
// Copyright (c) 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/* global currentTime */
const SMOOTHING_FACTOR = 0.8;
const FRAME_PER_SECOND = 60;
const FRAME_INTERVAL = 1 / FRAME_PER_SECOND;
@mustafaboleken
mustafaboleken / upload_vod
Last active January 25, 2023 13:48
Ant Media Server upload vod with plain js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Uploader</title>
</head>
<body>
<h2>File Upload Service</h2>
<input type="file" id="files">
@mustafaboleken
mustafaboleken / shell.c
Created October 28, 2017 14:11 — forked from parse/shell.c
Simple shell in C
/* Compile with: g++ -Wall –Werror -o shell shell.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>