随笔分类 -  MAC

brew安装指定版本的软件
摘要:原文:https://www.jianshu.com/p/aadb54eac0a8 在mac中使用 brew install 安装的软件默认都是最新版本的。有时候我们需要旧版本(指定版本)的时候,应该怎么做呢? 由于在学习 thrift 的过程中,希望安装 0.9.3 版本的 thrift ,但是默 阅读全文
posted @ 2019-11-01 10:53 Rosepotato 阅读(7476) 评论(0) 推荐(0)
我把双系统的win10抹除了现在开机只按option还是会出现双系统选择,怎么把那个win10给取消了或删除掉
摘要:找到解决方法了,按步骤来吧,准备:【打开Finder如果你在侧边设备一栏里看不到 Macintosh HD 就打开Finder设置>边栏>勾选硬盘,如果能看到请无视这一行】1. 打开终端执行命令 sudo -i, 然后输入密码, 回车即可2. 打开Finder 点击Macintosh HD 新建一个 阅读全文
posted @ 2019-02-13 16:37 Rosepotato 阅读(970) 评论(0) 推荐(0)
通过CGI实现在Html页面上执行shell命令
摘要:在mac上配置cgi(不用系统自带的apache cgi.) 安装完后,会有如下提示 DocumentRoot is /usr/local/var/www. The default ports have been set in /usr/local/etc/httpd/httpd.conf to 8 阅读全文
posted @ 2018-04-24 17:05 Rosepotato 阅读(6393) 评论(0) 推荐(0)
How to remove constantly launching services on Mac OS X
摘要:Even after you uninstall it, some Mac OS X software just won’t quit nagging you or notifying you of updates or at the very least polluting the Console 阅读全文
posted @ 2016-10-27 16:08 Rosepotato 阅读(298) 评论(0) 推荐(0)
How to fix the issue that GEM_HOME and/or GEM_PATH not set issue for rvm in mac version 10.12
摘要:add following lines below "export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting" into ~/.profile export GEM_HOME="/Users/spond/.rvm/gems 阅读全文
posted @ 2016-10-12 15:29 Rosepotato 阅读(618) 评论(1) 推荐(0)
NPM, BOWER, GIT, AND BASH PROXY CONFIGURATIONS
摘要:Sources: http://digitaldrummerj.me/proxy-configurations/ When you are using npm, bower, and git behind a proxy server you have to do a little bit of c 阅读全文
posted @ 2016-09-14 11:15 Rosepotato 阅读(315) 评论(0) 推荐(0)
SOCKSify Ruby
摘要:http://socksify.rubyforge.org/ What is it? SOCKSify Ruby redirects any TCP connection initiated by a Ruby script through a SOCKS5 proxy. It serves as 阅读全文
posted @ 2016-05-18 15:01 Rosepotato 阅读(448) 评论(0) 推荐(0)
How to install ruby on mac/ change ruby source in china
摘要:his one is tailor made for the Basix users among you. If you've been itching to try out Ruby and/or Rails, if the Terminal is somewhat new to you, you 阅读全文
posted @ 2016-04-11 23:14 Rosepotato 阅读(761) 评论(0) 推荐(0)
Internet Explorer for Mac the Easy Way: Run IE 7, IE8, & IE9 Free in a Virtual Machine
摘要:From link: http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/If you’re a Mac user that requires the usage of Internet Explor... 阅读全文
posted @ 2014-11-13 13:53 Rosepotato 阅读(1168) 评论(0) 推荐(0)
linux shell 逻辑运算符、逻辑表达式详解
摘要:shell的逻辑运算符 涉及有以下几种类型,因此只要适当选择,可以解决我们很多复杂的判断,达到事半功倍效果。一、逻辑运算符逻辑卷标 表示意思 1.关于档案与目录的侦测逻辑卷标!-f常用!侦测『档案』是否存在 eg: if [ -f filename ]-d常用!侦测『目录』是否存在-b侦测是否为一个... 阅读全文
posted @ 2014-08-20 10:30 Rosepotato 阅读(244) 评论(0) 推荐(0)
Save output to a text file from Mac terminal
摘要:Simply with output redirection:system_profiler > file.txtBasically, this will take the output of system_profiler and save it to the file file.txt. The... 阅读全文
posted @ 2014-08-20 10:29 Rosepotato 阅读(288) 评论(0) 推荐(0)
使用ssh公钥密钥自动登陆linux服务器
摘要:转自:http://7056824.blog.51cto.com/69854/403669作为一名 linux 管理员,在多台 Linux 服务器上登陆进行远程操作是每天工作的一部分。但随着服务器的增多,每次登陆,系统都会提示输入用户名和密码,频繁的输入用户名和密码是一件让人很烦的事 情。也许有人说... 阅读全文
posted @ 2014-08-06 11:09 Rosepotato 阅读(288) 评论(0) 推荐(0)
User is not in the sudoers file. This incident will be reported
摘要:On using the sudo command if we see the errorThis means that the user as whom we have logged in and are trying to run the command "sudo" does not have... 阅读全文
posted @ 2014-05-20 14:47 Rosepotato 阅读(326) 评论(0) 推荐(0)
Mac系统在终端中查看CPU信息的命令
摘要:在mac os x的终端中以命令行的形式查看本机cpu信息:sysctl -n machdep.cpu.brand_stringE.G.lis-mbp:Home jenkins$ sysctl -n machdep.cpu.brand_stringIntel(R) Core(TM) i7-4750H... 阅读全文
posted @ 2014-05-19 22:30 Rosepotato 阅读(10103) 评论(0) 推荐(0)
Difference between 2>&-, 2>/dev/null, |&, &>/dev/null and >/dev/null 2>&1
摘要:Reference link:http://unix.stackexchange.com/questions/70963/difference-between-2-2-dev-null-dev-null-and-dev-null-21up vote3down votefavorite5Just lo... 阅读全文
posted @ 2014-05-05 15:07 Rosepotato 阅读(341) 评论(0) 推荐(0)
CocoaPods requires your terminal to be using UTF-8 encoding
摘要:WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.See https://github.com/CocoaPods/guides.cocoapods.org/issues/26 forpossible solut... 阅读全文
posted @ 2014-04-27 22:06 Rosepotato 阅读(2522) 评论(0) 推荐(0)
How can I add a new user as sudoer using the command line?
摘要:Two ways to use sudo command for a standard user account:First,If you want to use sudo command for a standard user account, then you need to add this ... 阅读全文
posted @ 2014-04-27 21:46 Rosepotato 阅读(511) 评论(0) 推荐(0)
linux的chmod与chown命令详解
摘要:使用方式:chmod[-cfvR][--help][--version]modefile...说明:Linux/Unix的档案存取权限分为三级:档案拥有者、群组、其他。利用chmod可以藉以控制档案如何被他人所存取。把计:mode:权限设定字串,格式如下:[ugoa...][[+-=][rwxX]...][,...],其中u表示该档案的拥有者,g表示与该档案的拥有者属于同一个群体(group)者,o表示其他以外的人,a表示这三者皆是。+表示增加权限、-表示取消权限、=表示唯一设定权限。r表示可读取,w表示可写入,x表示可执行,X表示只有当该档案是个子目录或者该档案已经被设定过为可执行。-c:若 阅读全文
posted @ 2014-04-11 11:32 Rosepotato 阅读(201) 评论(0) 推荐(0)
Mac 可设置环境变量的位置、查看和添加PATH环境变量
摘要:Mac 可设置环境变量的位置、查看和添加PATH环境变量博客分类:OS--MAC OSMac 启动加载文件位置(可设置环境变量)-------------------------------------------------------(1)首先要知道你使用的Mac OS X是什么样的Shell,使用命令echo $SHELL如果输出的是:csh或者是tcsh,那么你用的就是C Shell。如果输出的是:bash,sh,zsh,那么你的用的可能就是Bourne Shell的一个变种。Mac OS X 10.2之前默认的是C Shell。Mac OS X 10.3之后默认的是Bourne Sh 阅读全文
posted @ 2014-04-10 17:51 Rosepotato 阅读(300) 评论(0) 推荐(0)