Skip to content

Instantly share code, notes, and snippets.

View mustafamagdy's full-sized avatar
🦾
Keep coding ...

Mustafa Magdy mustafamagdy

🦾
Keep coding ...
View GitHub Profile
@mustafamagdy
mustafamagdy / agent loop
Created March 12, 2025 06:18 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@mustafamagdy
mustafamagdy / hls.sh
Created November 8, 2024 18:50 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@mustafamagdy
mustafamagdy / README.md
Last active February 15, 2021 14:22 — forked from guillaumevincent/README.md
Windows Service with Python 3.5 and pyinstaller
# Get your public IP
dig +short myip.opendns.com @resolver1.opendns.com
public class VideoStream
{
private readonly string _filename;
public VideoStream(string filename, string ext)
{
_filename = @"C:UsersFilipDownloads" + filename + "."+ext;
}
public async void WriteToStream(Stream outputStream, HttpContent content, TransportContext context)
@mustafamagdy
mustafamagdy / web.config
Created May 15, 2019 23:32 — forked from maxan/web.config
IIS Config to React Router App
<system.webServer>
<rewrite>
<rules>
<rule name="React Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
@mustafamagdy
mustafamagdy / .eslintrc.js
Created January 29, 2019 09:28
ESLint for react native
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
commonjs: true,
es6: true,
node: true
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parserOptions: {
@mustafamagdy
mustafamagdy / ReactiveFormGeneratorService.ts
Created February 25, 2018 17:27
Service to generate model driven forms for ReactiveForms in angular from JSON structure
import { Injectable } from '@angular/core';
import { Validators, ValidatorFn, FormGroup, FormControl, AbstractControl } from '@angular/forms';
@Injectable()
export class ReactiveFormGeneratorService {
constructor() { }
/**