I am very grateful. Talking on the phone with a stranger and she helped me resolve an issue that I thought might be slim to none to get it resolved on time but she got it resolved today – I cannot express enough to her how I am very grateful for what she did today.
I used to get many inboxes in my professional LinkedIn account from fortune 500 companies’ recruitment department like Google, Meta (Facebook), especial Amazon. And just recently right after May or early June, I have zero inbox which I felt very strange and wonder if is hiring freeze really happening now? And Are we already getting into a recession?
Today I got a D.M. from my co-worker via Slack about running Chromium in CLI Linux. Chromium comes with a debugger which is really helpful for developer debugging javascript, jquery or any front end javascript libraries. My co-worker could not get it to run in Linux. I could not figure out what was the cause as it might have to involve me having to install it myself in my environment but I recalled that I wrote a blog about install chrome in Linux a while back here in my blog:
Google chrome also comes with a debugger so I just send the note in above blog post to my co-worker and it works. My co-worker is happy and so is me.
e.g. running chrome in cli linux from terminal point to url http://damnvulnerableiosapp.com/ and with its debugger where I can add breakpoints with or w/o condition.
I have just finished listening to this audio book from a navy seal author – Nick Hays.
One of the most inspiring and practical in the personal development category. I came across it on my scribd book recommend to me personally and would recommend it to anyone who is seeking to find their grit. I will re-listen and read the actual book.
(P.S.)We need to read more books as much as we can because I strongly believe sometimes we just need to pick the right book that could change our lives. I recalled when I was a freshman at my university, my older brother borrowed my old motorbike so he had to drop me off at my university and he went on continuing his day with my motorbike. That being said, he had to pick me up after school hour. I kept waiting and he didn’t show up for like hrs. I was still reading a book with title “Will power” and the author even had a disclaimer clause that warning the reader that once acquired this skill, it will be hard to take it off and instead could be seen as stubborn. And that was the moment I decided to bridge what was said in the book, I walked home for the first time from university which was around 6.2 km. And I realized that it wasn’t that difficult once we put our mind toward it.
My co-worker executed a script I wrote for automating a few thing from our day-to-day work so our work life is easier. My co-worker DM’ed me via Slack that there was an error and it returned as “no se encontro la orden”. I never seen an error like that in Linux before. My first thought that it must be French as it sounds like French but turned out it is Spanish after I google translated it. It means “Command not found” and once I understand that then it is easier to pinpoint what went wrong with the script in my co-worker’s environment. And we got it resolved.
I am bilingual myself and also knew a little Japanese since I learned it for 3 years while pursuing my Undergraduate degree in Computer Science. Also I am just recently interested in learning Spanish as well.
I just helped a co-worker regarding this particular task where she wants to switch her network interface from manual static IP to automatic IP by dhcp in a linux client using command line since it does not have x desktop so I quickly wrote following script
you can find your interface name quickly by executing nmcli dev status at the terminal
switchStaticToDHCP.sh
requires passing by one argument which is your network interface name.
!/bin/bash
nmcli con mod $1 ipv4.method auto
nmcli con mod $1 ipv4.gateway ""
nmcli con mod $1 ipv4.address ""
nmcli con down $1
nmcli con up $1
dhclient $1
switchStaticToDHCP.sh Your_Network_Interface_Name
eg: bash switchStaticToDHCP.sh enp0s3
switchDHCPToStatic.sh
requires passing by 3 arguments – your network interface name, static ip address, & default gateway ip address.
!/bin/bash
nmcli con mod $1 ipv4.method manual
nmcli con mod $1 ipv4.addresses $2/24
nmcli con mod $1 ipv4.gateway $3
nmcli con down $1
nmcli con up $1
sometimes we do not want to pay for the Certificate authority – CA to issue a real certificate or for development, we just want to use a self sign cert that we signed and manually trusted it for testing https traffic just for development environment.
In Windows, we can just click on the self sign cert and it prompts us to where we want to store it which usually should be stored in Trusted Root Authority store.
But where is it in Linux and especially for mono? also I am not going to cover self sign cert for IIS server creation here in this post and I assume you already know how to do it. if you go to IIS manager (inetmgr) you should be able to create it there.
I wrote a bash script here where it will download your IIS self signed cert from your IIS Server in pem format and then merge it with existing certificate bundle – tls-ca-bundle.pem. Then sync the newly merged cert list to mono store – Trust store
registerIISServerCertSelfSignForMono.sh
#!/bin/bash
echo "Server:Port = $1";
### Download IIS self sign cert in pem format from given server:port
openssl s_client -showcerts -verify 5 -connect $1 < /dev/null | awk '/BEGIN/,/END/{ if(/BEGIN/) out="IISSelfSignCert.pem"; print >out}'
TEMPDIR=/etc/pki/ca-trust/source/temp
### Cleaning up our temp directory
rm -rf $TEMPDIR
mkdir -p $TEMPDIR
### copy our IIS Server self sign cert pem to our temp directory
cp IISSelfSignCert.pem $TEMPDIR
### Merge our IIS self sign cert pem to existing tls ca bundle cert pem
cp /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem $TEMPDIR/MergedCertList.pem
echo -e "\n# $f added for IIS Server Self Sign Cert" >> $TEMPDIR/MergedCertList.pem
cat $TEMPDIR/IISSelfSignCert.pem >> $TEMPDIR/MergedCertList.pem
cat $TEMPDIR/MergedCertList.pem
#now sync with Mono store, Trust store
cert-sync $TEMPDIR/MergedCertList.pem