Skip to content

Instantly share code, notes, and snippets.

View ishankhare07's full-sized avatar
👨‍💻

Ishan Khare ishankhare07

👨‍💻
View GitHub Profile
@ishankhare07
ishankhare07 / multiple_ssh_setting.md
Created January 24, 2019 11:13 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
a = {}
# add a key-value pair
a['name'] = 'ishan'
# lets see whats in there
print(a)
# {'name': 'ishan'}
# add more key-value pairs
@ishankhare07
ishankhare07 / tmux.md
Last active September 7, 2015 10:40 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@ishankhare07
ishankhare07 / playground.rs
Created August 28, 2015 07:08 — forked from anonymous/playground.rs
Shared via Rust Playground
//function pointer
fn foo(x: i32) -> i32 {
return x+1;
}
fn main() {
let mut x: fn(i32) -> i32 = foo;
// or x = foo;
println!("{}", x(10));