Skip to content

Instantly share code, notes, and snippets.

@rwilkes
rwilkes / search_grammar.txt
Last active August 29, 2015 14:08 — forked from evernotegists/search_grammar.txt
Evernote Formal Search Grammar
search = [ notebook , separator ] ,
[ "any:" , separator ] ,
term ,
{ separator , term } ;
notebook = "notebook:" , ( word | quoted ) ;
word = wordchar , { wordchar } ;
quoted = '"' , { ( any - '"' ) | '\"' } , '"' ;
@rwilkes
rwilkes / server_setup.sh
Last active August 29, 2015 14:06 — forked from deepakkumarnd/server_setup.sh
Sample shell script for initial configuration and hardening of a debian-based dev server.
echo "* Updating system"
apt-get update
apt-get -y upgrade
echo "* Installing packages"
apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop
id -u deploy &> /dev/null
if [ $? -ne 0 ]
then