Skip to content

Instantly share code, notes, and snippets.

diff --git c/src/ccall.cpp i/src/ccall.cpp
index 464054805cd..9f91975ba24 100644
--- c/src/ccall.cpp
+++ i/src/ccall.cpp
@@ -2061,6 +2061,17 @@ static jl_cgval_t emit_ccall(jl_codectx_t &ctx, jl_value_t **args, size_t nargs)
return mark_or_box_ccall_result(ctx, ret, retboxed, rt, unionall, static_rt);
}
}
+ else if (is_libjulia_func(jl_codegen_sleep)) {
+ assert(lrt == getVoidTy(ctx.builder.getContext()));
@xal-0
xal-0 / Dockerfile
Created December 2, 2025 21:13
JuliaC old Debian test setup
FROM localhost/juliaci-rootfs AS build
WORKDIR /build
COPY ./julia/ ./
RUN make -j binary-dist
FROM localhost/juliaci-rootfs AS juliac
# Use our modern rootfs to compile the bundle, but link against glibc 2.17
COPY --from=build /build/julia-*.tar.gz .
RUN mkdir -p /opt/julia && \
; ModuleID = '#assemble_model!##2'
source_filename = "#assemble_model!##2"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
target triple = "arm64-apple-darwin24.6.0"
@jl_nothing = external constant ptr
@jl_undefref_exception = external constant ptr
@jl_diverror_exception = external constant ptr
define swiftcc void @"julia_#assemble_model!##2_5395"(ptr nonnull swiftself %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %1, i8 zeroext %2, ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %3, i64 signext %4) #0 {
@xal-0
xal-0 / flake.lock
Created July 5, 2024 19:30
uftrace with more features
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",

It can be frustrating to debug an exploit without being able to examine exactly what's going on. Here are some general tips that may be useful for this assignment.

Feel free to share any tips you have with the class.

Enabling pwntools debug logging

pwntools can be configured to log all input/output you send and received, along with other useful things. Some of the templates include this already:

@xal-0
xal-0 / fix-waitgroup.patch
Last active January 31, 2024 21:55
discord-dl-flake
diff --git a/job/job.go b/job/job.go
index f61a691..b0a8818 100644
--- a/job/job.go
+++ b/job/job.go
@@ -199,7 +199,6 @@ func (a *JobQueue) ExecJobArgs(j models.JobArgs, job *Job) {
job.Error = err
job.Status = ERROR
log.Error(err)
- a.Wg.Done()
return
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ptrace.h>
#include <sys/syscall.h>
near(pos(X, Y), north, pos(X, Y2)) :- Y2 is Y-1.
near(pos(X, Y), east, pos(X2, Y)) :- X2 is X+1.
near(pos(X, Y), south, pos(X, Y2)) :- Y2 is Y+1.
near(pos(X, Y), west, pos(X2, Y)) :- X2 is X-1.
neighbour(Map, pos(X, Y), Dir, Tile2) :-
near(pos(X, Y), Dir, pos(X2, Y2)),
member(pos(X2, Y2, Tile2), Map).
opposite(north, south).
#lang racket
(provide module->cfg-pict)
(require pict/code graphviz)
(define (module->cfg-pict blocks)
(define (label->id label)
(string-replace (symbol->string label) "." "_"))
(define (label->id-port label port)
@xal-0
xal-0 / Dockerfile
Created July 14, 2020 20:07
Emerald on Docker
ARG REV=dd1ca28d93e75c5906acf09f84b5406be45f7464
FROM i386/ubuntu:trusty
WORKDIR /build
ARG REV
RUN apt-get update && apt-get install -y curl
RUN curl -LO https://github.com/emerald/bin-versions/archive/$REV.tar.gz && tar xvf $REV.tar.gz
RUN cp -r bin-versions-$REV/UiO-INF5510v15-0.99-linux/bin/* /usr/local/bin && \