Skip to content

Instantly share code, notes, and snippets.

View bencwbrown's full-sized avatar

Ben Brown bencwbrown

View GitHub Profile
@bencwbrown
bencwbrown / DevonThink Search operators
Created March 2, 2021 00:13 — forked from florido/DevonThink Search operators
DevonThink Search operators
DevonThink Search operators
In the toolbar search field, as well as in both the interactive and the simple web interface, you can use standard and extended Boolean operators, parenthesis, and more to fine tune your search.
The syntax of the operators is compatible to DEVONagent and EasyFind, the Finder, Spotlight, common search engines as well as common programming languages such as C, C++, Objective-C, Java, and JavaScript. The complexity of the query is unlimited.
Case
All terms are case-insensitive. You may, if you wish, use capitalization for proper names in a query, but DEVONthink Pro Office will ignore case in interpreting the query.

Keybase proof

I hereby claim:

  • I am bencwbrown on github.
  • I am bencwbrown (https://keybase.io/bencwbrown) on keybase.
  • I have a public key whose fingerprint is D988 211D 771C 54CA F310 AD42 8D3D 1A7C B414 FD52

To claim this, I am signing this object:

@bencwbrown
bencwbrown / theme.sh
Created January 17, 2019 21:49
Bash script for the argos Gnome extension, which changes the theme.
#!/usr/bin/env bash
echo "Theme"
echo "---"
SUN_ICON=$(curl -s "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/160/apple/155/black-sun-with-rays_2600.png" | base64 -w 0)
MOON_ICON=$(curl -s "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/160/apple/155/full-moon-symbol_1f315.png" | base64 -w 0)
echo "Daymode | image='$SUN_ICON' imageWidth=20 bash='gsettings set org.gnome.desktop.interface gtk-theme Adapta-Eta-Maia' terminal=false"
echo "Nightmode | image='$MOON_ICON' imageWidth=20 bash='gsettings set org.gnome.desktop.interface gtk-theme Adapta-Nokto-Eta-Maia' terminal=false"
@bencwbrown
bencwbrown / owncloud-sql
Last active July 24, 2018 00:35
Standard administrator set-up for ownCloud with MySQL
# Login as root
# sudo mysql -u root -p
CREATE DATABASE owncloud;
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin-password';
GRANT ALL PRIVILEGES ON owncloud.* TO 'admin'@'localhost' IDENTIFIED BY 'admin-password';
FLUSH PRIVILEGES;
EXIT;