Skip to content

Instantly share code, notes, and snippets.

View mikeumus's full-sized avatar
🪐
ARTEMIS

Michael Duane Mooring mikeumus

🪐
ARTEMIS
View GitHub Profile
Uncaught RangeError: Maximum call stack size exceeded
at http://localhost:9000/portal/assets/dist/vendor.bundle.js:124400:56
at Array.forEach (native)
at DirectiveResolver._mergeWithPropertyMetadata (http://localhost:9000/portal/assets/dist/vendor.bundle.js:124400:39)
at DirectiveResolver.resolve (http://localhost:9000/portal/assets/dist/vendor.bundle.js:124381:29)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (http://localhost:9000/portal/assets/dist/vendor.bundle.js:125095:64)
at CompileMetadataResolver._getEntryComponentMetadata (http://localhost:9000/portal/assets/dist/vendor.bundle.js:125804:45)
at http://localhost:9000/portal/assets/dist/vendor.bundle.js:125131:59
at Array.map (native)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (http://localhost:9000/portal/assets/dist/vendor.bundle.js:125131:22)
@mikeumus
mikeumus / vim-hyper-js_1-2-1.sh
Last active February 16, 2017 15:02
E349: No identifier under cursor
module.exports = {
config: {
hypernpm: {
1: "build",
2: "build:prod",
3: "test"
},
visor: {
@mikeumus
mikeumus / dark.css
Last active September 27, 2016 23:32
Style tweaks to C9 IDE's dark.css
.searchTxt.tb_console .sbtb_middle{
background-color: #444444;
}
.searchbox .sbtb_middle .input{
color: #fff;
}
/*.searchbox .sbtb_middle .input textarea{*/
/* font-size: 24px;*/
/* padding: 10px;*/
/* color: #fff;*/
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>
@mikeumus
mikeumus / http-error-spring.sh
Created July 20, 2016 05:54
http error from ssl setting for Spring `application-dev.yml`
2016-07-20 01:35:22.498 ERROR 25972 --- [ restartedMain] o.a.coyote.http11.Http11NioProtocol : Failed to start end point associated with ProtocolHandler ["http-nio-8090"]
java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
at sun.security.util.DerInputStream.getLength(DerInputStream.java:561) ~[na:1.8.0_60]
at sun.security.util.DerValue.init(DerValue.java:365) ~[na:1.8.0_60]
at sun.security.util.DerValue.<init>(DerValue.java:320) ~[na:1.8.0_60]
at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1914) ~[na:1.8.0_60]
at java.security.KeyStore.load(KeyStore.java:1445) ~[na:1.8.0_60]
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:451) ~[tomcat-embed-core-8.0.30.jar:8.0.30]
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:355) ~[tomcat-embed-core-8.0.30.jar:8.0.30]
mikeumus:~/workspace $ curl -X 'GET'er.api.autodesk.com/modelderivative/v2/designdata/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXl0ZXN0YnVja2V0dGVzdDIvZ2lyaS1zaXItY29weTIucnZ0/manifest'* Hostname was NOT found in DNS cache
* Trying 107.23.72.59...
* Connected to developer.api.autodesk.com (107.23.72.59) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):

Keybase proof

I hereby claim:

  • I am mikeumus on github.
  • I am mikeumus (https://keybase.io/mikeumus) on keybase.
  • I have a public key whose fingerprint is 6B84 D32A 5F53 3D90 2015 6A93 7627 89B9 80C8 20A0

To claim this, I am signing this object:

@mikeumus
mikeumus / app.ts
Last active May 13, 2016 05:13
Angular2 TypeScript Modal files
import {Input, Component, View, CORE_DIRECTIVES} from 'angular2/angular2'
interface Model {
name: string
}
@Component({
selector: 'modal'
})
@mikeumus
mikeumus / upgrade_postgres-9-3_9-4.sh
Last active April 13, 2016 08:22 — forked from tamoyal/gist:2ea1fcdf99c819b4e07d
Upgrade Postgres 9.3 to 9.4 on Ubuntu Trusty
#!/bin/bash
# Be sure to save your config files. Optional but I do:
sudo cp /etc/postgresql/9.3/main/postgresql.conf ~
sudo cp /etc/postgresql/9.3/main/pg_hba.conf ~
# Package repo (for apt-get)
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
# Also probably optional but I like to update sources and upgrade
@mikeumus
mikeumus / flatten.js
Last active March 28, 2016 09:43
Simple Int Array Flattener/De-nester in ECMAScript 5
// Simple Int Array Flattener/De-nester in ECMAScript 5!
// Interactive version on Plunker: https://plnkr.co/edit/fjqPJmzxpTFQu8VsToXK
(function(){ // Immediately Invoked Function Expression (iife) for safety closure.
var firstArray = [[1,2,[3]],4]; // Test array #1, 3 nests deep.
var secondArray = [[1,2,[3,[5]]],4]; // Test array #2, 4 nests deep!
var flatten = function(arr){ // Our flatten function take an array.
var flatArr = []; // New empty array.