Skip to content

Instantly share code, notes, and snippets.

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"
@flyfly6
flyfly6 / cloudSettings
Last active June 29, 2020 08:56
Visual Studio Code Sync Settings GIST
{"lastUpload":"2020-06-29T08:56:42.933Z","extensionVersion":"v3.4.3"}
@flyfly6
flyfly6 / .npmrc
Created December 27, 2016 02:56
npm registry and mirrors setting
registry="http://172.30.41.176:7001"
disturl="https://npm.taobao.org/dist" # node-gyp 编译依赖的 node 源码镜像
chromedriver_cdnurl="http://npm.taobao.org/mirrors/chromedriver" # chromedriver 二进制包镜像
phantomjs_cdnurl="http://npm.taobao.org/mirrors/phantomjs" # phantomjs 二进制包镜像
sass_binary_site="http://npm.taobao.org/mirrors/node-sass" # node-sass 二进制包镜像
selenuim_cdnurl="http://npm.taobao.org/mirrors/selenium" # selenium 二进制包镜像
@flyfly6
flyfly6 / export-html-table-to-excel.md
Created February 8, 2017 04:14 — forked from umidjons/export-html-table-to-excel.md
Export HTML table to Excel in AngularJS

Export HTML table to Excel in AngularJS

myApp.factory('Excel',function($window){
		var uri='data:application/vnd.ms-excel;base64,',
			template='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>',
			base64=function(s){return $window.btoa(unescape(encodeURIComponent(s)));},
			format=function(s,c){return s.replace(/{(\w+)}/g,function(m,p){return c[p];})};
		return {
@flyfly6
flyfly6 / main.dart
Created March 21, 2019 03:59 — forked from mikemimik/main.dart
Flutter: Custom theme data
import 'package:flutter/material.dart';
import 'theme.dart' as Theme;
void main() {
runApp(
new MaterialApp(
title: 'CompanyApp',
color: Theme.CompanyColors.blue[500],
theme: Theme.CompanyThemeData,
home: new Scaffold(