Skip to content

Instantly share code, notes, and snippets.

View essic's full-sized avatar

Aly-Bocar Cissé essic

  • Paris
View GitHub Profile
@essic
essic / template-audit-capacités-devops-dora.md
Created May 20, 2023 08:55 — forked from adrienjoly/template-audit-capacités-devops-dora.md
Template que j'utilise pour auditer mes client sur les "capacités DevOps" proposées par le DORA, et leur donner des recommandations pour progresser. C'est en markdown => importable facilement dans Notion.

Audit Capacités DevOps/DORA

Le livre "Accelerate: The Science of Lean Software and DevOps: Building and Scaling High Performing Technology Organizations" (Gene Kim, Jez Humble, and Nicole Forsgren, 2018) s'appuie sur 5 ans d'études scientifiques pour faire ressortir les pratiques effectivement mises en oeuvre par les sociétés "tech" les plus performantes. (selon la classification de Westrum)

L'équipe de DORA (DevOps Research and Assessment) a identifié et validé un ensemble de capacités permettant d'optimiser les performances organisationnelles et celles de la livraison de logiciels. Ces articles décrivent comment mettre en œuvre, améliorer et mesurer ces capacités.

Source: https://cloud.google.com/architecture/devops/capabilities

Les capacités recommandées sont au nombre de 27, classés en 3 catégories.

@essic
essic / run.tpl
Created May 16, 2023 14:51 — forked from efrecon/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}
@essic
essic / docker-cheat-sheet.md
Created May 16, 2023 14:51 — forked from dariahervieux/docker-cheat-sheet.md
Docker cheat/tip sheet

Running container

Inspect

Using inspect command:

> docker inspect <container name|ID>

Searching for a particular section, using jq utility, for example docker volumes of the container:

@essic
essic / Aggregate.hs
Created November 6, 2022 20:50 — forked from Fristi/Aggregate.hs
DDD/Event Sourcing in Haskell. Implemented an aggregate as a type class and type families to couple event, command and error types specific to the aggregate. Errors are returned by using Either (Error e) (Event e). Applying Applicative Functors fits here well to sequentially check if the command suffice.
{-# LANGUAGE TypeFamilies #-}
import Data.Function (on)
import Control.Applicative
data EventData e = EventData {
eventId :: Int,
body :: Event e
}
@essic
essic / Correct_GnuPG_Permission.sh
Created October 26, 2022 20:15 — forked from oseme-techguy/Correct_GnuPG_Permission.sh
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# Also correct the permissions and access rights on the directory
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg
@essic
essic / github_gpg_key.md
Created October 26, 2022 19:31 — forked from ankurk91/github_gpg_key.md
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@essic
essic / dotnetlayout.md
Created November 3, 2021 17:31 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
#!/usr/bin/env cabal
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{- cabal:
build-depends:
, base ^>= 4.13.0.0
, text ^>= 1.2.4.0
, transformers ^>= 0.5.6.2
@essic
essic / aoc-day1.hs
Last active December 4, 2020 14:38
#!/usr/bin/env cabal
{-# LANGUAGE OverloadedStrings #-}
{- cabal:
build-depends:
, base ^>= 4.13.0.0
, unliftio ^>= 0.2.13.1
, text ^>= 1.2.4.0
, transformers ^>= 0.5.6.2
-}
@essic
essic / Dummy.hs
Created June 3, 2020 17:40
Dumb example in haskell
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE OverloadedLabels #-}
module Main where
import Core as C
import Protolude
import Dhall
import System.Environment (getArgs)
import GHC.Natural (naturalToInt)