Skip to content

Instantly share code, notes, and snippets.

View shadone's full-sized avatar

Denis Dzyubenko shadone

  • Oslo, Norway
View GitHub Profile
500 Internal Server Error
Sorry, something went wrong.
A team of highly trained monkeys has been dispatched to deal with this situation.
If you see them, show them this information:
4sNp9ddSZgz367cpxb2FvEKf1I9SaWbuR9S-zPfTYsdVM-65KPZ32M5u3yDS
rinDF9ydw48VqSPK_Ge1ZBlwkGF1WGlrSuPi_SkMO5ahA2UMjl-d1DlKxxlk
WXq3fWHGmS-m4892OsdgSQ22tShGhJXdrsppcUgDIZEoKl-MrFTLprmu1ZQ3
@shadone
shadone / gist:8577639
Created January 23, 2014 12:16
packer v0.5.1 crash
==> amazon-ebs: Pausing before cleanup of step 'StepConnectSSH'. Press any key to continue. panic: Failed to write data, buffer full for stream 16
goroutine 16 [running]:
runtime.panic(0x248580, 0xc210735310)
/Users/mitchellh/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/mitchellh/packer/packer/rpc.(*MuxConn).loop(0xc2100452a0)
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/rpc/muxconn.go:415 +0x14c1
created by github.com/mitchellh/packer/packer/rpc.NewMuxConn
/Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/rpc/muxconn.go:72 +0xf4
name: firefoxos-builder | }
path: / | ]
|}
policy: |~
s3-hope-comoyo-com-bucket: |~
allow: |~
- action: s3:GetObject |~
_metadata_object = False
def get_metadata():
global _metadata_object
if _metadata_object is False:
_metadata_object = boto.utils.get_instance_metadata()
return _metadata_object
console.log(ad);
console.log(ad.objectId);
console.log(typeof(ad.objectId));
output:
I2014-02-12T15:39:19.445Z]{"image":{"__type":"File","name":"db0fa3f9-a663-4b30-8fc2-5cb6f68faeab-WindyCreekHorseTransportBanner.jpg","url":"http://files.parse.com/7d8b7ab7-60c6-4d5f-a97e-12fe64a5b82c/db0fa3f9-a663-4b30-8fc2-5cb6f68faeab-WindyCreekHorseTransportBanner.jpg"},"name":"Windy Creek","url":"http://windycreek.com","objectId":"IYqx0yHENs","createdAt":"2014-02-12T10:42:47.669Z","updatedAt":"2014-02-12T10:57:11.640Z","__type":"Object","className":"LockscreenAds"}
I2014-02-12T15:39:19.445Z]No Message provided
I2014-02-12T15:39:19.445Z]undefined
[ 12%] Building CXX object generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o
/home/denis/dev/woboq_codebrowser/generator/main.cpp:252:45: error: no member named 'fs' in namespace 'llvm::sys'
std::string MainExecutable = llvm::sys::fs::getMainExecutable("clang_tool", &StaticSymbol);
~~~~~~~~~~~^
/home/denis/dev/woboq_codebrowser/generator/main.cpp:290:36: error: no member named 'fs' in namespace 'llvm::sys'
if (llvm::sys::fs::exists(PossiblePath))
~~~~~~~~~~~^
/home/denis/dev/woboq_codebrowser/generator/main.cpp:303:31: error: no member named 'ClangStripOutputAdjuster' in namespace 'clang::tooling'
Ajust(clang::tooling::ClangStripOutputAdjuster());
~~~~~~~~~~~~~~~~^
diff --git a/generator/annotator.cpp b/generator/annotator.cpp
index df0ab45..2c4a751 100644
--- a/generator/annotator.cpp
+++ b/generator/annotator.cpp
@@ -269,7 +269,7 @@ bool Annotator::generate(clang::Preprocessor &PP)
continue;
std::string filename = outputPrefix % "/refs/" % it.first;
std::string error;
- llvm::raw_fd_ostream myfile(filename.c_str(), error, llvm::sys::fs::F_Append);
+ llvm::raw_fd_ostream myfile(filename.c_str(), error, llvm::raw_fd_ostream::F_Append);
[ 12%] Building CXX object generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o
In file included from /home/denis/dev/woboq_codebrowser/generator/main.cpp:38:
/home/denis/dev/woboq_codebrowser/generator/preprocessorcallback.h:55:18: error: 'If' marked 'override' but does not override any member functions
virtual void If(clang::SourceLocation Loc, clang::SourceRange ConditionRange, bool ConditionValue) override
^
/home/denis/dev/woboq_codebrowser/generator/preprocessorcallback.h:61:18: error: 'Elif' marked 'override' but does not override any member functions
virtual void Elif(clang::SourceLocation Loc, clang::SourceRange ConditionRange, bool ConditionValue, clang::SourceLocation IfLoc) override {
^
/home/denis/dev/woboq_codebrowser/generator/preprocessorcallback.h:55:18: warning: 'PreprocessorCallback::If' hides overloaded virtual function [-Woverloaded-virtual]
virtual void If(clang::SourceLocation Loc, clang::SourceRange ConditionRange, bool ConditionValue)
commit 880b4e7b9509f2c1c1b25034ddaf706d5f23c769
Author: Denis Dzyubenko <denis@ddenis.info>
Date: Thu Feb 20 14:44:39 2014 +0100
Separated fake_compiler into C and CXX parts
Otherwise it doesn't work for projects mixing .c and .cpp files
diff --git a/scripts/fake_c b/scripts/fake_c
new file mode 120000
I/DEBUG ( 921): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 921): Build fingerprint: 'generic_x86/sdk_x86/generic_x86:4.4.2/KK/999428:eng/test-keys'
I/DEBUG ( 921): Revision: '0'
I/DEBUG ( 921): pid: 2100, tid: 2115, name: le.Lunchtime_qt >>> org.qtproject.example.Lunchtime_qt <<<
I/DEBUG ( 921): signal 8 (SIGFPE), code -6 (SI_TKILL), fault addr 00000834
I/DEBUG ( 921): eax 06bc5ca3 ebx b7765fe4 ecx 0000005f edx 00000000
I/DEBUG ( 921): esi 00000000 edi b7742004
I/DEBUG ( 921): xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b
I/DEBUG ( 921): eip b774cac8 ebp b6469d54 esp 7f7b2670 flags 00210246
E/Corkscrew( 921): unrecognized dwarf lower part encoding: 0x16