diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`where XXXXX is the size of the RAM disk in terms of memory blocks.
Notes:
See https://github.com/sbt/sbt/wiki/sbt-1.x-plugin-migration for the list with sbt 1.x migration status.
| plugin | star |
|---|---|
| playframework/playframework | 9597 |
| scala-js/scala-js | 3053 |
| sbt/sbt-assembly | 1092 |
| mpeltonen/sbt-idea | 1085 |
| on run | |
| set imessage_id to "" -- leave blank to skip sending periodic iMessage progress updates, put your iMessage ID here to get updates as the script runs | |
| set delay_seconds to 5 -- Don't set to 0, it runs too fast. 0.75 is a good setting for "go fast". | |
| set computer_name to do shell script "scutil --get ComputerName" | |
| set os_version to do shell script "sw_vers -productVersion" | |
| set os_build to do shell script "sw_vers -buildVersion" | |
| set _uptime to do shell script "uptime" | |
| set url_list to {"http://techmeme.com", "http://www.consumerreports.org/laptops/macbook-pros-fail-to-earn-consumer-reports-recommendation/", "https://twitter.com/panzer/status/812367550734401536", "http://www.politico.com/story/2016/12/foreign-travelers-social-media-232930", "http://www.macworld.com/article/3153384/gaming/nintendo-plans-to-release-2-or-3-mobile-games-a-year-after-super-mario-runs-success.html", "http://www.wsj.com/articles/cyber-experts-cite-link-between-dnc-hacks-and-aggression-against-uk |
| import sqlite3 | |
| import tldextract | |
| history_domains = set() | |
| cf_domains = None | |
| print("Loading domains from Chrome browsing history...") | |
| # Copy history from ~/Library/Application Support/Google/Chrome/Default/History | |
| conn = sqlite3.connect('History') |
| #WARNING: Use at your own risk. No warranties expressed or implied. YMMV. Drive responsibly. Eat healthy. | |
| #First, `cd` into the parent dir for all of your `sbt`/`maven` projects (I assume you have one of those) | |
| find "$(cd ..; pwd)" -type d -name "target" -print0 | sudo xargs -0 tmutil addexclusion -p |
| ########## | |
| # Win10 Initial Setup Script | |
| # Author: Disassembler <[email protected]> | |
| # Version: 1.7, 2016-08-15 | |
| # dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
| # THIS IS A PERSONALIZED VERSION | |
| # This script leaves more MS defaults on, including MS security features. | |
| # Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
| package demo | |
| import scala.tools.nsc.io.AbstractFile | |
| import scala.tools.nsc.{Global, Phase} | |
| import scala.tools.nsc.plugins.{Plugin, PluginComponent} | |
| class DemoPlugin(val global: Global) extends Plugin { | |
| import global._ | |
| override def init(options: List[String], error: String => Unit): Boolean = true |
| import scala.reflect.macros.blackbox | |
| object PrettyPrinting { | |
| /* | |
| * Print a raw AST, nicely indented. | |
| * Pretty fragile, e.g. will get confused by string literals containing commas or parentheses. | |
| */ | |
| def prettyTree(raw: String): String = { | |
| var level = 0 |