Skip to content

Instantly share code, notes, and snippets.

View ice799's full-sized avatar

Joe Damato ice799

  • san francisco, ca
View GitHub Profile
#!/custom/ree/bin/ruby
# USAGE:
#
# echo "|/path/to/core_helper.rb %p %s %u %g" > /proc/sys/kernel/core_pattern
#
require 'etc'
require 'net/smtp'
/* SPOT THE BUG, YOU WON'T */
while ((set_events = events.WaitForSetEvents(events_to_wait_for)) != 0)
{
if (set_events & RNBContext::event_read_packet_available)
{
// Try the queue again now that we got an event
err = GetPacketPayload (payload);
if (err == rnb_success)
break;
@ice799
ice799 / build.sh
Created July 20, 2010 20:30
ugly testing harness
rm *.o test
as -a --gstabs --64 -march=core2 -o funcs64.o funcs64.S
gcc test.c -Wall -m64 -march=core2 -c
gcc funcs64.o test.o -Wall -m64 -march=core2 -o test
[joe@x:/home/joe]% uname -a
Linux x.com 2.6.32.3 #3 SMP Thu Feb 4 23:11:14 UTC 2010 x86_64 GNU/Linux
[joe@x:/home/joe]% cat /proc/version
Linux version 2.6.32.3 (root@x.com) (gcc version 4.3.2 (Debian 4.3.2-1.1) ) #3 SMP Thu Feb 4 23:11:14 UTC 2010
[joe@x:/home/joe]% cat x.i
typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__)));
extern fpu_control_t __fpu_control;
struct rtld_global_ro
{
fpu_control_t _dl_fpu_control;
2 Pac - Tradin War Stories
2 Pac - Holla At Me
50 Cent - Patiently Waiting
50 Cent - Heat
50 Cent - Back Down
50 Cent - Da Repercussions
50 Cent - Power Of The Dollar
G-Unit - Straight Outta Southside
G-Unit - Beg For Mercy
G-Unit - Gangsta Shit
I guess I'm sort of Italian.
D'Amato
DiBella
Rubino
Ferinino
Gervato
Vigorito
Zozzaro
Iozzio
server {
listen 80;
server_name blah.com;
root /var/www/blah.com;
index index.html;
location / {
if (-f $request_filename) {
break;
}
spaced about 2-3 hours apart.
1/2 cup quaker oats + hot water + a few drops of honey
5 egg whites
1/2 grapefruit
repeat next meal twice:
1 chicken breast
handful of broccoli w/ stems
half an avocado
_dl_runtime_resolve:
subq $56,%rsp
cfi_adjust_cfa_offset(72) # Incorporate PLT
movq %rax,(%rsp) # Preserve registers otherwise clobbered.
movq %rcx, 8(%rsp)
movq %rdx, 16(%rsp)
movq %rsi, 24(%rsp)
movq %rdi, 32(%rsp)
movq %r8, 40(%rsp)
movq %r9, 48(%rsp)