sudo apt-get updatesudo apt-get install -y libssl1.0.0 opensslopenssl version -aand confirm the "built on" date is >= 2014-04-07sudo lsof -n | grep ssl | grep DELand restart all listed services.
Repeat #4 until no results are returned.
This is an example of how to scaffold API endpoints to list / get / create / update / delete Posts in a Keystone website.
It's a modification of the default project created with the yo keystone generator (see https://github.com/JedWatson/generator-keystone)
Gists don't let you specify full paths, so in the project structure the files would be:
routes-index.js --> /routes/index.js // modified to add the api endpoints
routes-api-posts.js --> /routes/api/posts.js // new file containing the Post API route controllers
| cluster = require 'cluster' | |
| express = require 'express' | |
| workers = require('os').cpus().length | |
| app = express() | |
| app.get '/', (req, res) -> | |
| res.send('Working!') | |
| #sudo vim /Library/LaunchDaemons/io.redis.redis-server.plist | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>io.redis.redis-server</string> | |
| <key>ProgramArguments</key> | |
| <array> |
| var win = Ti.UI.currentWindow; | |
| Titanium.PageFlip = Ti.PageFlip = require('ti.pageflip'); | |
| var pdf = 'http://assets.appcelerator.com.s3.amazonaws.com/docs/Appcelerator-IDC-Q1-2011-Mobile-Developer-Report.pdf'; | |
| var fileName = pdf.split('/').pop(); | |
| var pdfFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, fileName); | |
| function downloadPDF() { | |
| var progressBar = Ti.UI.createProgressBar({ max: 1, min: 0, value: 0, visible: true }); | |
| win.add(progressBar); |
| if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
| var Storage = function (type) { | |
| function createCookie(name, value, days) { | |
| var date, expires; | |
| if (days) { | |
| date = new Date(); | |
| date.setTime(date.getTime()+(days*24*60*60*1000)); | |
| expires = "; expires="+date.toGMTString(); |