[ Windows ] Enable / Disable Multiple RDP Sessions

gpedit.msc

 

Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections

 

Restrict Remote Desktop Services user to a single Remote Desktop Services session : Disabled

Limit number of connections : 999999

 

ref : https://support.managed.com/kb/a1816/how-to-enable-disable-multiple-rdp-sessions-in-windows-2012.aspx

[ jQuery ] $.proxy

Takes a function and returns a new one that will always have a particular context.

// Execute you.test() in the context of the `you` object
// no matter where it is called
// i.e. the `this` keyword will refer to `you`
var youClick = $.proxy( you.test, you );
$("#test").click(you.test); // this means button object that is the #test object

[ django ] start project

django-admin startproject helloworld

manage.py

helloworld/wsgi.py

helloworld/settings.py

helloworld/urls.py

List Command

python manage.py

Run Server

python manage.py runserver

Start first app

python manage.py startapp firstapp

firstapp/models.py

firstapp/admin.py

firstapp/views.py  # is a controller

firstapp/tests.py

firstapp/migrations/

Edit settings.py

INSTALLED_APP = (...,

'firstapp',)

[ macOS Sierra ] switch 2 github account on sourceTree

This is how to use a particular IdentityFile on macOS sourcetree.

  1. add “IdentitiesOnly yes” to ~/.ssh/config, so the result will be below.
Host dsin-GitHub
HostName github.com
User dsin
PreferredAuthentications publickey
IdentitiesOnly yes
IdentityFile /Users/dsin/.ssh/dsin-GitHub

2) test it

$ ssh -T git@dsin-GitHub

or

$ ssh -vT git@dsin-GitHub

3) change your remote repo address to git@dsin-GitHub, instead of git@github.com

NOTE : you can try force SSH private key using -i

$ ssh -i /Users/dsin/.ssh/dsin-GitHub git@github.com