Skip to content

Instantly share code, notes, and snippets.

View doozie-akshay's full-sized avatar

Akshay Joshi doozie-akshay

  • Doozie Software Solutions
  • Bangalore
View GitHub Profile
@doozie-akshay
doozie-akshay / pomodoro.sh
Created October 17, 2020 02:10 — forked from jameswpm/pomodoro.sh
Minimalistic Pomodoro Timer
#!/bin/bash
#
# Minimalistic_Pomodoro_Timer
#
# Based on the SU answer found here: https://superuser.com/questions/224265/pomodoro-timer-for-linux/669811#669811
#
# Tested in Ubuntu 16.04 and Arch
pomodorotime () {
notify-send "Time to Work" "Focus" -u normal -a 'Pomodoro' -i $HOME/Documentos/icon.png
paplay /usr/share/sounds/freedesktop/stereo/window-attention.oga

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.