Skip to content

Instantly share code, notes, and snippets.

View paul-cheung's full-sized avatar

paul cheung paul-cheung

  • Tesla
  • Shanghai, China
View GitHub Profile
@paul-cheung
paul-cheung / multiple_ssh_setting.md
Created December 3, 2020 13:42 — 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"
@paul-cheung
paul-cheung / temp code snippet
Created March 13, 2014 09:13
use a method and a certain property value to initialize another instance property in a class initialization.
public class ReflectionController : ODataController
{
private static Logger _logger = LogManager.GetCurrentClassLogger();
[Queryable]
public IQueryable<CmsReflection> GetReflections()
{
var accessToken = Request.Headers.First(header => header.Key == "AccessToken").Value.First().ToString();
var db = Utility.GetDbContext(accessToken);