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
$ curl -v https://iars360.iars.org/.netlify/functions/token
* Trying 142.93.122.177...
* TCP_NODELAY set
* Connected to iars360.iars.org (142.93.122.177) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /Users/andy/anaconda3/ssl/cacert.pem
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
/* eslint-disable @typescript-eslint/no-use-before-define */
import { print } from 'graphql';
import { filter, make, merge, mergeMap, pipe, share, takeUntil } from 'wonka';
import { CombinedError } from 'urql';
import 'isomorphic-fetch';
/** A default exchange for fetching GraphQL requests. */
export const fetchExchange = ({ forward }) => {
const isOperationFetchable = (operation) => {
const { operationName } = operation;
Process: WhatsApp [9078]
Path: /Applications/WhatsApp.app/Contents/MacOS/WhatsApp
Identifier: desktop.WhatsApp
Version: 0.3.2277 (0.3.2277)
App Item ID: 1147396723
App External ID: 830097390
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: WhatsApp [9078]
User ID: 501
@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();
};
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.
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
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"
{
"id": "/test1",
"instances": 1,
"shell": false,
"container": {
"type": "DOCKER",
"docker": {
"image": "jimho/tcp-echo"
}
},
@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 ---
@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/)