Skip to content

Instantly share code, notes, and snippets.

View rahulduttt's full-sized avatar
🏠
Working from home

Rahul Dutt rahulduttt

🏠
Working from home
View GitHub Profile
@rahulduttt
rahulduttt / handling_multiple_github_accounts.md
Created August 1, 2022 14:19 — forked from Jonalogy/handling_multiple_github_accounts.md
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

@rahulduttt
rahulduttt / svelte.md
Created February 18, 2022 20:09 — forked from peltho/svelte.md
Svelte cheatsheet
/* Takes a list ofdelimited strings, where the delimiter is intended to imply
* a hierarchy ( somewhat like a file system path ) and turns it into
* a tree-like structure consisting of nodes looking something like
* { name: "", children: [] }
* The tree starts at the root node, which is ( no foolin' ) called
* root. So the top (root) node is:
* { name: "root", children: [xxx] }
*/
function listOfDelimitedStringsToTree(lines, delimiter){
function stringTreeToObjectTree(root){
@rahulduttt
rahulduttt / INSTALL
Created October 9, 2017 04:40 — forked from arya-oss/INSTALL.md
Ubuntu 16.04 Developer Tools installation
###### development tools
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk
### Python packages
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib
### pip packages
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython
//setup
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
// Actual ajax
$.post(submittarget,{data:data},function(e){
console.log(e);
});
<?php
namespace App\Http;
/**
* Description of VideoStream
*
* @author Rana
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069
*/
@rahulduttt
rahulduttt / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console