Drafts

Draft and unpublished posts

0 posts

How I configure git

Git can be a bit tricky to get configured correctly. I often stumble into config issues weeks after setting up a new machine that I did not even notice. These are my notes to remind me how I configure git.

My experience with a new 3dkeeb corne

What did I sign myself up for? If the lower typing speed with alpha characters was not enough throw in special characters and keybings I setup long ago and only remember by muscle memory. I have so far killed my tmux pane instead of zooming in (m-x instead of m-z), killed my zsh line instead of paste to the end of a command (c-c instead of c-v).

1 min read

Maintianing multiple git repos with mu-repo

# installation pip install mu-repo ## register repos mu register --recursive mu list # run git commands mu status --short mu diff -U0 --color | bat # run shell commands mu sh $(grep -iRl "KEDRO_GID=0" | xargs sed -i "s/KEDRO_GID=0/KEDRO_GID=5/g")

Registering Repos #

mu register --all mu register --all mu register --recursive mu unregister --all 

📝 Bash Notes

I have similar command line related shortcuts in my bash notes

1 min read

Modal jumping

nnoremap <leader>e :execute getline(&#34;.&#34;)<cr>j nnoremap <c-j> g, nnoremap <c-k> g; nnoremap <c-j> <c-]> nnoremap <c-k> g; nnoremap <c-j> :cnext<cr> nnoremap <c-k> :cprev<cr> nnoremap <c-j> :lnext<cr> nnoremap <c-k> :lprev<cr> nnoremap <c-j> :tnext<cr> nnoremap <c-k> :tprevious<cr> nnoremap <c-j> :trewind<cr> nnoremap <c-k> :tprevious<cr>

Creating pypi-list with kedro

I had an idea come to me via twitter. Short one word name packages are becoming hard to find on pypi. Short one word readable package names that are not a play on words are easy to remember, easy to spell correctly, and quick to type out.

I started with the simple index. Pypi provides a single page listing to every single package hosted on pypi via the simple-index

Build A Portfolio

https://twitter.com/oliverjumpertz/status/1395689074594287625

Follow this over time. If you want to use code repositories for your portfolio. Make sure that you have made it unique in some way. Think about what kind of signal you are sending to hiring managers if you are linking to a project with no docs, and one commit from 3 days ago.

They don’t have to be PERFECT either, it’s likely that it’s not something you were paid to do, hence not able to put your full time into. Just having something that generally follows some GOOD practice will set you above most other candidates.

...

1 min read

vows

I can still rememember the day that we we realized our new baby girl had gone days without a bowel movement. Holding her while she looked as if she was about to pop at any moment, completely nervous for what was to come.

Little did we know what that strong little girl had in store for us. She was perparing us for something much bigger. Little did we know how much scary medical journeys would soon become a “normal” part of our life. We spent two solid years fighting for this girl every day.

I still remember that Fall day. That day you drove my car home alone while I sat with our kids, patiently awaiting your arrival. When you arrived, no words needed to be spoken, the minute you opened the car door I knew our lives had changed forever.

...

How to use git cherry pick

~/git via 🐍 v3.8.5 ❯ mkdir git-cherry-pick-learn ~/git via 🐍 v3.8.5 ❯ cd git-cherry-pick-learn ~/git/git-cherry-pick-learn ❯ git init Initialized empty Git repository in /home/walkews/git/git-cherry-pick-learn/.git/ git-cherry-pick-learn on  main ❯ touch readme.md git-cherry-pick-learn on  main [?] ❯ git status On branch main No commits yet Untracked files: (use &#34;git add <file>...&#34; to include in what will be committed) readme.md nothing added to commit but untracked files present (use &#34;git add&#34; to track) git-cherry-pick-learn on  main [?] ❯ git add . git-cherry-pick-learn on  main [+] ❯ git commit -m &#34;init readme&#34; [main (root-commit) ebd1ff2] init readme 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 readme.md git-cherry-pick-learn on  main ❯ echo &#34;Learn Cherry Pick&#34; Learn Cherry Pick git-cherry-pick-learn on  main ❯ git add . git-cherry-pick-learn on  main ❯ git commit -m &#34;add title...

Vim Fugitive

:G :G status :G commit :G add % :Gdiff :G push :Glog

Add current file and commit with diff in a split #

function! s:GitAdd() exe "G add %" exe "G diff --staged" exe "only" exe "G commit" endfunction :command! GitAdd :call s:GitAdd() nnoremap gic :GitAdd<CR> 

:on[ly] #

C-W o

:on[ly] will make the current buffer the only one on the screen. This is super helpful as many of fugitive commands will open in a split by default.

cycle through the jumplist

...

Zev Averbach Interview

Zev Averbach, Frustrated spreadsheet jockey to software developer at 36

Q: Tell me about your journey as a spreadsheet jockey into Data Engineering?

A: First of all, it’s hilarious that I accidentally found your questions for this interview by Googling myself. 😊

...