Search
Categories
Hours & Info
Bookmark
Monthly Archives: April 2017
RAM Disk on Mac
原文链接:http://www.toutiao.com/a6412375956519403778/?tt_from=weixin&utm_campaign=client_share&app=news_article&utm_source=weixin&iid=9729151087&utm_medium=toutiao_ios&wxshare_count=1 实现方法 方法的思路很简单,大概可以分两步: 1.配置 RAM。在内存中专门开出一块让 Xcode 使用。 2.连接 Xcode。让 Xcode 连接到我们开辟出来的专属内存空间。 下面就是见证奇迹的时刻。 第一步, 创建 .sh 文件。代码如下 #!/bin/bash RAMDISK=”ramdisk” SIZE=1024 #size in MB for ramdisk.· diskutil erasevolume HFS+ $RAMDISK `hdiutil attach -nomount ram://$[SIZE*2048]` 第二步, 运行 .sh 文件。在命令行中敲下 之后你会发现你会多出一个叫 ramdisk 的内存空间,有大概 1 … Continue reading
Posted in Mac
Leave a comment
git squash
1. Add a global “squash” alias from bash git config –global alias.squash ‘!f(){ git reset –soft HEAD~${1} && git commit –edit -m”$(git log –format=%B –reverse HEAD..HEAD@{1})”; };f’ 2. ~/.gitconfig should now contain this alias: [alias] squash = “!f(){ git reset … Continue reading
First blog post
This is the excerpt for your very first post. Continue reading
Posted in Mobile
Leave a comment