Skip to content

Instantly share code, notes, and snippets.

View marcomorain's full-sized avatar

Marc O'Morain marcomorain

View GitHub Profile
Internal Server Error
The server has either erred or is incapable of performing the requested operation.
Traceback (most recent call last):
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__
rv = self.handle_exception(request, response, e)
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__
rv = self.router.dispatch(request, response)
File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher
package com.swrve.test_case;
public class Walker<ResultType, ValueType> {
public static void main(String[] args) {
}
public abstract class Builder<ResultType, ValueType> {
public abstract class StringVal {
public abstract String getString(ValueType theVal);
Thread 0 Crashed:: MainThrd Dispatch queue: com.apple.main-thread
0 libtier0.dylib 0x0058a2f2 Plat_ExitProcess + 34
1 libtier0.dylib 0x005894f4 CStdMemAlloc::SetCRTAllocFailed(unsigned long) + 148
2 libtier0.dylib 0x00588fb8 CStdMemAlloc::Alloc(unsigned long) + 72
3 scaleformui.dylib 0x0c50aa1e CScaleformSysAlloc::Alloc(unsigned long, unsigned long) + 62
4 scaleformui.dylib 0x0c5dd8ea Scaleform::HeapMH::AllocEngineMH::allocDirect(unsigned long, unsigned long, bool*, Scaleform::HeapMH::PageInfoMH*) + 200
5 scaleformui.dylib 0x0c5ddf71 Scaleform::HeapMH::AllocEngineMH::Alloc(unsigned long, unsigned long, Scaleform::HeapMH::PageInfoMH*, bool) + 247
6 scaleformui.dylib 0x0c5ded87 Scaleform::MemoryHeapMH::Alloc(unsigned long, unsigned long, Scaleform::AllocInfo const*) + 69
7 scaleformui.dylib 0x0c5f1fb6 Scaleform::Render::ContextImpl::Context::Capture() + 454
8 scaleformui.dylib
@marcomorain
marcomorain / My vim right now
Created December 9, 2014 12:22
My vim right now
N5RMA"Convert build parameters to a suitable form to be exported as bash.clj[+] clojure < utf-8[unix] < 18% : 30: 11
"46c/cenvironment variables."des.clj" 161L, 7057C^[OB^[OA^[OB^[OA
^47f [build-parameters]
^C^[:q ios-with-gemfiles > src/circle/backend/action/nodes.clj clojure
Type :quit<Enter> to exit Vim
@marcomorain
marcomorain / gist:30ae808f2849dd219ef7
Created March 23, 2015 11:52
CircleCI Postgres Finnish
machine:
environment:
PGDATA: /var/lib/postgresql/9.4/main
pre:
- sudo locale-gen fi_FI.UTF-8 # Install Finnish
# Re-create database in Finnish
- sudo -E -u postgres /usr/lib/postgresql/9.4/bin/pg_ctl stop
- sudo -E -u postgres rm -r $PGDATA
- sudo -E -u postgres /usr/lib/postgresql/9.4/bin/initdb --lc-collate fi_FI.UTF-8 --lc-ctype fi_FI.UTF-8
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
@marcomorain
marcomorain / gist:1901289
Created February 24, 2012 14:36
Ruby crash
/Users/marc/.rvm/gems/ruby-1.9.2-p290/gems/logging-1.7.0/lib/logging/logger.rb:100: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
-- control frame ----------
c:0020 p:0008 s:0068 b:0067 l:000056 d:000066 BLOCK /Users/marc/.rvm/gems/ruby-1.9.2-p290/gems/logging-1.7.0/lib/logging/logger.rb:100
c:0019 p:---- s:0062 b:0062 l:000061 d:000061 FINISH
c:0018 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :each
c:0017 p:0022 s:0057 b:0057 l:000056 d:000056 METHOD /Users/marc/.rvm/gems/ruby-1.9.2-p290/gems/logging-1.7.0/lib/logging/logger.rb:99
c:0016 p:0097 s:0053 b:0053 l:000052 d:000052 METHOD /Users/marc/.rvm/gems/ruby-1.9.2-p290/gems/logging-1.7.0/lib/logging/root_logger.rb:31
c:0015 p:---- s:0050 b:0050 l:000049 d:000049 FINISH
@marcomorain
marcomorain / gist:1949078
Created March 1, 2012 10:54
I broke the build
Tasks: TOP => spec
(See full trace by running task with --trace)
/home/ubuntu/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:476: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
-- control frame ----------
c:0024 p:0043 s:0090 b:0088 l:000079 d:000087 BLOCK /home/ubuntu/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:476
c:0023 p:---- s:0085 b:0085 l:000084 d:000084 FINISH
c:0022 p:---- s:0083 b:0083 l:000082 d:000082 CFUNC :map
c:0021 p:0028 s:0080 b:0080 l:000079 d:000079 METHOD /home/ubuntu/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:475
@marcomorain
marcomorain / string_set.c
Created April 13, 2012 14:51
A string set in C
// gcc -std=c99 -Wall -Werror string_set.c && ./a.out
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
struct string_set* string_set_create(void);
void string_set_destroy(struct string_set* set);
int string_set_cardinality(struct string_set* set);
int string_set_contains(struct string_set* set, const char* string);
void string_set_add(struct string_set* set, const char* string);
[INFO] (["remote.rb:39:in `call_remote'"]) 2012-05-04 14:52:26 UTC - /api/errors?api_key=21e95ce67fa37d073da446e45f4bdc2b8a562588&protocol_version=5&hash=90373f0cc8b97344a36167e604d98c07 - OK
[INFO] (["remote.rb:39:in `call_remote'"]) 2012-05-04 14:52:30 UTC - /api/errors?api_key=21e95ce67fa37d073da446e45f4bdc2b8a562588&protocol_version=5&hash=90373f0cc8b97344a36167e604d98c07 - OK
[INFO] (["remote.rb:39:in `call_remote'"]) 2012-05-04 14:53:46 UTC - /api/errors?api_key=21e95ce67fa37d073da446e45f4bdc2b8a562588&protocol_version=5&hash=90373f0cc8b97344a36167e604d98c07 - OK
[INFO] (["railtie.rb:14:in `block in <class:Railtie>'"]) 2012-05-04 14:54:03 UTC - Loading Exceptional 2.0.32 for 3.2.2
[INFO] (["remote.rb:39:in `call_remote'"]) 2012-05-04 14:54:17 UTC - /api/errors?api_key=21e95ce67fa37d073da446e45f4bdc2b8a562588&protocol_version=5&hash=32a6f09b6879405198ece975ea5fec37 - OK
[INFO] (["remote.rb:39:in `call_remote'"]) 2012-05-04 15:00:27 UTC - /api/errors?api_key=21e95ce67fa37d073da446e45f4bdc2b8a562588&protoc