Skip to content

Instantly share code, notes, and snippets.

Joubert Nel joubertnel

  • Netflix
  • San Francisco, CA
Block or report user

Report or block joubertnel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
joubertnel / darwin-nat.c
Last active Feb 23, 2019
darwin-nat.c variable shadowing diff
View darwin-nat.c
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 8c34aa8a3f..d36e23b450 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -687,7 +687,6 @@ darwin_decode_exception_message (mach_msg_header_t *hdr,
/* Not a known inferior. This could happen if the child fork, as
the created process will inherit its exception port.
FIXME: should the exception port be restored ? */
- kern_return_t kret;
mig_reply_error_t reply;
View gist:1f0233cb0a290950f2d4b8fafcd2979c
darwin-nat.c: In function 'int darwin_decode_exception_message(mach_msg_header_t*, inferior**, darwin_thread_t**)':
darwin-nat.c:690:21: error: declaration of 'kret' shadows a previous local [-Werror=shadow=compatible-local]
kern_return_t kret;
darwin-nat.c:626:17: note: shadowed declaration is here
kern_return_t kret;
darwin-nat.c: In function 'ptid_t darwin_decode_message(mach_msg_header_t*, darwin_thread_t**, inferior**, target_waitstatus*)':
darwin-nat.c:1128:14: error: declaration of 'res' shadows a previous local [-Werror=shadow=compatible-local]
pid_t res;
View echo.rebol
Rebol []
forever [
data: input
if data = "!quit" [break]
print data
Red []
forever [
msg: input
if msg = "!quit" [break]
print msg
joubertnel / csp-channels-with-semaphores
Created May 31, 2015
CSP channels implementation with semaphores
View csp-channels-with-semaphores
CMSC 421 Operating Systems Lecture Notes
(c) 1994 Howard E. Motteler
Message Passing
The goal of critical sections, monitors, etc. is to allow
processes to _communicate_
View gist:8411379
var fs = require('fs'),
jspipe = require('jspipe'),
Pipe = jspipe.Pipe,
job = jspipe.job,
filenames = ['file1.txt', 'file2.txt', 'file3.txt'];
function denode(fn, args) {
var pipe = new Pipe(),
newArgs = args instanceof Array ? args : [args];
joubertnel / json-reformat.el
Last active Dec 25, 2015 — forked from gongo/json-reformat.el
changes indentation to 2 spaces
View json-reformat.el
;;; json-reformat --- Reformat tool for JSON
;; Author: Wataru MIYAGUNI <>
;; Keywords: json
;; Copyright (c) 2012 Wataru MIYAGUNI
;; MIT License
;; Permission is hereby granted, free of charge, to any person obtaining
joubertnel / gist:7023795
Last active Dec 25, 2015
Lazy parse a JavaScript class body
View gist:7023795
<div id="person1"></div>
<div id="person2"></div>
var util = {};
joubertnel / gist:5218968
Last active Dec 15, 2015
serving up evented sexp from within emacs
View gist:5218968
(require 'elnode)
(elnode-webserver-handler-maker "~/projects") :port 8001 :host "localhost")
joubertnel / list_threads
Created Jan 25, 2013
List threads, including PID, TID, and priority
View list_threads
# A (b)ash script replacement for ps showing threads and other helpful stuff.
# Especially useful for Busybox based systems which has a very simple ps applet
# License: GPLv2
# Copyright 2009 Chris Simmonds, 2net Ltd
show_details ()
You can’t perform that action at this time.