Skip to main content

Posts

Showing posts from 2020

Notes on Installing certificate in linux java cacert from a remote host (WIP)

Check the certificates installed or not Find the actual java location using readlink -f `which java` Go to jdk/jre/lib/security Run the command : ../../bin/keytool -list -keystore cacerts Get the Certificate (This is WIP, was not getting the correct certificates) Use either of these commands to get the certificates ( need to modify) openssl s_client -showcerts -connect 10.101.12.89:8087 /dev/null|openssl x509 -outform PEM >emailuat.pem echo -n | openssl s_client -connect 10.186.18.23:8084 \     | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > emailuat.cert Install the certificate Find the actual java location using readlink -f `which java` Go to jdk/jre/lib/security Run the command ../../bin/keytool -import -trustcacerts -alias emailuat -file /home/akhil/emailuat.cert -keystore cacerts

Configuring Git Aliases and Workflow

Let's agree, no matter what language you code in, developers life is incomplete without using git.  These are some notes from recent video I watched about git-workflow from Gary  Bernhart's . He shows some cool demonstration of git aliases and workflow he follows. The git config can be directly used by replacing the .gitconfig and adding the .githelpers at [2]. Prerequisite : You must install diff-so-fancy from [1] and add it's lib folder to the system PATH I guess I can now live without GitKraken at some point..  Usage (alias): [alias]     st = status     ci = commit --verbose     co = checkout     di = diff --find-copies-harder     dc = diff --find-copies-harder --cached     amend = commit --amend     aa = add --all     ff = merge --ff-only     noff = merge --no-ff     fa = fetch --all     pom = push origin master     ds = diff --stat=160,120     dh1 = diff HEAD~1     # Divergence (commits we added and commits remote added)     div = divergence     # Goodness (summary of

Installing Flutter In macOS

The google documentation was a bit confusing. So here are the notes to install flutter in mac: Download flutter sdk :  https://flutter.dev/docs/get-started/install/macos#update-your-path Unzip the flutter sdk in the username folder of your mac. From your username folder type vi .zshrc Paste the line : e xport PATH="$PATH:/Users/akhilkarun/flutter/flutter/bin" Restart terminal Type flutter --version Done. macOS version: 10.15.4 flutter sdk version: 1.17.0

Learning Logs

Uncle Bob Video Series SOLID Principles Ep-13: Dependency Inversion  Gist: Role reversed with example son taking care of mom.High level policy should be ignorant of the low level details. For example every IO driver in unix should confirm to the IO Driver Interface and implement the standard Open, Close, Read, Write , Seek functions. Ep-14: SOLID Case Study Gist: DB should be a plugin, Delivery mechanism (UI) should be a plugin Components Ep-15: Solid Components Gist:  What is a component? Component is an independently deployable software. How to start a design? Identify the actors. Then, start with the 'S' in SOLID. How to implement? High level policy should be ignorant of the low level details. Ep-15: Solid Components Gist:  When component changes, only 1 component per layer should change. Release Reuse Equivalent Principle: You cannot reuse a component unless the author is willing to manage it thru a release cycle (19:44?) Responsibility (in