Skip to content

Instantly share code, notes, and snippets.

View eslam-mahmoud's full-sized avatar

Islam Mahmoud eslam-mahmoud

  • US
View GitHub Profile
@eslam-mahmoud
eslam-mahmoud / Dockerfile
Created July 14, 2019 20:18
sample docker file for tutorial
FROM golang:1.8
WORKDIR /app
COPY ./executable /app/executable
CMD ["./executable"]
@eslam-mahmoud
eslam-mahmoud / unlikeAllFacebookpages.js
Last active July 31, 2019 18:14
Unlike all facebook pages
// 1- go to https://www.facebook.com/pages/?category=liked
// 2- inspect to find the unlike class name
// 3- add it to unlikeClassName var and run that gist
var unlikeClassName = '_43rm'
Array.from(document.getElementsByClassName(unlikeClassName)).forEach((el) => {
el.click();
});
@eslam-mahmoud
eslam-mahmoud / main.go
Created January 20, 2020 17:13
split images into folders - backup
package main
import (
"io/ioutil"
"log"
"os"
)
func main() {
files, err := ioutil.ReadDir("./Camera")
@eslam-mahmoud
eslam-mahmoud / DaVinci Resolve
Last active April 10, 2022 14:57
DaVinci Resolve on ubuntu linux how to solve codac problem, record on OBS, mov/mkv/mp4 problem
recod in OBS
export as MP4
if you have exported to mkv
convert it first to mp4
$fmpeg -i ./source/3.mkv -c:v libx264 -preset ultrafast -crf 0 ./mp4/3.mp4
convert to mov
$ ffmpeg -i raw_footage.mp4 -vcodec mjpeg -q:v 2 -acodec pcm_s16be -q:a 0 -f mov footage_mjpeg.mov
import in davinci resolve
export as youtube file (will come out without audio)
Encode back