$ ssh -A vm
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!In your command-line run the following commands:
brew doctorbrew update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Install the MYSQL driver | |
| # gem install mysql2 | |
| # | |
| # Ensure the MySQL gem is defined in your Gemfile | |
| # gem 'mysql2' | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # general alias | |
| alias zshconfig="vim ~/.zshrc" | |
| alias brewup="brew update && brew upgrade" | |
| # git alias | |
| alias ga="git add" | |
| alias gb="git --no-pager branch" | |
| alias gc="git commit" | |
| alias gca="git commit --amend --no-edit" | |
| alias gcm="git commit -m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en" class="no-js"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="description" content="Batbayar Sukhbaatar is passionate web developer who loves to everything in the world especially web development related"> | |
| <meta name="keywords" content="Batbayar, Sukhbaatar, resume, résumé, cv"> | |
| <meta name="robots" content="index, follow"> | |
| <meta name="author" content="Batbayar"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <layout> | |
| <configItem> | |
| <name>mp</name> | |
| <shortDescription>mp</shortDescription> | |
| <description>Mongolian Phonetic</description> | |
| <languageList> | |
| <iso639Id>mon</iso639Id> | |
| </languageList> | |
| </configItem> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MySQL. Versions 4.1 and 5.0 are recommended. | |
| # | |
| # Install the MySQL driver: | |
| # gem install mysql2 | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def flatten(subarr, flat = []) | |
| subarr.each do |item| | |
| if item.class == Array | |
| flatten(item, flat) | |
| else | |
| flat << item | |
| end | |
| end | |
| flat | |
| end |