#SSH Login without password
- Create public and private keys using ssh-keygen on local-host
$ ssh-keygen
or
# Creates a new ssh key, using the provided email as a label
$ ssh-keygen -t rsa -C "your_email@example.com"
#SSH Login without password
$ ssh-keygen
or
# Creates a new ssh key, using the provided email as a label
$ ssh-keygen -t rsa -C "your_email@example.com"
| # Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
| $ sudo chown -R `whoami` /usr/local/texlive | |
| $ tlmgr update --self | |
| $ tlmgr install ucs | |
| $ tlmgr install etoolbox | |
| # Install pandoc view homebrew | |
| $ brew install haskell-platform | |
| $ cabal install pandoc |
dpkg --list | grep linux-image
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
if you’ve upgraded your system, or had an update with a new kernel, please reboot your machine before running above the command
Why Should I Care (For Developers)
"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text 2 if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
| <?xml version="1.0"?> | |
| <root> | |
| <!-- | |
| <item> | |
| <name>Use caps lock key to extra modifier</name> | |
| <appendix>(You need to change the key code of caps lock to 80 on PCKeyboardHack)</appendix> | |
| <identifier>private.capslock_extra_modifier</identifier> | |
| <block> | |
| <modifier_only>ModifierFlag::CAPSLOCK</modifier_only> | |
| <autogen> |
| package yourpackage; | |
| import static org.mockito.Mockito.*; | |
| import java.util.HashMap; | |
| import org.hibernate.SessionFactory; | |
| import org.hibernate.classic.Session; | |
| import org.hibernate.dialect.MySQL5Dialect; | |
| import org.hibernate.dialect.function.SQLFunctionRegistry; |
package info.wangyg.algorithms.sort;
import java.lang.reflect.Array;
import java.util.Comparator;
/**
*
* @author wangyingang
*