Skip to content

Instantly share code, notes, and snippets.

@alexchandel
alexchandel / NBTExplorer-error.log
Created June 26, 2016 19:43
NBTExplorer-error.log
NBTExplorer Error Report
6/26/2016 2:32:56 PM
-------
NBTExplorer encountered the following exception while trying to run: FileNotFoundException
Message: Could not find file "Z:\.dbfseventsd".
-------
at System.IO.FileInfo.get_Length () <0xb6ad098 + 0x0008f> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length ()
at System.Windows.Forms.FileSystem.GetFileFSEntry (System.IO.FileInfo fileinfo) <0xb6acc40 + 0x00103> in <filename unknown>:0
@alexchandel
alexchandel / purescript.nuspec
Created March 19, 2015 16:18
Nuspec for PureScript's Chocolatey package.
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
<id>purescript</id>
<title>PureScript</title>
<version>0.6.9.3</version>
<authors>Phil Freeman, Gary Burgess, and other contributors</authors>
<owners>alexchandel</owners>
dig crates.io [0]
; <<>> DiG 9.8.3-P1 <<>> crates.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1091
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;crates.io. IN A
for letter in a b c d e f; do echo "$letter.ns.zerigo.net"; dig +noall +answer crates.io @$letter.ns.zerigo.net; echo; done
a.ns.zerigo.net
crates.io. 51 IN A 23.23.121.177
crates.io. 51 IN A 54.225.123.15
crates.io. 51 IN A 54.243.209.93
b.ns.zerigo.net
crates.io. 51 IN A 54.225.123.15
crates.io. 51 IN A 54.243.209.93
crates.io. 51 IN A 23.23.121.177
@alexchandel
alexchandel / ld_libc_output.txt
Created December 22, 2014 22:15
libc dependency of a simple std::io Rust program
alex@alex-mbr Desktop % ld -macosx_version_min 10.10 deps.o $RUSTLIB/libstd-4e7c5e5c.rlib $RUSTLIB/librand-4e7c5e5c.rlib $RUSTLIB/libcollections-4e7c5e5c.rlib $RUSTLIB/liballoc-4e7c5e5c.rlib $RUSTLIB/libunicode-4e7c5e5c.rlib $RUSTLIB/liblibc-4e7c5e5c.rlib $RUSTLIB/libcore-4e7c5e5c.rlib $RUSTLIB/libcompiler-rt.a $RUSTLIB/libmorestack.a
Undefined symbols for architecture x86_64:
"_OSAtomicAdd32", referenced from:
_je_prof_lookup in liballoc-4e7c5e5c.rlib(r-jemalloc-prof.pic.o)
"_OSAtomicAdd64", referenced from:
_je_arena_chunk_alloc_huge in liballoc-4e7c5e5c.rlib(r-jemalloc-arena.pic.o)
_je_arena_chunk_dalloc_huge in liballoc-4e7c5e5c.rlib(r-jemalloc-arena.pic.o)
_arena_run_dalloc in liballoc-4e7c5e5c.rlib(r-jemalloc-arena.pic.o)
_arena_run_split_remove in liballoc-4e7c5e5c.rlib(r-jemalloc-arena.pic.o)
_je_stats_print in liballoc-4e7c5e5c.rlib(r-jemalloc-stats.pic.o)
@alexchandel
alexchandel / main.ll
Created November 4, 2014 06:19
IR produced by rustc, when compiling rustboot
; ModuleID = 'main.0.rs'
target datalayout = "e-p:32:32-f64:32:64-f80:32-n8:16:32"
target triple = "i686-unknown-linux-gnu"
%str_slice = type { i8*, i32 }
%"enum.core::result::Result<[(), core::fmt::FormatError]>[#1]" = type { i8, [0 x i8], [1 x i8] }
%"struct.platform::io::Stdout<[]>" = type {}
%"struct.core::fmt::Arguments<[]>[#1]" = type { { %str_slice*, i32 }, %"enum.core::option::Option<[&'static [core::fmt::rt::Argument]]>[#1]", { %"struct.core::fmt::Argument<[]>[#1]"*, i32 } }
%"enum.core::option::Option<[&'static [core::fmt::rt::Argument]]>[#1]" = type { { %"struct.core::fmt::rt::Argument<[]>[#1]"*, i32 } }
%"struct.core::fmt::rt::Argument<[]>[#1]" = type { %"enum.core::fmt::rt::Position<[]>[#1]", %"struct.core::fmt::rt::FormatSpec<[]>[#1]" }
@alexchandel
alexchandel / main-rust.s
Created November 4, 2014 06:17
Assembly produced by rustc, from IR from rustc
.text
.file "main.0.rs"
.section .text.breakpoint,"ax",@progbits
.globl breakpoint
.align 16, 0x90
.type breakpoint,@function
breakpoint:
.cfi_startproc
int3
retl
@alexchandel
alexchandel / main-clang.s
Created November 4, 2014 06:15
Assembly produced by Clang, from IR from rustc
.text
.file "boot/main.ll"
.section .text.breakpoint,"ax",@progbits
.globl breakpoint
.align 16, 0x90
.type breakpoint,@function
breakpoint: # @breakpoint
.cfi_startproc
# BB#0: # %entry-block
int3
@alexchandel
alexchandel / rust_build.txt
Created August 27, 2014 19:45
Rust build error for multiple targets on OS X 10.9.4
-D__STDC_LIMIT_MACROS -O3 -stdlib=libc++ -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno-common -Woverloaded-virtual -Wcast-qual -m64 -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -Wno-uninitialized -Wno-missing-field-initializers -c -MMD -MP -MF "/Users/alex/GitHub/rust/x86_64-apple-darwin/llvm/lib/Target/ARM/Release+Asserts/ARMJITInfo.d.tmp" -MT "/Users/alex/GitHub/rust/x86_64-apple-darwin/llvm/lib/Target/ARM/Release+Asserts/ARMJITInfo.o" -MT "/Users/alex/GitHub/rust/x86_64-apple-darwin/llvm/lib/Target/ARM/Release+Asserts/ARMJITInfo.d" /Users/alex/GitHub/rust/src/llvm/lib/Target/ARM/ARMJITInfo.cpp -o /Users/alex/GitHub/rust/x86_64-apple-darwin/llvm/lib/Target/ARM/Release+Asserts/ARMJITInfo.o ; \
then /bin/mv -f "/Users/alex/GitHub/rust/x86_64-apple-darwin/llvm/lib/Target/ARM/Release+Asserts/ARMJITInfo.d.tmp" "/Users/alex/GitHub/rust/x86_64-apple-darwin/llvm/lib/Target/ARM/Release+Asserts/ARMJITInfo.d"; else /bin/rm "/Use
@alexchandel
alexchandel / brew --config
Created June 10, 2012 10:20
cmu-pocketsphinx fails to build
HOMEBREW_VERSION: 0.9
HEAD: fd4ddd8bb2e667686bb420f4157d5326d4130eee
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit arrandale
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
GCC-4.2: N/A