View gist:595b97f7625f4c3a4de6583d9e3e2284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uncrustify-0.74.0_f | |
indent_with_tabs = 0 | |
# option(s) with 'not default' value: 1 | |
# | |
# -=====- | |
# number of loops = 0 | |
# -=====- | |
# language = C | |
# -=====- | |
# Line Tag Parent_type Type of the parent Columns Br/Lvl/pp Flag Nl Text |
View Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CCACHE_BASEDIR=$(CURDIR) | |
$(CURDIR)/foo.o: $(CURDIR)/foo.c Makefile | |
ccache cc -c -o $@ $< -MD | |
clean: | |
rm -f $(CURDIR)/foo.o $(CURDIR)/foo.d | |
-include $(CURDIR)/foo.d |
View # gdb - 2022-02-20_23-40-05.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for gdb on macOS 12 | |
Build date: 2022-02-20 23:40:05 |
View argc0.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To build: gcc -o argc0 argc0.c | |
// To use: ./argc0 /bin/whatever | |
#include <unistd.h> | |
#include <assert.h> | |
#include <stdio.h> | |
int main(int argc, char **argv) { | |
assert(argc == 2); | |
execl(argv[1], NULL); | |
perror("execl"); | |
} |
View sthack.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- glibc-2.33/nptl/pthreadP.h 2022-01-02 23:37:20.000000000 -0500 | |
+++ glibc-2.33-modified/nptl/pthreadP.h 2022-01-03 00:56:39.622447597 -0500 | |
@@ -220,7 +220,7 @@ | |
hidden_proto (__pthread_keys) | |
/* Number of threads running. */ | |
-extern unsigned int __nptl_nthreads attribute_hidden; | |
+extern unsigned int __nptl_nthreads; | |
#ifndef __ASSUME_SET_ROBUST_LIST |
View gist:9fa0899293d1c6e748faa81b875b25ac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testbed akregator[7715]: sthack: setenv("force_s3tc_enable", "true", 1) | |
testbed akregator[7715]: sthack: setenv("QTWEBENGINE_CHROMIUM_FLAGS", " --disable-in-process-stack-traces", 1) | |
testbed cheese[7833]: sthack: setenv("PULSE_PROP_media.role", "production", 1) | |
testbed firefox-esr[5545]: sthack: putenv("__GL_ALLOW_FXAA_USAGE=0") | |
testbed firefox-esr[5545]: sthack: putenv("XRE_BINARY_PATH=") | |
testbed firefox-esr[5545]: sthack: putenv("XRE_PROFILE_LOCAL_PATH=") | |
testbed firefox-esr[5545]: sthack: putenv("XRE_PROFILE_PATH=") | |
testbed firefox-esr[5545]: sthack: putenv("XRE_RESTARTED_BY_PROFILE_MANAGER=") | |
testbed firefox-esr[5545]: sthack: putenv("XRE_START_OFFLINE=") | |
testbed firefox-esr[5545]: sthack: putenv("XUL_APP_FILE=") |
View s.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'main.7rcbfp3g-cgu.0' | |
source_filename = "main.7rcbfp3g-cgu.0" | |
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" | |
target triple = "x86_64-apple-macosx10.7.0" | |
%Reader = type { [0 x i64], { i8*, i64 }, [0 x i64], i64, [0 x i64] } | |
%"fmt::Arguments" = type { [0 x i64], { [0 x { [0 x i8]*, i64 }]*, i64 }, [0 x i64], { i64*, i64 }, [0 x i64], { [0 x { i8*, i64* }]*, i64 }, [0 x i64] } | |
define internal fastcc { i8*, i64 } @_ZN3lib5Slice10into_value17hd068c2a4c36b2989E(i8* nonnull align 1 %0, i64 %1) unnamed_addr #6 { | |
%3 = insertvalue { i8*, i64 } undef, i8* %0, 0 |
View expanded.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/diesel-rs/diesel/blob/7ff5e6327d5e88095cb4b342da13bf06d6d0d1cd/examples/postgres/all_about_updates/src/lib.rs | |
// after running through `cargo expand` | |
#![feature(prelude_import)] | |
#[prelude_import] | |
use std::prelude::v1::*; | |
#[macro_use] | |
extern crate std; | |
use std::time::SystemTime; | |
use diesel::prelude::*; |
View dptest.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// c++ -o dptest depfile_parser.cc util.cc edit_distance.cc metrics.cc dptest.cc -std=c++11 | |
#include <stdio.h> | |
#include <assert.h> | |
#include "depfile_parser.h" | |
int main(int argc, char **argv) { | |
assert(argc == 2); | |
string err; | |
DepfileParser parser; | |
printf("input: {%s}\n", argv[1]); | |
string arg(argv[1]); |
View test.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/uio.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <signal.h> | |
#include <assert.h> | |
static void interrupted(int s) { |
NewerOlder