How to Change Shells in the Terminal

Check which shell you are in. echo $SHELL Check shells available for use cat /etc/shells Change shell the long way chsh --shell /bin/bash Change shell the short way # for bash chsh -s /bin/bash # for fish chsh -s /usr/local/bin/fish

December 8, 2022 · 1 min

Hugo Obsidian Images Test

Default in Obsidian ./Attachments Jmoor discourse with percent attempt discourse with no percent attempt <>

December 3, 2022 · 1 min

Amazon IT Support Associate II

Questions What is 169.xxx IP address? How to fix 169 IP address error? 4. how do you see all running applications in windows ? What is command in the CLI (Microsoft)? Can we also check it in Linux CLI? 5. What troubleshooting steps you will follow if the printer is not working? Linux command to find IP address explain OSI model all of it with examples what is Active Directory ...

November 27, 2022 · 1 min

Git ignoring

.DS_Store ignoring https://stackoverflow.com/questions/18393498/gitignore-all-the-ds-store-files-in-every-folder-and-subfolder I think the problem you’re having is that in some earlier commit, you’ve accidentally added .DS_Store files to the repository. Of course, once a file is tracked in your repository, it will continue to be tracked even if it matches an entry in an applicable .gitignore file. You have to manually remove the .DS_Store files that were added to your repository. You can use git rm --cached .DS_Store Once removed, git should ignore it. You should only need the following line in your root .gitignore file: .DS_Store. Don’t forget the period! ...

November 23, 2022 · 1 min

How to enable & disable a shutdown timer via commandline for macos

How to set a shutdown timer for your Mac sudo shutdown -s +60 -s => sleep -h => shut it down completely -r => restart +60 => 60 minutes disable a shutdown timer sudo killall shutdown

November 23, 2022 · 1 min

Images Part 2

No Spaces Default in Obsidian Hugo ? <> no carrot dot back

November 23, 2022 · 1 min

The Absolute Beginners Guide to Emacs

The Absolute Beginners Guide to Emacs M-X Global-hl-line-mode C-x == C-c M-x cua-mode == turns on regular copy and paste

November 23, 2022 · 1 min

Copying ED25519 key in macos to clipboard

To copy an ED25519 key to the clipboard tr -d '\n' < ~/.ssh/id_ed25519.eub | pbcopy tr -- translate characters -d Delete characters in string1 from the input. <

November 20, 2022 · 1 min

What are rc files for

.rc originally stood “run commands” they run before using a application, program/operating system. Designed to setup the application, program/operating system with what the user preferences are so they do not have to set them up on another machine again. Most common encountered .rc file in the wild is the .bashrc and also .zshrc files. Not very accurate but an easy way to show famous rc files in Linux find /etc/ -name 'rc*' or -name '*rc'

November 5, 2022 · 1 min

Git basics

Git git remote add origin https://github.com/XuQtAK3p23E7/react-blog.git $ git remote -v origin https://github.com/XuQtAK3p23E7/react-blog.git (fetch) origin https://github.com/XuQtAK3p23E7/react-blog.git (push) git push -u origin main Configure git global name Chriss-MacBook-Pro:my-blog-backend chrisruss$ git config --global user.name Your Name Configure not global git user name only for a specific repo Chriss-MacBook-Pro:my-blog-backend chrisruss$ git config user.name "Socrates" Configure GLOBAL user email $ git config --global user.email you@example.com Configure LOCAL repo user email $ git config user.email you@example.com How i added a local repo to github add remote origin GH-URL git remote add origin https://github.com/XuQtAK3p23E7/react-blog.git $ git branch -M main push upload origin main make sure you create a personal token since support for password authentication was removed on August 13, 2021. https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls ...

October 22, 2022 · 1 min