Skip to content

Instantly share code, notes, and snippets.

View dtzWill's full-sized avatar
💭
I may be slow to respond.

Will Dietz dtzWill

💭
I may be slow to respond.
View GitHub Profile
@dtzWill
dtzWill / list.md
Last active August 29, 2015 14:09
Monsterstrikedatabase Scan for pages with non-ascii characters

197 198 199 200 257 259 286 287 [303](

@dtzWill
dtzWill / colors.sh
Created January 8, 2012 04:00
Color 'benchmark'
#!/bin/sh
#
# This file echoes a bunch of color codes to the·
# terminal to demonstrate what's available. Each·
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a·
# test use of that color on all nine background·
# colors (default + 8 escapes).
#
# Taken from http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
@dtzWill
dtzWill / array.c
Created September 13, 2012 00:01
Array fill with varying store widths
#include <stdio.h>
#include <limits.h>
#include <stdint.h>
static uint64_t buf[16];
#define NOINLINE __attribute__ ((noinline))
static void NOINLINE func1() {
uint8_t* p = (uint8_t*)buf;
@dtzWill
dtzWill / array.c
Created September 13, 2012 15:46
Merge adjacent stores of constants?
#include <stdio.h>
#include <limits.h>
#include <stdint.h>
static uint64_t buf[2];
#define NOINLINE __attribute__ ((noinline))
static void NOINLINE func1() {
uint8_t* p = (uint8_t*)buf;
@dtzWill
dtzWill / ninja check-asan
Created December 12, 2012 17:31
AddressSanitizer test failures
[1/1] Running the AddressSanitizer tests
FAILED: cd /home/wdietz2/llvm/33-obj/projects/compiler-rt/lib/asan/lit_tests && /usr/bin/python /home/wdietz2/llvm/33-src/utils/lit/lit.py --param build_config=. --param build_mode=Release -sv --param asan_site_config=/home/wdietz2/llvm/33-obj/projects/compiler-rt/lib/asan/lit_tests/lit.site.cfg /home/wdietz2/llvm/33-obj/projects/compiler-rt/lib/asan/lit_tests
lit.py: lit.common.cfg:19: note: using clang: '/home/wdietz2/llvm/33-obj/bin/clang'
-- Testing: 160 tests, 8 threads --
Testing: 0
FAIL: AddressSanitizer :: deep_stack_uaf.cc (8 of 160)
******************** TEST 'AddressSanitizer :: deep_stack_uaf.cc' FAILED ********************
Script:
--
/home/wdietz2/llvm/33-obj/bin/clang -ccc-cxx -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -m64 -O0 /home/wdietz2/ioc-compiler-rt/lib/asan/lit_tests/deep_stack_uaf.cc -o /home/wdietz2/llvm/33-obj/projects/compiler-rt/lib/asan/lit_tests/Output/deep_stack_uaf.cc.tmp 2>&1
@dtzWill
dtzWill / icon-fix.patch
Last active December 11, 2015 03:49
Kludge to force nm-applet icon size to avoid annoying resize flicker on redraw. Applies to 0.9.6.4, YMMV, etc. Adjust height/width as desired. I chose '20' to match the height of my top wibox bar in awesome-wm.
From d156ce54795695c5308f49fb5e741b5d52ef29a7 Mon Sep 17 00:00:00 2001
From: Will Dietz <w@wdtz.org>
Date: Tue, 15 Jan 2013 11:30:50 -0600
Subject: [PATCH] Kludge to force applet icon size to avoid annoying resize
flicker.
---
src/applet.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
@dtzWill
dtzWill / O0-td.bar.dot.png
Last active December 11, 2015 23:19
TD DSGraphs for test.c at various optimization levels (for http://llvm.org/bugs/show_bug.cgi?id=15110).
O0-td.bar.dot.png
@dtzWill
dtzWill / overflow_vs_IR.c
Created February 25, 2013 00:44
Examples of ways LLVM IR does not capture signedness information in a way that's recoverable through analysis.
#include <stdio.h>
#include <limits.h>
// Easy example where IR doesn't contain source-level overflow
// -O1: 'return a + 3*b' (no nsw flags)
int test1(int a, int b) {
return a + b + b + b;
}
// Example where signedness is lost.
@dtzWill
dtzWill / OuterClass.java
Last active December 18, 2015 00:49
Dump of simple nested class with private members
public class OuterClass {
private int x;
OuterClass() {
x = new InnerClass().y;
}
class InnerClass {
private int y;
diff --git a/pkgs/development/libraries/icu/54.1.nix b/pkgs/development/libraries/icu/54.1.nix
index a2465ce..113e997a 100644
--- a/pkgs/development/libraries/icu/54.1.nix
+++ b/pkgs/development/libraries/icu/54.1.nix
@@ -4,8 +4,10 @@ let
icu = import ./default.nix { inherit stdenv fetchurl fetchpatch fixDarwinDylibNames; };
in
stdenv.lib.overrideDerivation icu (attrs: {
+ name = "icu_54_1";
src = fetchurl {