Skip to content

Instantly share code, notes, and snippets.

View timlien's full-sized avatar

Tim Lien timlien

View GitHub Profile
@timlien
timlien / IntelliJ IDEA.app.vmoptions
Created June 15, 2018 09:37
IntelliJ IDEA 2018 JVM optimization
# IntelliJ IDEA vm options
-ea
-server
-Xms2G
-Xmx4096M
-Xss2m
-XX:MaxMetaspaceSize=2G
-XX:ReservedCodeCacheSize=1G
-XX:MetaspaceSize=512m
@timlien
timlien / numbers-export-csv.sh
Last active April 8, 2021 07:02
Export mac numbers file into csv format with apple script
#!/usr/bin/osascript
on run argv
set theFilePath to POSIX file (item 1 of argv)
set theFolder to theFilePath as alias
tell application "System Events" to set theDocs to theFolder's items whose name extension = "numbers"
repeat with aDoc in theDocs
set docName to aDoc's name as text