摘要:
1. Tools - Create Public Key - 2. Select Key Type 3. Create Passphrase 4.Input Key Length 5. Generate Passphrase 服务器端 1. Configure server's ssh $ vi / 阅读全文
posted @ 2017-02-13 20:24
SapphireCastle
阅读(1686)
评论(0)
推荐(0)
摘要:
1.安装解压 Unzip and copy JetbrainsCrack.jar to /Applications/CLion.app/Contents/bin/JetbrainsCrack.jar 2.打开并拷贝 Open /Applications/CLion.app/Contents/bin/ 阅读全文
posted @ 2017-02-13 20:18
SapphireCastle
阅读(422)
评论(0)
推荐(0)
摘要:
在史蒂芬周下载破解版 安装package control import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.ins... 阅读全文
posted @ 2017-02-13 20:17
SapphireCastle
阅读(2912)
评论(0)
推荐(0)
摘要:
Lots of showoff: https://github.com/bhilburn/powerlevel9k/wiki/Show-Off-Your-Config 阅读全文
posted @ 2017-02-13 20:16
SapphireCastle
阅读(419)
评论(0)
推荐(0)
摘要:
<!--StartFragment--> 在AppStore安装xcode $/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" <!--EndFragm 阅读全文
posted @ 2017-02-13 20:15
SapphireCastle
阅读(143)
评论(0)
推荐(0)
摘要:
不过大家可别被「命令行」三个字吓到,其实你只需按步骤来,复制粘贴命令即可快速完成,事实上是很简单的。 一、准备工作: 二、格式化 U 盘: 插入你的 U 盘,然后在「应用程序」->「实用工具」里面找到并打开「磁盘工具」,或者直接用 Spotlight 搜索 “磁盘工具” 打开,如下图。 1 - 在左 阅读全文
posted @ 2017-02-13 20:14
SapphireCastle
阅读(239)
评论(0)
推荐(0)
摘要:
<!--StartFragment--> $ cd /Library/Preferences/SystemConfiguration/ 删除如下文件 com.apple.airport.preferences.plist com.apple.network.identification.plist 阅读全文
posted @ 2017-02-13 20:11
SapphireCastle
阅读(390)
评论(0)
推荐(0)
摘要:
多用户使用ssh登录 阅读全文
posted @ 2017-02-13 20:08
SapphireCastle
阅读(267)
评论(0)
推荐(0)
摘要:
git revert是用一次新的commit来回滚之前的commit,git reset是直接删除指定的commit git log 查询回滚版本唯一commit标识代码 git reset --hard HEAD~3 会将最新的3次提交全部重置,就像没有提交过一样。 --mixed git res 阅读全文
posted @ 2017-02-13 20:07
SapphireCastle
阅读(218)
评论(0)
推荐(0)
摘要:
git stash git pull git stash pop git stash pop: 从Git栈中读取最近一次保存的内容,恢复工作区的相关内容。由于可能存在多个Stash的内容,所以用栈来管理,pop会从最近的一个stash中读取内容并恢复。 git stash list: 显示Git栈内 阅读全文
posted @ 2017-02-13 20:06
SapphireCastle
阅读(320)
评论(0)
推荐(0)
摘要:
# Packages # ############ # it's better to unpack these files and commit the raw source # git has its own built in compression methods *.7z *.dmg *.gz *.iso *.jar *.rar *.tar *.zip # L... 阅读全文
posted @ 2017-02-13 20:05
SapphireCastle
阅读(164)
评论(0)
推荐(0)
摘要:
$ git push --set-upstream origin ljz-v1.0.0-2 注意:在前一个分支的基础上创建新分支 把master分支的内容更新到当前分支,打补丁 http://blog.csdn.net/hudashi/article/details/7664631/ http:// 阅读全文
posted @ 2017-02-13 20:04
SapphireCastle
阅读(147)
评论(0)
推荐(0)
摘要:
Git push [远程分支] [本地分支] 建立关联 Git branch --set-upstream mybranch origin/mybranch Git push 简化git push书写 $ git gpush 简化git push HEAD:refs/for/master,命令好长, 阅读全文
posted @ 2017-02-13 20:03
SapphireCastle
阅读(293)
评论(0)
推荐(0)
摘要:
$ git add blash $ git commit "add blash file" $ git push -u origin master $ git rm blash $ git push origin master -f 把文件本身也删除了 --cache 文件保留,但从new file 阅读全文
posted @ 2017-02-13 20:02
SapphireCastle
阅读(1832)
评论(0)
推荐(0)
摘要:
git clone -b master2 ../server 表示克隆名为master2的这个分支,如果省略-b <name>表示克隆master分支。 参考:http://blog.csdn.net/hudashi/article/details/7664396/ 阅读全文
posted @ 2017-02-13 20:01
SapphireCastle
阅读(126)
评论(0)
推荐(0)
摘要:
Git知识图谱:https://segmentfault.com/a/1190000002533334 简明指南:http://rogerdudler.github.io/git-guide/index.zh.html 阅读全文
posted @ 2017-02-13 20:00
SapphireCastle
阅读(101)
评论(0)
推荐(0)
摘要:
1. 控制台中,不赞成使用这种方法,因为换个shell,你的设置就无效了,因此这种方法仅仅是临时使用,以后要使用的时候又要重新设置,比较麻烦。 这个只针对特定的shell; $ PATH="$PATH:/my_new_path" (关闭shell,会还原PATH) 2. 修改/etc/profile 阅读全文
posted @ 2017-02-13 19:55
SapphireCastle
阅读(582)
评论(0)
推荐(0)
摘要:
1.首先安装vssh 2.找到机器 3. wget http://www.centoscn.com/tool/pptpd6.sh sh pptpd6.sh 请用root帐号运行上面的命令,就会一键安装好PPTP了,完全全自动,安装结束,你的VPN用户名跟密码会自动显示在你的屏幕上面。PPTP VPN 阅读全文
posted @ 2017-02-13 19:54
SapphireCastle
阅读(21)
评论(0)
推荐(0)
摘要:
32位CentOS执行下面命令: wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el5.rf.i386.rpm rpm -ivh axel-2.4-1.el5.rf.i386.rpm 64位CentOS执行下面命令: wget -c http:/ 阅读全文
posted @ 2017-02-13 19:53
SapphireCastle
阅读(5061)
评论(0)
推荐(0)
摘要:
1.软链接: 建立软链接:ln -s /usr/local/node-v4.2.6-linux-x86/bin/node /usr/local/bin/node 解释:将/usr/local/node-v4.2.6-linux-x86/bin/下的node映射到/usr/local/bin/下的no 阅读全文
posted @ 2017-02-13 19:51
SapphireCastle
阅读(22300)
评论(0)
推荐(2)
摘要:
df -h du -ah --max-depth=1 目录深度为1 -h:以人类可读的方式显示 -a:显示目录占用的磁盘空间大小,还要显示其下目录和文件占用磁盘空间的大小 -s:显示目录占用的磁盘空间大小,不要显示其下子目录和文件占用的磁盘空间大小 -c:显示几个目录或文件占用的磁盘空间大小,还要统 阅读全文
posted @ 2017-02-13 19:50
SapphireCastle
阅读(15492)
评论(0)
推荐(0)
摘要:
1. 查看内存使用 free -mh 2. 读出的内核信息进行解释 cat /proc/meminfo 阅读全文
posted @ 2017-02-13 19:49
SapphireCastle
阅读(31416)
评论(1)
推荐(0)
摘要:
1. ps -ef | grep java 表示查看所有进程里 CMD 是 java 的进程信息 2. ps -aux | grep java -aux 显示所有状态 3. kill -9 [PID] -9 表示强迫进程立即停止 4. lsof -i:8080 查看8080端口占用情况 其它: 1. 阅读全文
posted @ 2017-02-13 19:43
SapphireCastle
阅读(7141)
评论(0)
推荐(0)
摘要:
一、软件安装包的类型: 1. tar包,如software-1.2.3-1.tar.gz。它是使用UNIX系统的打包工具tar打包的。 2. rpm包,如software-1.2.3-1.i386.rpm。它是Redhat Linux提供的一种包封装格式。 3. dpkg包,如software-1. 阅读全文
posted @ 2017-02-13 19:41
SapphireCastle
阅读(267)
评论(0)
推荐(0)
摘要:
1. 查看nginx所在位置 2. 配置 阅读全文
posted @ 2017-02-13 19:17
SapphireCastle
阅读(140)
评论(0)
推荐(0)
摘要:
1. 增加源: 2. 安装 阅读全文
posted @ 2017-02-13 19:14
SapphireCastle
阅读(161)
评论(0)
推荐(0)
摘要:
1 vi /etc/sysconfig/iptables 2 #防火墙增加 3 -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT 4 service iptables restart 阅读全文
posted @ 2017-02-13 18:32
SapphireCastle
阅读(567)
评论(0)
推荐(0)
摘要:
A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever) 本地执行: 阅读全文
posted @ 2017-02-13 18:00
SapphireCastle
阅读(974)
评论(0)
推荐(0)
摘要:
1. 添加epel源: (1)查看机器位数 file /sbin/init 或者 file /bin/ls (2)X64: X32: 2. 导入key: 3. 添加remi源: 4. 升级源: 5. 安装nodeJS 问题破冰: 1. Cannot retrieve metalink for rep 阅读全文
posted @ 2017-02-13 17:50
SapphireCastle
阅读(2264)
评论(0)
推荐(0)
摘要:
1.A记录 又称IP指向,用户可以在此设置子域名并指向到自己的目标主机地址上,从而实现通过域名找到服务器。 说明:·指向的目标主机地址类型只能使用IP地址; 2. CNAME 通常称别名指向。可以为一个主机设置别名。比如设置test.mydomain.com,用来指向一个主机www.rddns.co 阅读全文
posted @ 2017-02-13 17:30
SapphireCastle
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号