Skip to content

Instantly share code, notes, and snippets.

@blackpr
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: 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
View trivia.service.ts
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 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
You can’t perform that action at this time.