-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
47 lines (45 loc) · 1.16 KB
/
test.js
File metadata and controls
47 lines (45 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
var marked = require('marked');
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: false
});
var str = " \
##### Problem \n\
> iMac cannot wake up after long sleep (actually it's hibernate). \n\
\n\
##### Cause \n\
> It's related with Parallel Desktop. \n\
> It occurs when parallel desktop is on while entering hibernate. \n\
\n\
##### Fix \n\
> Quit the App when entering to sleep. \n\
\n\
> Leverage an application called *sleepwatcher* \n\
\n\
\n\
1. Install sleepwatcher \n\
``` bash \n\
$ brew install sleepwatcher \n\
``` \n\
\n\
2. Launch sleepwatcher at login: \n\
``` bash \n\
ln -sfv /usr/local/opt/sleepwatcher/*.plist ~/Library/LaunchAgents \n\
``` \n\
\n\
3. Load sleepwatcher now: \n\
``` bash \n\
launchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist \n\
``` \n\
\n\
4. Create +x ~/.sleep file, with content: \n\
``` bash \n\
osascript -e 'quit app \n\"Parallels Desktop.app\"' \
``` "
console.log(marked(str));