Skip to content

Instantly share code, notes, and snippets.

blackpr / Update remote repo
Created Jul 2, 2017 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
View Update remote repo
// Reference:
// See also:
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin
$ git push origin master
$ git remote rm bitbucket
View trivia.service.ts
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/delay';
export class TriviaService {
question$ = Observable.of({
blackpr / convert id_rsa to pem
Last active Mar 3, 2017 — forked from mingfang/convert id_rsa to pem
Convert id_rsa to pem file
View convert id_rsa to pem
cd ~/.ssh/
openssl rsa -in ./id_rsa -outform pem > id_rsa.pem
chmod 700 id_rsa.pem