Open in app

Sign In

Write

Sign In

Yugal Arora
Yugal Arora

17 Followers

Home

About

Nov 19, 2022

The magic of argv

Every C-Program must have a function called main() , program execution starts from it. When a program is executed with command line arguments, those are made available to program’s main() function by 2 arguments: 1st argument argc of type int indicates number of arguments 2nd argument *argv[] an array of…

Linux

3 min read

Linux

3 min read


Aug 6, 2022

linux date cheatsheet

Some quick handy formats that can be used with date command on linux. Example: date +'%d' 06 date +'%m' 08 date +'%Y' 2022 date +'%m-%d-%Y' 08-06-2022 date +'%m/%d/%Y %H:%M:%S' 08/06/2022 21:12:40 date +'%m/%d/%Y %H:%M:%S %p' 08/06/2022 21:12:28 PM date +'%x %T %p' 08/06/22 21:11:59 PM bonus (to print current epoch time): date +'%s' 1659820538 Reference: Chapter10: Time, The Linux Programming Interface — Michael Kerrisk

Linux

1 min read

Linux

1 min read


Jan 22, 2022

Docker Desktop — Moving away

Docker is changing its licensing model and Docker Desktop will require a subscription starting 31st Jan 2022, more details here. Docker Engine provides a runtime for Containers, other popular container runtimes are: Containerd CRI-O Mirantis Container Runtime runc crun runv etc… All container runtimes follow certain set of standards set…

Docker

2 min read

Docker

2 min read


Oct 22, 2021

jq cheatsheet

jq is a lightweight and flexible command-line JSON processor, it is also described as sed for JSON data: You can use it to slice and filter and map and transform structured data with the same ease We’ll use below endpoint as example `https://reqres.in/api/users` which provides response in json format. Beautify…

Json

3 min read

jq cheatsheet
jq cheatsheet
Json

3 min read


Oct 21, 2021

Progress bars in Python with tqdm

I ran a script which processed a large chunk of data, but was not sure what percentage of data has been processed and thought it would be nicer to have a progress bar, adding which was much simpler than I thought using tqdm. In order to access the python library…

Python

2 min read

Progress bars in Python with tqdm
Progress bars in Python with tqdm
Python

2 min read

Yugal Arora

Yugal Arora

17 Followers

Site Reliability Developer @ Oracle Cloud Infrastructure

Following
  • CyberPunkMetalHead

    CyberPunkMetalHead

  • Andy Walker

    Andy Walker

  • Fernando Duran

    Fernando Duran

  • Nishit Sadhwani

    Nishit Sadhwani

  • Ishu Singh

    Ishu Singh

See all (6)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams