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

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.
@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
{
"files.autoSave": "off",
"window.zoomLevel": 0,
"git.confirmSync": false,
"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\cmd.exe",
"window.menuBarVisibility": "toggle",
"workbench.statusBar.visible": true,
"php.validate.executablePath": "C:\\php\\php.exe",
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+m",
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+\\",
"command": "-editor.action.jumpToBracket",
@doozie-akshay
doozie-akshay / Laravel Git Push to Live - Shared Hosting
Last active April 26, 2020 07:39
For Laravel push to live deployment
Online Git Push Documentation :
Open Up Putty Exe
Put hostname– example domain.com and port like 22
Login to server with your creds
After login – goto – repos floder (cd repos) / create folder repos one level above document root
@doozie-akshay
doozie-akshay / Git Push to Live - Shared Hosting
Created April 26, 2020 07:36
For Website and Front end application
Online Git Push Documentation :
Open Up Putty Exe
Put hostname– example domain.com and port like 22
Login to server with your creds
After login – goto – repos floder (cd repos) / create folder repos one level above document root
@doozie-akshay
doozie-akshay / Open in IE - Registry .reg
Last active April 26, 2020 07:28
How to force open a link in IE Explorer?
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\ie]
"URL Protocol"=""
@="URL:IE Protocol"
[HKEY_CURRENT_USER\Software\Classes\ie\shell]
[HKEY_CURRENT_USER\Software\Classes\ie\shell\open][HKEY_CURRENT_USER\Software\Classes\ie\shell\open\command]
@="cmd /c set url=\"%1\" & call set url=%%url:ie:=%% & call start iexplore -nosessionmerging -noframemerging %%url%%"
-- Remove the git folder
rm -rf .git
-- init the repos from the current content only
git init
git add .
git commit -m "First commit"
-- push to the github remote repos with --force to overwrite history
git remote add origin git@github.com:<ACCOUNT>/<REPOS>.git
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',