Skip to content

Instantly share code, notes, and snippets.

View richtera's full-sized avatar
💭
Always shipping

Andreas Richter richtera

💭
Always shipping
View GitHub Profile
@richtera
richtera / content.js
Created November 6, 2012 01:08
Failure with jugglingdb...
.
.
.
function install(next) {
// Create the default content types
var Content = calipso.db.model('Content');
var defaults = {
status: 'published',
@richtera
richtera / gist:5845154
Created June 23, 2013 14:13
Output from failed deploy
info: Welcome to Nodejitsu richtera
info: jitsu v0.12.11, node v0.8.20
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/andy/calipso/package.json
data:
data: {
@richtera
richtera / gist:5845162
Created June 23, 2013 14:16
ls -R output
JasmineAdapter-1.1.2.js
Makefile
README.md
WebStormCodeSettings.jar
app-cluster.js
app.js
bin
conf
config.json
docs
@richtera
richtera / gist:6400198
Created August 31, 2013 19:45
nodejitsu deployment error
Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: npm exited with code 1
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
help: email: <support@nodejitsu.com>
help:
help: Copy and paste this output to a gist (http://gist.github.com/)
@richtera
richtera / session.log
Created September 11, 2013 13:58
Log
wks-andy:apis-authorization-server-war andy$ pwd
/Users/andy/tinkerpop/OAuth-APIS/apis-authorization-server-war
wks-andy:apis-authorization-server-war andy$ mvn clean jetty:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building API Secure - authorization server webapp 1.3.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ apis-authorization-server-war ---
{
"id": "/test1",
"instances": 1,
"shell": false,
"container": {
"type": "DOCKER",
"docker": {
"image": "jimho/tcp-echo"
}
},
language: node_js
node_js:
- '0.12'
script:
- npm install
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- nohup bash -c "./node_modules/protractor/bin/webdriver-manager start 2>&1 &"
- sleep 5
- "./node_modules/.bin/webdriver-manager update"
Jan 11 18:18:47 localhost.localdomain snap[12973]: [84B blob data]
Jan 11 18:18:47 localhost.localdomain snap[12973]: /snap/snap-codelabs/x1/server: 2: /snap/snap-codelabs/x1/server: Syntax error: Unterminated quoted string
Jan 11 18:18:47 localhost.localdomain systemd[1]: snap.snap-codelabs.server.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 11 18:18:47 localhost.localdomain systemd[1]: snap.snap-codelabs.server.service: Unit entered failed state.
Jan 11 18:18:47 localhost.localdomain systemd[1]: snap.snap-codelabs.server.service: Failed with result 'exit-code'.
Jan 11 18:18:47 localhost.localdomain systemd[1]: snap.snap-codelabs.server.service: Service hold-off time over, scheduling restart.
Jan 11 18:18:47 localhost.localdomain systemd[1]: Stopped Service for snap application snap-codelabs.server.
Jan 11 18:18:47 localhost.localdomain systemd[1]: snap.snap-codelabs.server.service: Start request repeated too quickly.
Jan 11 18:18:47 localhost.localdomain systemd[1]: Failed to star
yarn install v1.9.4
warning package.json: No license field
warning No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[-------------------------------------------------------------------------] 0/73(node:68227) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
✨ Done in 25.65s.
@richtera
richtera / IdControl.js
Last active September 5, 2018 21:09
This is how I mount the CMS.
/** @format */
import React from "react";
import uuidv1 from "uuid/v1";
// ... using predefined DNS namespace (for domain names)
export const uuid = () => {
return uuidv1();
};