Texts are darkened and serif-ied for better printing visual effects.
on run {input, parameters} | |
set theProjectTitle to input as string | |
tell application id "com.devon-technologies.thinkpro2" | |
set theParentID to "66603FF9-03FE-4AE8-86AE-9621AA22FCA7" | |
set theGroup to get record with uuid theParentID | |
set theProjectGroup to create record with {name:theProjectTitle, type:group} in theGroup | |
set theProjectGroupID to the uuid of theProjectGroup | |
set theProjectGroupURL to "x-devonthink-item://" & theProjectGroupID |
extension ViewController: NSSharingServicePickerDelegate { | |
func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] { | |
guard let image = NSImage(named: NSImage.Name("copy")) else { | |
return proposedServices | |
} | |
var share = proposedServices | |
let customService = NSSharingService(title: "Copy Text", image: image, alternateImage: image, handler: { | |
if let text = items.first as? String { | |
self.setClipboard(text: text) |
sudo mv /System/Library/Services/AppleSpell.service{,.disabled}
Nvm. For anyone else having this problem you need to reboot your mac and press ⌘+R when booting up. Then go into Utilities > Terminal and type the following commands:
csrutil disable
reboot
Every time I install Ubuntu on a different computer, I need to clone again the same git repositories. This is why I use this bash script.
It clones the list of repositories to a convenient working directory in the home folder. I use the /home/git
folder.
Arguments are lists of git repositories. One repo per line, one file per list. See the example:
# compinit optimization for oh-my-zsh | |
# On slow systems, checking the cached .zcompdump file to see if it must be | |
# regenerated adds a noticable delay to zsh startup. This little hack restricts | |
# it to once a day. It should be pasted into your own completion file. | |
# | |
# The globbing is a little complicated here: | |
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
# - '.' matches "regular files" | |
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. |
https://www.macobserver.com/tips/deep-dive/evade-macos-many-open-files-error-pushing-limits/
Archived links:
- page 1 http://archive.is/XttnK
- page 2 http://archive.is/gx6EA
Once your Mac has booted into Recovery Mode, you should click Utilities from the top menu bar, then Terminal. In Terminal, issue the following command:
- Download/clone https://github.com/matttrent/ibooks-highlights
pip3 install click
brew install libyaml
- cd to cloned copy
sudo python3 setup.py install
- copy templates from ibook_highlights/templates to /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ibooks_highlights-0.1.0-py3.6.egg
- Create directoy to hold your notes.
mkdir ~/Documents/Annotations
cd ~/Documents/Annotations
# Mac to stay awake indefinitely via the CLI | |
$ pmset noidle | |
# pmset's manual can be found @ | |
# https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/pmset.1.html |