Skip to content

Instantly share code, notes, and snippets.

View akeem's full-sized avatar

Akeem Adeniji akeem

  • New York, New York
View GitHub Profile
@akeem
akeem / index.html
Created February 14, 2020 16:52
Rough POC generating wallet material
<!DOCTYPE html>
<html>
<head>
<title>Wallet Gen</title>
<meta charset="utf-8" />
<meta
name="google-signin-client_id"
content="add-client-id-here"
/>
</head>
@akeem
akeem / keybase.md
Last active September 10, 2019 02:01
keybase.md

Keybase proof

I hereby claim:

  • I am akeem on github.
  • I am akeem (https://keybase.io/akeem) on keybase.
  • I have a public key ASBZ9wJYPVOZYUA3Y0Vv3PHGJ3UvPoQWuFHwjqM3uxRxhwo

To claim this, I am signing this object:

<html>
<head>
<script>
var unlockProtocolConfig = {
locks: {
"0xB0114bbDCe17e0AF91b2Be32916a1e236cf6034F": {
name: "One Week"
},
icon:
"https://staging-app.unlock-protocol.com/static/images/svg/default.svg",
@akeem
akeem / gist:8698074
Created January 29, 2014 22:02
rre glossary
Revenue Recognition Event
Spending transaction - A customer has used coins to purchase cards.
Purchasing transaction - A customer has purchased coins for money.
Bucket - Coins yet to be recognized from a purchasing transaction.
Revenue Recognition Event - records the steps taken in the revenue recognition process. This objects records the coins used, the purchasing transaction, the spending transaction, number of coins used during the recognition, and the cost of the coins recognized during the recognition process
@akeem
akeem / gist:7415969
Created November 11, 2013 16:25
valgrind output from json decoding using the standard json library. The Leak summary is the most important part, this was run without the standard ruby valgrind suppressions
This file has been truncated, but you can view the full file.
==4998== Memcheck, a memory error detector
==4998== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==4998== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
==4998== Command: ruby json_decoding.rb
==4998==
==4998== Conditional jump or move depends on uninitialised value(s)
==4998== at 0x4EA54F8: ??? (in /usr/lib64/libruby.so.2.0.0)
==4998== by 0x4EA565C: ??? (in /usr/lib64/libruby.so.2.0.0)
==4998== by 0x4EA5DE4: ??? (in /usr/lib64/libruby.so.2.0.0)
==4998== by 0x4EA6CF5: ??? (in /usr/lib64/libruby.so.2.0.0)
@akeem
akeem / gist:7415657
Created November 11, 2013 16:08
json encoding an image 100 times by default
# Loads a random papers image and encodes to to a base64 string and put's it into a json and
# # then decodes it a set amount of times.
# usage: ruby json_decoding.rb [NUM_RUNS]
require 'json'
require 'base64'
if ARGV[0]
n = ARGV[0].to_i
else
n = 100
@akeem
akeem / gist:6126831
Created July 31, 2013 22:38
exception
NameError in HomeController#show
uninitialized constant ApplicationController::GaCookieParser
RAILS_ROOT: /opt/src/paperlesspost/paperless-post
Application Trace | Framework Trace | Full Trace
/opt/src/paperlesspost/paperless-post/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.18.pp1f331d6/lib/active_support/dependencies.rb:131:in `rescue in const_missing'
/opt/src/paperlesspost/paperless-post/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.18.pp1f331d6/lib/active_support/dependencies.rb:120:in `const_missing'
/opt/src/paperlesspost/paperless-post/app/controllers/application_controller.rb:419:in `google_analytic_cookie'
/opt/src/paperlesspost/paperless-post/app/controllers/application_controller.rb:425:in `utm_campaign'
@akeem
akeem / gist:5985035
Created July 12, 2013 14:50
paper ids that need investigation
1715
10459
7356
8193
3761
2915
10408
7215
7136
3734
@akeem
akeem / gist:5976226
Created July 11, 2013 15:03
bring it up
[2013-07-11T10:58:20-04:00] WARN: Cloning resource attributes for link[/opt/app/renderer-development/shared/config] from prior resource (CHEF-3694)
[2013-07-11T10:58:20-04:00] WARN: Previous link[/opt/app/renderer-development/shared/config]: /srv/chef/file_store/cookbooks/application/providers/default.rb:89:in `block in class_from_file'
[2013-07-11T10:58:20-04:00] WARN: Current link[/opt/app/renderer-development/shared/config]: /srv/chef/file_store/cookbooks/application/providers/default.rb:89:in `block in class_from_file'
[2013-07-11T10:58:20-04:00] WARN: Cloning resource attributes for link[/opt/app/renderer-development/shared/log] from prior resource (CHEF-3694)
[2013-07-11T10:58:20-04:00] WARN: Previous link[/opt/app/renderer-development/shared/log]: /srv/chef/file_store/cookbooks/application/providers/default.rb:98:in `block in class_from_file'
[2013-07-11T10:58:20-04:00] WARN: Current link[/opt/app/renderer-development/shared/log]: /srv/chef/file_store/cookbooks/application/providers/default.rb:98:in
@akeem
akeem / gist:5975950
Created July 11, 2013 14:29
provisioning_7_11_2013
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/etc/opt/app/renderer-development/config] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/shared] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/releases] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/var/run/app/renderer-development] action create (/srv/chef/file_store/cookbooks/application/providers/default.rb line 58)
[2013-07-11T10:23:12-04:00] INFO: Processing directory[/opt/app/renderer-development/shared/.bundle] action create (/srv/ch