This is a work in progress ... my shortcats I relay on and best practices for Evernote.
- From the Windows desktop
- From the Evernote window
Shift-Alt-N: Jump to Notebooks
Shift-Alt-T: Jump to Tags and start searching based on the labels
Notes about various (technical) topics and encountered or solved puzzles from engineering, devops or networking disciplines.
$ curl -s -v -o tmp https://googledrive.com/host/0B7ftIvGKDqYMTGk0Ujd2QzhYS1U/shBrushBash.js 2>&1 | egrep '[><]' > GET /host/0B7ftIvGKDqYMTGk0Ujd2QzhYS1U/shBrushBash.js HTTP/1.1 > User-Agent: curl/7.29.0 > Host: googledrive.com > Accept: */* > < HTTP/1.1 200 OK < Content-Type: application/x-javascript < Date: Thu, 21 Nov 2013 00:38:16 GMT < Content-Length: 2835 < Content-MD5: LXgFS0eQZq4VVenD/ymC6A== < Last-Modified: Wed, 20 Nov 2013 22:57:22 GMT < Cache-Control: private, max-age=60 < Expires: Thu, 21 Nov 2013 00:39:16 GMT < Access-Control-Allow-Origin: * < Access-Control-Allow-Credentials: false < Access-Control-Allow-Headers: Accept, Accept-Language, Authorization, Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, Content-Type, Date, GData-Version, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Origin, OriginToken, Pragma, Range, Slug, Transfer-Encoding, X-ClientDetails, X-GData-Client, X-GData-Key, X-Goog-AuthUser, X-Goog-Encode-Response-If-Executable, X-Goog-Correlation-Id, X-Goog-Upload-Command, X-Goog-Upload-Content-Disposition, X-Goog-Upload-Content-Length, X-Goog-Upload-Content-Type, X-Goog-Upload-Offset, X-Goog-Upload-Protocol, X-Goog-Visitor-Id, X-HTTP-Method-Override, X-JavaScript-User-Agent, X-Origin, X-Referer, X-Upload-Content-Length, X-Upload-Content-Type, X-Use-HTTP-Status-Code-Override, X-YouTube-VVT, X-YouTube-Page-CL, X-YouTube-Page-Timestamp < Access-Control-Allow-Methods: GET,OPTIONS < Server: HTTP Upload Server Built on Nov 14 2013 12:41:34 (1384461694) < Alternate-Protocol: 443:quic
http://www.ssltools.com/certificate_lookup/www.wikipedia.orgSSL Certificate
# start the shell interpreter
$ mongo
> show dbs
help    (empty)
local   0.078125GB
test    (empty)
> use rado
switched to db rado
> j = { name : "hello  word" }
{ "name" : "hello  word" }
> k = { x : 3 }
{ "x" : 3 }
> db.mycollection1.insert(j)
> db.mycollection1.insert(k)
> show dbs
help    (empty)
local   0.078125GB
rado    0.203125GB  <<<
test    (empty)
> use rado
> show collections
mycollection1  <<<<< 
system.indexes
> db.mycollection1.find()
{ "_id" : ObjectId("52767264795748b715336b87"), "x" : 3 }
{ "_id" : ObjectId("5276726a795748b715336b88"), "name" : "hello  word" }
apt-get install python-pymongo
apt-get install ipython
 
# rado-hello-world.py
import pymongo
from pymongo import MongoClien
client = MongoClient()
db = client['rado']
db.collection_names()
[u'system.indexes', u'mycollection1']
collection = db['mycollection1']
for doc in collection.find():
   ....:     print doc
   ....:
{u'x': 3.0, u'_id': ObjectId('52767264795748b715336b87')}
{u'_id': ObjectId('5276726a795748b715336b88'), u'name': u'hello  word'}
l = { "from" : "python", "mytext" : "hello from python" }
collection.insert(l)
ObjectId('52767d071d011c22eb1a7de5')
for doc in collection.find():
    print doc
   ....:
{u'x': 3.0, u'_id': ObjectId('52767264795748b715336b87')}
{u'_id': ObjectId('5276726a795748b715336b88'), u'name': u'hello  word'}
{u'_id': ObjectId('52767d071d011c22eb1a7de5'), u'from': u'python', u'mytext': u'hello from python'}
 
# default 
>>> client = MongoClient()
>>> client2 = MongoClient( j=True, fsync=True )
>>> client2.write_concern
 {'fsync': True, 'j': True}
>>> client.write_concern
 {}