Skip to content

Instantly share code, notes, and snippets.

View retep998's full-sized avatar
๐Ÿ‡
Very fluffy

Peter Atashian retep998

๐Ÿ‡
Very fluffy
  • Massachusetts, USA
View GitHub Profile
@retep998
retep998 / address.txt
Last active January 18, 2016 19:31
Wiki GT6 server
mc.ccplz.net:25000
extern crate lib;
fn main() {
lib::test();
}
[package]
name = "docs"
version = "0.0.1"
authors = ["Peter Atashian <[email protected]>"]
[dependencies]
aclui-sys = "*"
activeds-sys = "*"
adsiid-sys = "*"
advapi32-sys = "*"
@retep998
retep998 / test.rs
Last active January 9, 2018 14:44
Linking Rust using LLVM and MSVC. No MinGW at all.
// Let's build rust programs with msvc linker!
// Started by klutzy
// Continued by Retep998
// Command line
/*
SET PATH=C:\WINDOWS;C:\WINDOWS\System32;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64;A:\rust64\bin;A:\LLVM\bin
rustc libcore\lib.rs --target=x86_64-pc-windows -Car=llvm-ar
rustc test.rs --emit=obj --target=x86_64-pc-windows --extern core=libcore.rlib
link "test.o" "libcore.rlib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" "libcmt.lib" /LIBPATH:"C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64"
@retep998
retep998 / libuv.diff
Created July 3, 2014 18:08
libuv changes
diff --git a/.mailmap b/.mailmap
index 7d627a3..89c1ade 100644
--- a/.mailmap
+++ b/.mailmap
@@ -10,10 +10,12 @@ Fedor Indutny <[email protected]> <[email protected]>
Frank Denis <[email protected]>
Isaac Z. Schlueter <[email protected]>
Justin Venus <[email protected]> <[email protected]>
-Keno Fischer <[email protected]> <[email protected]>
Keno Fischer <[email protected]> <[email protected]>
@retep998
retep998 / c++.asm
Last active August 29, 2015 14:03
assembly comparison
--- a:\files\coding\nolifestory\src\nxbench\nxbench.cpp ------------------------
nl::bench::recurse_sub:
00AD12E0 push ebp
00AD12E1 mov ebp,esp
00AD12E3 and esp,0FFFFFFF8h
00AD12E6 sub esp,14h
00AD12E9 mov eax,dword ptr [ebp+8]
00AD12EC push ebx
00AD12ED push esi
00AD12EE push edi
@retep998
retep998 / gist:224bfb130448e086df76
Created June 29, 2014 00:42
This causes a segfault
#![feature(phase)]
#[phase(plugin)]
extern crate green;
use std::io::{Acceptor, Listener, TcpListener, TcpStream};
use std::io::timer::sleep;
green_start!(main)
fn main() {
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 6960.0x1ed0]
0x004ccc9c in stream::read_cb::h0aa53bd142f22e38jZf::v0.11.0.pre ()
(gdb) Exception condition detected on fd 0
error detected on stdin
A debugging session is active.
Inferior 1 [process 6960] will be killed.
Quit anyway? (y or n) n
@retep998
retep998 / 6-20.s
Created June 26, 2014 20:17
comparison of asm for code generated by rustc
.text
.def @feat.00;
.scl 3;
.type 0;
.endef
.globl @feat.00
@feat.00 = 1
.def __ZN2p320heb5d6e0aa9a57a67iaa4v0.0E;
.scl 3;
.type 32;