Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jdcasey's full-sized avatar

John Casey jdcasey

View GitHub Profile
+ cat /proc/self/mountinfo
1 1 0:1 / / rw shared:1 - rootfs rootfs rw
15 1 0:3 / /proc rw,nosuid,nodev,noexec,relatime shared:2 - proc proc rw
16 1 0:14 / /sys rw,nosuid,nodev,noexec,relatime shared:3 - sysfs sysfs rw
17 1 0:5 / /dev rw,nosuid shared:9 - devtmpfs devtmpfs rw,size=2005856k,nr_inodes=501464,mode=755
18 16 0:15 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:4 - securityfs securityfs rw
19 16 0:13 / /sys/fs/selinux rw,relatime shared:5 - selinuxfs selinuxfs rw
20 17 0:16 / /dev/shm rw,nosuid,nodev shared:10 - tmpfs tmpfs rw
21 17 0:10 / /dev/pts rw,nosuid,noexec,relatime shared:11 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
22 1 0:17 / /run rw,nosuid,nodev shared:12 - tmpfs tmpfs rw,mode=755
#!/usr/bin/env ruby
# encoding: utf-8
=begin
github_toc v0.1.0
Brett Terpstra 2014
Creates a linked table of contents from headers in a GitHub readme
Place a [toc] marker in the file to have it automatically replaced with the TOC
If there's no marker, it dumps just the TOC to STDOUT
@jdcasey
jdcasey / aprox-keycloak-error-summary.md
Last active August 29, 2015 14:24
errors in test aprox + keycloak setup

My error (in browser console):

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/auth/realms/aprox/protocol/openid-connect/token. (Reason: CORS header 'Access-Control-Allow-Origin' missing). <unknown>

Keycloak server:

http://localhost:8080/auth (docker container)

Angular client:

@jdcasey
jdcasey / aprox-realm.json
Created July 14, 2015 16:02
aprox keycloak realm config
{
"id" : "e70efabb-bfe1-4b85-9749-a44ee989676f",
"realm" : "aprox",
"notBefore" : 1436852857,
"accessTokenLifespan" : 300,
"ssoSessionIdleTimeout" : 1800,
"ssoSessionMaxLifespan" : 36000,
"accessCodeLifespan" : 60,
"accessCodeLifespanUserAction" : 300,
"accessCodeLifespanLogin" : 1800,
@jdcasey
jdcasey / basics.txt
Created July 15, 2015 17:01
aprox + keycloak local with enable-basic-auth
UI: http://aprox.local:8081/index.html
REST: http://aprox.local:8081/api/**
Keycloak: http://keycloak.local:8080/auth
@jdcasey
jdcasey / Gist.java
Created August 19, 2015 21:16
Examples for using Cartographer via AProx depgraph add-on and the AProx Java client API.
/**
* Copyright (C) 2011 Red Hat, Inc. (jdcasey@commonjava.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jdcasey
jdcasey / DockerKojiClientTest.java
Created January 8, 2016 18:51
example using jhttpc and causeway's koji client to talk to koji.
/**
* Copyright (C) 2015 Red Hat, Inc. (jdcasey@commonjava.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
Recv: �����is not Last Line Number+1, Last Line: 2
Recv: Resend: 3
Recv: ok
Send: N3 T0*57
Recv: echo:Unknown command: ""
Recv: ok
Send: N4 M190 S70.0*69
Recv: Z�Y.J��not Last Line Number+1, Last Line: 2
Recv: Resend: 3
Recv: ok
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Send: M105
Recv: ok T:29.5 /0.0 B:29.1 /0.0 @:0 B@:0
Changing monitoring state from 'Operational' to 'Printing'
Send: N0 M110 N0*125
Recv: ok
@jdcasey
jdcasey / git-bisect.log.md
Created July 29, 2016 05:25
OctoPrint-1.2.14-git-bisect-for-1423

Notes

AT: 0fec3aeca956054f220763c3bb5e90b5c4de8c25

Started print, and it started heating up. I thought it was working fine since 1.2.14 wouldn't even display the temperature curves after hitting Print. However, after canceling the temperatures continued to ramp up no matter that I tried to set them to off, and then to 0. I had to reset the RAMPS board, and unplugged/reconnected the arduino to the Pi to be safe.

I think this might be a bug that's unrelated to the one we're pursuing. Probably worth testing when we reach a stable point again.

I retried the print, this time letting it go through, and it started printing fine. I canceled the print, and the temperatures fell off on a curve like you'd expect.