Skip to content

Instantly share code, notes, and snippets.

View libc's full-sized avatar

Eugene Pimenov libc

View GitHub Profile
➜ 7657854f371edcb5d8e6 git:(master) ✗ AWS_REGION=eu-west-1 lldb -- /tmp/ruby/bin/ruby sqs_leak_test.rb
(lldb) target create "/tmp/ruby/bin/ruby"
Current executable set to '/tmp/ruby/bin/ruby' (x86_64).
(lldb) settings set -- target.run-args "sqs_leak_test.rb"
(lldb) run
Process 52512 launched: '/tmp/ruby/bin/ruby' (x86_64)
32.28515625
33.08984375
33.16796875
Process 52512 stopped
@libc
libc / README.md
Last active August 29, 2015 14:15
A simple clojure script that uses route53-infirma

Compilation

  1. Create the app lein new app dns-add
  2. Replace project.clj with the one provided
  3. Add route53-infirma into local repository lein deploy route53-infirma com.amazonaws.services.route53.amazon-route53-infima 1.0.0 amazon-route53-infima-1.0.0.jar
  4. Replace src/dns_add/core.clj with the one provided
  5. Compile with lein uberjar (or run with lein run)
[38442.759029] ------------[ cut here ]------------
[38442.760066] kernel BUG at /build/buildd/linux-3.13.0/mm/page_alloc.c:968!
[38442.760066] invalid opcode: 0000 [#1] SMP
[38442.760066] Modules linked in: ipt_REJECT xt_multiport iptable_filter ip_tables x_tables dm_crypt syscopyarea sysfillrect sysimgblt fb_sys_fops serio_raw isofs xfs libcrc32c crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd psmouse floppy
[38442.760066] CPU: 0 PID: 1759 Comm: java Not tainted 3.13.0-43-generic #72-Ubuntu
[38442.760066] Hardware name: Xen HVM domU, BIOS 4.2.amazon 12/03/2014
[38442.760066] task: ffff8803c90c8000 ti: ffff8803a2854000 task.ti: ffff8803a2854000
[38442.760066] RIP: 0010:[<ffffffff81154434>] [<ffffffff81154434>] move_freepages+0x104/0x110
[38442.760066] RSP: 0018:ffff8803a28557e8 EFLAGS: 00010006
[38442.760066] RAX: ffff8803e08fb000 RBX: 0000000000000000 RCX: 0000000000000001

Keybase proof

I hereby claim:

  • I am libc on github.
  • I am libc (https://keybase.io/libc) on keybase.
  • I have a public key whose fingerprint is 30D2 92FB 6A07 AD98 6FD4 B4F0 EFAE 4E25 816C EECA

To claim this, I am signing this object:

LDC 0 ;
LDC 0 ;
LDC -1 ;
LDC -1 ;
CONS ;
LDC 0 ;
LDC 0 ;
CONS ;
CONS ;
CONS ;
diff --git a/lib/diddy/helpers.rb b/lib/diddy/helpers.rb
index 1b78ecb..5def793 100644
--- a/lib/diddy/helpers.rb
+++ b/lib/diddy/helpers.rb
@@ -16,11 +16,13 @@ module Diddy
def try_with_exception(max_times, delay = 1, &block)
index = 0
result = false
+ exception = nil
@libc
libc / README.md
Last active August 29, 2015 14:00
sane_from_unixtime

sane_from_unixtime for hive

Keywords: from_unixtime week starting on Monday, from_unixtime sane week numbers

Why?

from_unixtime uses insane week numbers by default. This UDF is a

diff --git a/bleed.go b/bleed.go
index 68ed4ba..2039ac1 100644
--- a/bleed.go
+++ b/bleed.go
@@ -7,16 +7,16 @@ import (
)
func main() {
- out, err := bleed.Heartbleed(os.Args[1], []byte("heartbleed.filippo.io"))
- if err == bleed.ErrPayloadNotFound {
#!/usr/bin/env ruby -wKU
#
# = .po to .strings converter
#
# Written by Eugene Pimenov <eugene@libc.st>.
#
# This file is distributed under the terms of the 2-clause BSD license.
# You can freely distribute/modify this source.
#
# This file is included in X-Chat Aqua project
#import <Foundation/Foundation.h>
//
// NSData+SLBase64.m
// Soocial for the Mac
//
// Created by alexandros@soocial.com on 3/6/11.
// Copyright 2011 Soocial BV. All rights reserved.
//