Skip to content

Instantly share code, notes, and snippets.

View thedevsaddam's full-sized avatar
🏴‍☠️
Wherever we want to go, we'll go!

Saddam H thedevsaddam

🏴‍☠️
Wherever we want to go, we'll go!
View GitHub Profile
@thedevsaddam
thedevsaddam / Convert .mov or .MP4 to .gif.md
Last active October 29, 2021 17:31 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=mybinary
BINARY_UNIX=$(BINARY_NAME)_unix
@asukakenji
asukakenji / 0-go-os-arch.md
Last active July 24, 2024 05:41
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@M0nica
M0nica / .gitattributes
Created September 4, 2017 23:09
Remove vendor files from GitHub's classification of the repositories language
static/* linguist-vendored
package main
import (
"log"
"net/http"
"sync"
"github.com/garyburd/redigo/redis"
"github.com/gorilla/websocket"
uuid "github.com/satori/go.uuid"
@rbrahul
rbrahul / LinkedInEndoresmentScript.js
Last active March 30, 2018 20:19
Run this script in your browser console while visiting profile page of any linked user then it will automatically endorse skills :)
var endorsPlusButtons = document.querySelectorAll(".endorsable");
var index = 0;
if (endorsPlusButtons.length) {
var interval = setInterval(() => {
if (index < (endorsPlusButtons.length)) {
setTimeout((indx) => {
endorsPlusButtons[indx].querySelector(".endorse-plus").click();
}, parseInt(Math.random() * 11) * 400, index);
} else {
mysql:
image: mysql
container_name: database
ports:
- 3306:3306
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: 123456
php:
@LeCoupa
LeCoupa / redis_cheatsheet.bash
Last active June 26, 2024 15:54
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@Agontuk
Agontuk / .zshrc
Last active October 7, 2022 17:43
oh-my-zsh configuration
# Path to your oh-my-zsh installation.
export ZSH=${HOME}/.oh-my-zsh
TERM=xterm-256color
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="spaceship"
@pobsuwan
pobsuwan / rabbitmq-cluster.md
Last active July 23, 2024 10:30
How to config rabbitmq server cluster [3 nodes]

How to config rabbitmq server cluster [3 nodes]

Edit /etc/hosts

vi /etc/hosts
192.168.10.157  rabbitmq-1
192.168.10.159  rabbitmq-2
192.168.10.161  rabbitmq-3