Skip to content

Instantly share code, notes, and snippets.

View Zubnix's full-sized avatar
👻
Sleep is for the weak.

Erik De Rijcke Zubnix

👻
Sleep is for the weak.
  • udev.be
  • Belgium
View GitHub Profile
$ cdktf deploy
⠇ planning stack...
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 1 [running]:
github.com/zclconf/go-cty/cty.Value.GetAttr(0x2c6b4b0, 0xc00069df30, 0x0, 0x0, 0xc00001e570, 0xb, 0xc000d16000, 0xc000b28570, 0xc000b284e0, 0xc000398ff0)
/go/pkg/mod/github.com/zclconf/go-cty@v1.8.3/cty/value_ops.go:760 +0x416
github.com/hashicorp/terraform/configs/configschema.(*Block).ValueMarks(0xc000bb5e90, 0x2c6b4b0, 0xc00069df30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x40, 0x0, ...)
/home/circleci/project/project/configs/configschema/marks.go:33 +0x545
github.com/hashicorp/terraform/command/jsonplan.(*plan).marshalResourceChanges(0xc000852780, 0xc000bc4840, 0xc0002ec0c0, 0x0, 0x0)
@Zubnix
Zubnix / make_build_for_wasm_work.patch
Created May 22, 2018 21:04
Patch for the skia build to create an llvm bitcode archive usable for compilation to wasm using emscripten
diff --git a/BUILD.gn b/BUILD.gn
index 69bcb6835b..32f0bf5c0f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -375,7 +375,7 @@ optional("fontmgr_android") {
}
optional("fontmgr_custom") {
- enabled = is_linux && skia_use_freetype && !skia_use_fontconfig
+ enabled = (is_linux || is_wasm) && skia_use_freetype && !skia_use_fontconfig
gst-launch-1.0 videotestsrc ! glupload ! glshader fragment="\"`cat alpha2gray.frag`\"" ! gldownload ! videoconvert ! ximagesink
alpha2gray.frag:
#version 100
#ifdef GL_ES
precision mediump float;
#endif
varying vec2 v_texcoord;
uniform sampler2D tex;
const number = -1234.56
console.log('original ' + number)
console.log('original as hex ' + number.toString(16))
// integer part
const integerPart = (number >> 0).toString(16) // 32bit integer
console.log('integer ' + integerPart)
// fractal part
const asHex = number.toString(16)
gst-launch-1.0 -v videotestsrc ! videoconvert ! video/x-raw,format=RGB,width=320 ! videoconvert ! video/x-raw,format=I420,width=320 ! x264enc ! rtph264pay ! rtpstreampay ! fdsink
gst-launch-1.0 -v videotestsrc ! videoconvert ! video/x-raw,format=RGB,width=320 ! videoconvert ! video/x-raw,format=I420,width=320 ! x264enc ! h264parse ! openh264dec ! videoconvert ! autovideosink
ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s <width>x<height> -i pipe:0 -vcodec libx264 -g 1 -an -reset_timestamps 1 -probesize 200000 -movflags empty_moov+default_base_moof+frag_keyframe -loglevel quiet -f mp4 pipe:1
@C({
//includes
"#include <stlib.h>",
//global variables
"static JavaVM* jvm;",
"static jclass handler_class;",
"static jmethodID j_func_handle;",