ruang.work

Share to Learn

This site was created as a place to share inspiration, tips, tricks, snippets, hobbies, something interesting in the field of tech, social, and other stuff. such as programming, design, AI, cryptocurrency, books, movies, and event product reviews.

Hopefully, the content of these pages will be of use to others and will enhance the author's existence in this vast internet world.

Latest Article

Snippets

Add SSH private key to Keychain to be automatically available when ssh
Terminal window
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
Github log format
Terminal window
git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset"
Gitignore File Isn't Working For Some Reason
Terminal window
git rm -rf --cached .
git add .
Javascript Filter Array
code {
counter-reset: step;
counter-increment: step 0;
}
code .line::before {
/* Style individual code line */
content: counter(step);
counter-increment: step;
margin-right: 1.5rem; /* Margin between line number and actual code element */
}
Javascript Reduce Array
code {
counter-reset: step;
counter-increment: step 0;
}
code .line::before {
/* Style individual code line */
content: counter(step);
counter-increment: step;
margin-right: 1.5rem; /* Margin between line number and actual code element */
}