Skip to content

Instantly share code, notes, and snippets.

View ranraj's full-sized avatar
🏠
Working from home

Ranjithrajd ranraj

🏠
Working from home
View GitHub Profile
[{
"id": 1,
"name": "W180"
},
{
"id": 2,
"name": "W210"
},
{
"id": 3,
@ranraj
ranraj / Docker.m1.md
Last active January 20, 2023 06:50
Mac setup

I finally managed to get it running! I removed the installation and ran these commands:

rm -rf ~/Library/Group\ Containers/group.com.docker
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/.docker

I noticed that .docker directory was owned by root user, so I had to use sudo to remove it.

[package]
name = "oci-hitter"
version = "0.1.0"
authors = ["ranjithraj.d <ranjithraj.d@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
log = "0.4.14"
@ranraj
ranraj / 4_class&object_python.md
Last active August 14, 2020 14:11
programming language session

Order Domain

class Order:
    def __init__(self,count,deliveryAddress,phonenumber,landmark1,buyerName,specialNotes,status):
        self.count = count
        self.deliveryAddress = deliveryAddress
        self.phonenumber = phonenumber
        self.landmark1 = landmark1
        self.buyerName = buyerName
        self.specialNotes = specialNotes
@ranraj
ranraj / Design_pattern.md
Created August 6, 2020 03:22
Design pattern & object oriented

Facade

  • It hides the complexities of the system and provides an interface to the client from where the client can access the system.
  • SLF4j is better implemenation we can of it.
@ranraj
ranraj / Future.md
Last active July 23, 2020 07:51
Reactive
List<String> itemList = Arrays.asList("blue-cone", "red-cone", "gray-cone");
		ExecutorService service = Executors.newFixedThreadPool(5);
		itemList.forEach( item -> {
			
			Future<String> result = service.submit(() -> {
				//IO operation
				Thread.sleep(2000);
				return item;
 });
  • vscode

    • lldb - rust
    • rust-rs
  • fish (shell)

  • startship (shell prompt)

  • dbeaver

  • iterm2 (tabed terminal)

  • alias for my frequent folders

  • Firefox

  • HazelcastInstance
  • Queing API Model