Made for people

Datenstrom Yellow is for people who make small websites. Installing is unzipping one file and you are ready to go. The most important things for small
Read more →

Blog example page

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna pizza. Ut enim ad minim veniam, q
Read more →

Easy dotfiles management

  1. Initialize empty repo at $HOME dir
git init --bare $HOME/.dotfiles
  1. Use working directory of git as $HOME, and git dir as .dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
  1. Set git to ignore untracked files, Only for current local repo, because it’s annoying.
config config status.showUntrackedFiles no
  1. Here you go, check status, add your configs, commit and push
config status
config add .config/mpv
config commit -m "Added mpv config"
config remote add origin <link>
config push origin master
Read more →

Easy ssh port forwarding

  1. Forward port server port (80) to localhost (8111).
ssh -L 8111:localhost:80 user@server
curl "http://localhost:8111" # on host

Your server:80 is mapped to localhost:8111. Now in your host system you can access your server’s local service. [host]8111—<—-[ssh]—<–80[server]

  1. Forward localhost port (5000) to server port (8011).
ssh -R 8011:localhost:5000 user@server
curl "http://localhost:8011" # on server

Your localhost:5000 is mapped to server:8011. Now in server you can access your host systems local service. [host]5000—->—[ssh]—>—8011[server]

Read more →

SSH key migration

  1. Copy your files to ~/.ssh.
cp /path/to/my/key/id_rsa ~/.ssh/id_rsa
cp /path/to/my/key/id_rsa.pub ~/.ssh/id_rsa.pub
  1. Change permissions of files
sudo chmod 600 ~/.ssh/id_rsa
sudo chmod 644 ~/.ssh/id_rsa.pub
  1. Start the ssh-agent in the background and add the key to agent
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa

NOTE: If using fish shell,then just execute the ssh-agent -s and then export those printed vars. No need to import public key.

Read more →

Update Groups Without Logging Out

UseCase: After updating a group, you want to take effect of it without logging out.

  1. Use newgrp command followed by group name you updated
newgrp <group>
  1. Now check if changes were made.
id $USER 
Read more →