sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
/* 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> |
<!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"> |
// 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; |
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) |
<!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> |
#!/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" |