Skip to content

Instantly share code, notes, and snippets.

View kryochronic's full-sized avatar
💭
I may be slow to respond.

Abhinav Tripathi kryochronic

💭
I may be slow to respond.
View GitHub Profile
@kryochronic
kryochronic / Scrum-Engineering-Model-Visual.md
Last active November 13, 2024 04:58
Finally! A concise scrum model that will get through to engineering teams.
---
config:
  sankey:
    showValues: false
    width: 700
    nodeAlignment: left
    author: Abhinav Tripathi ((C) 2024 )
 linkColor: source
@kryochronic
kryochronic / Solution.md
Last active April 19, 2024 19:10
docker login -u AWS -p $(aws ecr get-login-password --region ap-south-1) xxxxxxxxxxxx.dkr.ecr.ap-south-1.amazonaws.com WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error saving credentials: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `pass not initialized:…

Ubuntu 22.04 The proper way to initialise docker for credentials to use with AWS ECR, sourced from this Stack Overflow Answer

Get the following error when authenticating docker with AWS ECR

docker login -u AWS -p $(aws ecr get-login-password --region ap-south-1) 
xxxxxxxxxxxxx.dkr.ecr.ap-south-1.amazonaws.com          
WARNING! Using --password via the CLI is insecure. Use --password-stdin. 
Error saving credentials: error storing credentials - 
err: exit status 1, out: `error storing credentials - err: exit status 1, 
out: `pass not initialized: exit status 1: Error: password store is empty. Try "pass init".``
@kryochronic
kryochronic / ParsePipenvGraphToPipfile.md
Last active March 21, 2024 22:03
Python Dependency Hell "RuntimeError: Failed to lock Pipfile.lock!" raise RuntimeError("Failed to lock Pipfile.lock!")

Parse pipenv graph to generate a Pipfile

I was having trouble with pipenv install --dev I was forced to bypass pipenv and do

pipenv run pip install <requirement_name>

Installed the requirements as if setting up a new project ( read, manually ), then

Host humbee.dev.erp
HostName 43.204.178.29
User ubuntu
IdentityFile ~/.ssh/id_rsa.humbee.erp
Host humbee.preprod
HostName 15.207.232.129
User ubuntu
IdentityFile ~/.ssh/id_rsa.humbee.dev
!$ICO_DONE = "<&check{scale=2}>"
!$ICO_UP = "<&aperture{scale=2}>"
!$ICO_TODO = "<&flag{scale=2}>"
!$ICO_BT = "<&bluetooth{scale=2}>"
!$ICO_PERSON = "<&person{scale=1}>"
!$ICO_GRP = "<&people{scale=2}>"
!$ICO_BAN = "<&ban{scale=2}>"
!$STYLE_TB_HDR = "<#lightblue,#blue>"
!$STYLE_TB_ROW = "<#yellow,#blue>"
#toolchain.cmake
set(CMAKE_SYSTEM_NAME Generic)
SET(CMAKE_SYSTEM_VERSION 1)
SET(can_use_assembler TRUE)
set(EWAVR_ROOT_DIR "C:/Program Files (x86)/IAR Systems/Embedded Workbench 6.0/avr")
set(IAR_C_COMPILER "iccavr.exe")
set(IAR_ASSEMBLER "aavr.exe")
set(IAR_LINKER "xlink.exe")
@kryochronic
kryochronic / docker-expose-win10.md
Last active January 19, 2022 21:40
Expose Windows Docker Daemon on WSL2 to External Hosts or Other VMs

Expose Windows Docker Daemon on WSL2 to External Hosts or Other VMs

This took me a few hours to figure out so I hope it helps some one. My setup

          Host                                 Guest
    +-----------------+                  +-----------------+
    |                 |       NAT        |                 |
    | Docker on Win11 |  <------------>  | Ubuntu Linux VM |
 | WSL 2 | 192.168.15.x | |
@startwbs wbs_gdw_integration
' skinparam Monochrome reverse
skinparam HorizontalAlignment left
skinparam Padding 3
skinparam WrapWidth 20
!include https://gist.githubusercontent.com/kryochronic/2f2fa8bd421e4729fb90e8685afcc90c/raw/5a0433838d4ea103b303439797e09c43e0cda814/wbs-styles.puml
!$ICO_DONE = "<&check{scale=2}>"
!$ICO_UP = "<&aperture{scale=2}>"
!$ICO_TODO = "<&flag{scale=2}>"
@startuml
<style>
jsonDiagram {
node {
BackGroundColor Khaki
LineColor lightblue
FontName Helvetica
FontColor green
FontSize 18
FontStyle bold
@startuml swim-styles
'skinparam monochrome reverse
skinparam Handwritten true
skinparam wrapWidth 200
skinparam LineColor none
' skinparam BackgroundColor white
skinparam swimlane {
ArrowHeadColor none
ArrowColor none