Skip to content

Instantly share code, notes, and snippets.

@blackpr
blackpr / Update remote repo
Created July 2, 2017 12:27 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/delay';
@Injectable()
export class TriviaService {
question$ = Observable.of({
@blackpr
blackpr / convert id_rsa to pem
Last active March 3, 2017 09:15 — forked from mingfang/convert id_rsa to pem
Convert id_rsa to pem file
cd ~/.ssh/
openssl rsa -in ./id_rsa -outform pem > id_rsa.pem
chmod 700 id_rsa.pem