Skip to content

Instantly share code, notes, and snippets.

View ghazel's full-sized avatar

Greg Hazel ghazel

  • San Francisco, CA
View GitHub Profile
This file has been truncated, but you can view the full file.
% make clean ; time nice -n 20 make target=lnx -j1
git clean -fXd
Removing out-lnx/
Removing out-mac/
Skipping repository out-win.master/cargo/registry/index/github.com-1ecc6299db9ec823
Skipping repository out-win.vpn-windows/cargo/registry/index/github.com-1ecc6299db9ec823
Skipping repository out-win/cargo/registry/index/github.com-1ecc6299db9ec823
flex -t --header-file=out-lnx/./vpn/wsk/wireshark/epan/dfilter/scanner_lex.h vpn/wsk/wireshark/epan/dfilter/scanner.l >out-lnx/./vpn/wsk/wireshark/epan/dfilter/scanner.c
flex -t --header-file=out-lnx/./vpn/wsk/wireshark/epan/dtd_parse_lex.h vpn/wsk/wireshark/epan/dtd_parse.l >out-lnx/./vpn/wsk/wireshark/epan/dtd_parse.c
flex -t --header-file=out-lnx/./vpn/wsk/wireshark/epan/protobuf_lang_scanner_lex.h vpn/wsk/wireshark/epan/protobuf_lang_scanner.l >out-lnx/./vpn/wsk/wireshark/epan/protobuf_lang_scanner.c
https://gist.github.com/af49945192fc3bd6cbf0925403de1f36
This file has been truncated, but you can view the full file.
Build started at 2021-06-08T11:45:56.862545
Main binary: /usr/local/opt/[email protected]/bin/python3.9
Build Options: -Ddefault_library=static -Dlibmount=disabled -Diconv=external '--cross-file /Users/ghazel/projects/orchid/cli-shared/out-lnx/x86_64/meson.txt'
Python system: Darwin
The Meson build system
Version: 0.58.1
Source dir: /Users/ghazel/projects/orchid/min-glib/glib
Build dir: /Users/ghazel/projects/orchid/cli-shared/out-lnx/x86_64/vpn/wsk/glib/glib
Build type: cross build
Project name: glib
@ghazel
ghazel / HID.c
Last active February 27, 2019 08:42
touchbar IOHID watcher
// compile and run from the commandline with:
// clang -framework CoreFoundation -framework CoreGraphics -framework IOKit ./HID.c -o hid
// ./hid
#include <IOKit/hid/IOHIDValue.h>
#include <IOKit/hid/IOHIDManager.h>
#include <ApplicationServices/ApplicationServices.h>
CFMutableDictionaryRef myCreateDeviceMatchingDictionary(UInt32 pUsagePage, UInt32 pUsage)
{
#include <stdio.h>
#include <assert.h>
#include <inttypes.h>
struct hidden_data {
char * stuff;
uint8_t foo;
uint16_t bar;
uint32_t baz;
};
from twisted.internet import ssl, reactor
from twisted.internet.protocol import ClientFactory, Protocol
class Producer(object):
def resumeProducing(self):
print "resumeProducing called!"
reactor.stop()
def stopProducing(self):
pass
diff --git a/vm/builtin/thread.cpp b/vm/builtin/thread.cpp
index 314ffda..d772123 100644
--- a/vm/builtin/thread.cpp
+++ b/vm/builtin/thread.cpp
@@ -256,6 +256,7 @@ namespace rubinius {
VM* vm = vm_;
if(!vm) return nil<Array>();
+ StopTheWorld stop(vm);
Program received signal SIGSEGV, Segmentation fault.
0x00002aaaac26e443 in rb_stack_trace (result=0x7fffcdc93fd0, max_depth=300) at perftools.c:99
99 if (frame->prev && frame->prev->last_func) {
(gdb) bt
#0 0x00002aaaac26e443 in rb_stack_trace (result=0x7fffcdc93fd0, max_depth=300) at perftools.c:99
#1 0x00002aaaac26e6b8 in CpuProfiler::prof_handler (sig=27, signal_ucontext=0x7fffcdc949c0, cpu_profiler=0x2aaaac478c60) at src/profiler.cc:290
#2 0x00002aaaac26f42b in ProfileHandler::SignalHandler (sig=27, sinfo=0x7fffcdc94af0, ucontext=0x7fffcdc949c0) at src/profile-handler.cc:455
#3 <signal handler called>
#4 0x0000000000419463 in rb_call0 (klass=33531480, recv=3, id=43, oid=43, argc=0, argv=0x7fffcdc950c0, body=0x1ffa428, flags=0) at eval.c:6024
#5 0x000000000041a368 in rb_call (klass=33531480, recv=3, mid=43, argc=1, argv=0x7fffcdc950c0, scope=0, self=33563920) at eval.c:6308
1)
Kernel#require (path resolution) does not resolve a ./ relative path against $LOAD_PATH entries FAILED
Expected LoadError
but got NameError (Missing or uninitialized constant: Gem::GemPathSearcher)
/expectations.rb:15
{ } in Object#__script__ at spec/ruby/core/kernel/shared/require.rb:178
Kernel(Object)#instance_eval at kernel/common/eval.rb:120
{ } in Enumerable(Array)#all? at kernel/common/enumerable.rb:232
Array#each at kernel/bootstrap/array.rb:76
Enumerable(Array)#all? at kernel/common/enumerable.rb:232