Skip to content

Instantly share code, notes, and snippets.

View alidevhere's full-sized avatar
🏠
Working from home

mohammad ali alidevhere

🏠
Working from home
View GitHub Profile
@alidevhere
alidevhere / update-golang.md
Created January 25, 2023 21:32 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@alidevhere
alidevhere / struct_custom_unmarshal.go
Created May 27, 2022 06:41 — forked from miguelmota/struct_custom_unmarshal.go
Golang custom struct unmarshal function example
package main
import (
"encoding/json"
"fmt"
"log"
"time"
)
type MyStruct struct {
@alidevhere
alidevhere / README.md
Created November 29, 2021 21:03 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@alidevhere
alidevhere / install virtualenv ubuntu 16.04.md
Created September 8, 2021 11:09 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv