Skip to content

Instantly share code, notes, and snippets.

View MossabDiae's full-sized avatar
🔬
Learning

Mossab Diae MossabDiae

🔬
Learning
View GitHub Profile
@dimasch
dimasch / redis-clear
Last active May 7, 2024 08:29
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL
@nikhan
nikhan / twitter.sh
Created January 1, 2016 04:45
twitter ffmpeg
ffmpeg -i test.mov -vcodec libx264 -vf 'scale=640:trunc(ow/a/2)*2' -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -strict experimental -r 30 out.mp4
@zyxar
zyxar / exercise.tour.go
Last active April 28, 2024 17:06
tour.golang exercise solutions
/* Exercise: Loops and Functions #43 */
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(2.)