- 博客(25)
- 收藏
- 关注
原创 Centos搭建docker环境
sudo yum install -y yum-utilssudo yum-config-manager --add-repo https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.reposudo yum makecache fastsudo yum -y install docker-engin
2017-02-04 16:30:20
1507
原创 ng2学习笔记(一)初识ng2
Angular2,简称ng2 看了下 fundamentals 的视频,13集,平均每集2分钟(如果网不好,拉到下面看transcript)简述一下: 1. 安装 npm,安装 angular-cli 2. ng new [site] 创建一个site,本地用localhost:4200 能预览 3. ng g c 创建一个component,ng g s 创建一个service,servi
2017-01-11 00:14:01
2275
1
原创 macos安装xcode command line tool的两种方法
Terminal 运行 xcode-select --install 然后点击安装登录https://developer.apple.com/download/more/ 然后下载 dmg 安装
2017-01-10 21:07:32
38848
4
原创 我的sublime setting
{ "ignored_packages": [ "Vintage" ], "translate_tabs_to_spaces": true, "draw_white_space": "all", "indent_to_bracket": true, "word_wrap": true, "highlight_modifie
2017-01-10 13:32:59
754
原创 vim安装Typescript语法高亮
下载vim-plugcurl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim下载typescript的plugingit clone https://github.com/leafgarland/typescrip
2016-12-28 01:29:55
4584
原创 Centos搭建git环境
安装gitsudo -iyum install git创建ssh keycd ~mkdir .sshchmod 700 .sshcd .sshssh-keygen # enter, enter, entermv id_rsa moyummygitmv id_rsa.pub moyummygit.pubcat moyummygit.pub # "ssh-rsa [blahblahbla
2016-11-29 14:00:30
613
原创 Centos搭建Ruby环境
安装rvm和rubysudo -iyum groupinstall -y development # or yum groupinstall -y 'development tools'gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3curl -L get.rvm
2016-11-29 13:37:07
420
原创 Github Reset
git reset [commit] # reset local to that commitgit stash # save changesgit push -f # force push to remotegit stash pop # load changesgit status # commit list has change to commit with changes after
2016-11-23 14:02:17
662
原创 WinServer2012重启trouble shooting
调出Event Viewer -> Windows Logs -> System找到一条Kernel-Power 的 InformationLog Name: SystemSource: Microsoft-Windows-Kernel-PowerDate: 9/8/2016 6:33:33 PMEvent ID: 109Task Cate
2016-09-09 10:16:23
3194
原创 Jenkins-Git trouble shooting
目标:在jenkins上搭建git的project并能执行dummy.bat和dummy.sh创建slave之后,建立.ssh之后,在slave上成功git clone repository,但在jenkins上无法cloneStarted by user anonymousBuilding remotely on Moyummy_Slave (Moyummy) in workspace C:\J
2016-09-06 13:44:07
5064
原创 MacOS搭建Python环境
安装pyenvcurl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash更新~/.bash_profileexport PATH="/Users/itools/.pyenv/bin:$PATH"eval "$(pyenv init -)"eval "$(pyenv
2016-06-08 16:45:47
538
原创 Sublime插件
Base Encoder Browser Refresh 实时更新,类似Notepad++ 的reload Markdown Preview Pretty JSON
2016-06-08 15:18:44
293
原创 Windows搭建Ruby环境
安装ruby :http://rubyinstaller.org/downloads/ (比如Ruby 2.1.8-x64.exe)把bin(比如C:\Ruby21-x64\bin )加入环境变量PATH安装 DevKit: http://rubyinstaller.org/downloads/ 解压到 C:\Ruby21-x64\DevKitcd C:\Ruby21-x64\DevKit
2016-05-16 11:53:39
3565
原创 MacOS搭建Ruby环境
MacOS搭建Ruby环境新blog地址安装rvmcurl -sSL https://get.rvm.io | bashsource ~/.profile安装rubyrvm install ruby-2.1.9配置gem (如果SSL验证有问题,用http代替https)gem sources --add https://gems.ruby-china.org/ --remove https://
2016-05-06 11:25:32
516
转载 Windows远程登录Mac
ssh到Mac上启用VNC:https://gist.github.com/nateware/3915757# Step 1: Set priveleges$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor
2016-03-14 18:13:00
846
原创 CentOS更换yum mirror
在 http://mirror-status.centos.org/ 找一个速度快的源(比如我选择mirror.vastspace.net)备份配置:$ ls /etc/yum.repos.d/CentOS-Base.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo CentOS-Media.repo CentOS-Vault.repo$
2016-01-26 10:47:30
1449
原创 Linux命令行格式及颜色
在.bash_profile里添加:export PS1='[\[\e[31;40m\]\u\[\e[37;40m\]@\[\e[36;40m\]\H \[\e[33;40m\]\w\[\e[37;40m\]]\$ \[\e[32;40m\]'效果:
2016-01-06 14:52:46
577
原创 GitHub Deploy
下载安装 http://www.git-scm.com/download/win添加到PATH:C:\Program Files\Git\cmd;C:\Program Files\Git\bin;设置账户git config --global user.name "Mo Yummy"git config --global user.email "mo.yummy@example.com"
2015-12-09 11:08:38
781
原创 VBox的Linux虚拟机,共享文件夹
设置共享文件夹 挂载共享文件夹linux-kyyw:~/test # mkdir /mnt/sharedlinux-kyyw:~/test # mount -t vboxsf shared /mnt/shared
2015-11-25 17:26:32
505
原创 GitHub Merge
Merge from master打开GitShell 进入目录 git checkout master git pull git checkout mybranch git merge master git status 打开GitHub软件切换到mybranch 点击Sync
2015-11-24 16:29:32
801
原创 我的.vimrc
我的.vimrcset numberset rulerset laststatus=2set enc=utf-8set history=1000syntax onfiletype onset autoindentset smartindentset cindentset tabstop=4set shiftwidth=4set softtabstop=4set expandta
2015-11-24 15:48:20
287
原创 C/C++/C#问题记录(二)获取ComboBox中SelectedItem的值
用到过两种方法方法一:((ComboBoxItem)combo.SelectedItem).Content.ToString();方法二:int index = combo.SelectedIndex;string label = combo.Items.GetItemAt(index).ToString();
2015-04-30 13:31:02
7168
原创 C/C++/C#问题记录(一)VS2012编译调用dll项目找不到lib的workaround
C++问题记录(一)VS2012编译调用dll项目找不到lib的workaroundC问题记录一VS2012编译调用dll项目找不到lib的workaround疑问描述: 新建solution:DllTest,Dll Project:DllSub,Console Project:DllMain Build DllSub,DllMain调用DllSub,Build DllMain 报错:Mai
2015-03-02 14:24:28
974
原创 Perl学习笔记(一)文件迁移脚本
Perl学习笔记(一)文件迁移脚本Perl学习笔记一文件迁移脚本动机完整代码代码思路文件操作组建label调试结语动机到新公司,开始看source code了,用eclipse看code需要在同一个文件夹下,所以就做一个扫描所有.cpp和.h的脚本,然后全复制到一个目录下。完整代码#!/usr/bin/perl -wuse strict;use warnings;use Cwd;u
2015-02-13 13:44:36
789
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人