Skip to content

Instantly share code, notes, and snippets.

View secmohammed's full-sized avatar
:atom:

Mohammed Osama secmohammed

:atom:
View GitHub Profile
@secmohammed
secmohammed / bitbucket-pipelines.yml
Created August 2, 2023 20:17 — forked from carlok/bitbucket-pipelines.yml
How to force BitBucket to push a Docker image to AWS ECR after a git tag
#image: atlassian/default-image:2
image: python:3.7.3
pipelines:
tags:
'v*': # the tag is "vSomthing" like "v-0.4.2"
- step:
name: Build docker image and push to AWS ECR
services:
- docker
@secmohammed
secmohammed / cloudSettings
Created December 13, 2021 16:46 — forked from ahmedosama-st/cloudSettings
My MacOSX version of vscode settings
{"lastUpload":"2021-12-13T15:18:30.566Z","extensionVersion":"v3.4.3"}
@secmohammed
secmohammed / lockvschan_test.go
Created April 13, 2021 23:48 — forked from cyfdecyf/lockvschan_test.go
Performance test: mutex vs. channel in Go
// run with go test -test.bench Bench
package main
import (
// "fmt"
"runtime"
"sync"
"sync/atomic"
"testing"
@secmohammed
secmohammed / resp3.md
Created April 3, 2020 09:37 — forked from antirez/resp3.md
RESP3 protocol draft

RESP3 specification

Versions history:

  • 1.0, 2 May 2018, Initial draft to get community feedbacks.

Background

The Redis protocol has served us well in the past years, showing that, if carefully designed, a simple human readable protocol is not the bottleneck in the client server communication, and that the simplicity of the design is a major advantage in creating a healthy client libraries ecosystem.

Yet the Redis experience has shown that after about six years from its introduction (when it replaced the initial Redis protocol), the current RESP protocol could be improved, especially in order to make client implementations simpler and to support new features.

@secmohammed
secmohammed / structs_interface.go
Created January 21, 2020 13:47 — forked from josephspurrier/structs_interface.go
Golang - Understand Structs and Interfaces
// Also available at: https://play.golang.org/p/yTTpB5gB6C
package main
import (
"fmt"
)
// *****************************************************************************
// Example 1 - Struct vs Struct with Embedded Type