Skip to content

Instantly share code, notes, and snippets.

View badrshs's full-sized avatar
🤞

Badr Aldeen Shek Salim badrshs

🤞
View GitHub Profile
@badrshs
badrshs / watermark-video-processor.html
Last active December 28, 2024 13:33
Add watermark to videos directly in the browser. Upload a video and a watermark image, adjust scale and position, and download the processed video. Simple and user-friendly interface using pure JavaScript.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Watermark into Video </title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<style>
body {
@badrshs
badrshs / note.txt
Last active December 28, 2024 15:08
programming notes
you can decompile your apk file using apk studio.
(http://vaibhavpandey.com/apkstudio/) . Decompiled source will be in .smali file types (hexadecimal values ).
------------------------------------------
you can assign new key to the apk directly via
https://shatter-box.com/knowledgebase/android-apk-signing-tool-apk-signer/
------------------------------------------
if you want to trace https request download mitmproxy and open the web ui version
choose the application you want to trace with and start .. this should show all the request going from the app to it even if it's https
@badrshs
badrshs / xhr-reader
Last active September 1, 2019 12:39
read response from xhr requests
(function (open) {
XMLHttpRequest.prototype.open = function (method, url, async, user, pass) {
if(url=="some url ") { // remove this if you want to listen to everyhting
console.log(this.onreadystatechange);
this.addEventListener("readystatechange", function () {
console.log('readystate: ' + this.readyState);
if(this.responseText !== '') {
this.responseText = this.responseText.split('&')[0];
}
}, false);
@badrshs
badrshs / Jarvis.java
Created December 24, 2018 16:12
implementing Jarvis Algorithm via Java
/**
** How the Algorithm works : https://www.youtube.com/watch?v=rsbxHqhyKD0
** Java Program to Implement Jarvis Algorithm
**/
import java.util.Scanner;
import java.util.Arrays;
/** Class point **/
class Point
Dec 16, 2018 1:24:11 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:javaee7' did not find a matching property.
Dec 16, 2018 1:24:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/9.0.1
Dec 16, 2018 1:24:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Sep 27 2017 17:31:52 UTC
Dec 16, 2018 1:24:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 9.0.1.0
Dec 16, 2018 1:24:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
@badrshs
badrshs / unity Maze Generator
Created November 15, 2018 12:07
generate maz via unity
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public class MazeGenerator : MonoBehaviour {
public int width, height;
public Material brick;
private int[,] Maze;
private List<Vector3> pathMazes = new List<Vector3>();
@badrshs
badrshs / phpStorm.bat
Last active September 4, 2018 17:20
Add context menu to Windows 10 to open file/folder in PhpStorm Or Webstorm
::download this bat file then Run as Administrator Or do the other steps
::------------------------------------------------------------------
::Create a file name it webstorm.bat
::Open file in any text editor
::Copy all text below from @echo off to pause and paste it in the file
::Consider replace the <Webstorm.exe path> with your webstorm.exe path
::for e.g
::C:\Program Files\JetBrains\WebStorm 2017.2.2\bin\webstorm64.exe
::Save changes to the file
@badrshs
badrshs / Unity Player Controller
Created August 19, 2018 04:11
player controller with extra Jump feature + flip function
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
private int extraJump;
public int extraJumpValue;
public float speed;
public float jumpForce;