I hereby claim:
- I am hundredwatt on github.
- I am hundredwatt (https://keybase.io/hundredwatt) on keybase.
- I have a public key ASBjSOfVQi7igm7UAwmoDlbyPSH7dirZHg83jKoWeGCzygo
To claim this, I am signing this object:
| import cityhash | |
| class Cell: | |
| """A cell in the Invertible Bloom Filter.""" | |
| def __init__(self, index, ibf): | |
| self.index = index | |
| self.item_sum = 0 # Now just a single integer instead of array | |
| self.hash_sum = 0 # Store hash sum separately for verification | |
| self.count = 0 | |
| self.ibf = ibf |
| # Temporary build stage to build the xid_wraparound extension | |
| FROM debian:bookworm-slim AS build | |
| # Download Postgres REL_17_STABLE branch | |
| RUN apt-get update && apt-get install -y unzip wget | |
| RUN wget https://github.com/postgres/postgres/archive/refs/heads/REL_17_STABLE.zip -O postgres.zip && \ | |
| unzip postgres.zip | |
| # Install Postgres build dependencies, source: https://wiki.postgresql.org/wiki/Compile_and_Install_from_source_code | |
| RUN apt-get install -y build-essential libreadline-dev zlib1g-dev flex bison libxml2-dev libxslt-dev libssl-dev libxml2-utils xsltproc ccache pkg-config |
| # frozen_string_literal: true | |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| gem "rails" | |
| # If you want to test against edge Rails replace the previous line with this: | |
| # gem "rails", github: "rails/rails", branch: "main" |
| require 'digest/sha1' | |
| require 'net/http' | |
| def pwned?(password) | |
| digest = Digest::SHA1.hexdigest(password).upcase | |
| prefix = digest[0,5] | |
| suffix = digest[5,256] | |
| uri = URI.parse("https://api.pwnedpasswords.com/range/" + prefix) |
I hereby claim:
To claim this, I am signing this object:
| # Idea from: https://twitter.com/nateberkopec/status/1255573064747712515 | |
| require 'fileutils' | |
| require 'net/http' | |
| require 'json' | |
| require 'uri' | |
| require 'csv' | |
| POINT_THRESHOLD = 400 | |
| HN_ALGOLIA_URL = 'https://hn.algolia.com/api/v1/search?query=github.com&restrictSearchableAttributes=url&page=%<page>d' |
I hereby claim:
To claim this, I am signing this object:
| 'use strict'; | |
| /** | |
| * This code sample demonstrates an implementation of the Lex Code Hook Interface | |
| * in order to serve a bot which manages dentist appointments. | |
| * Bot, Intent, and Slot models which are compatible with this sample can be found in the Lex Console | |
| * as part of the 'MakeAppointment' template. | |
| * | |
| * For instructions on how to set up and test this bot, as well as additional samples, | |
| * visit the Lex Getting Started documentation. |
| Delayed::Worker.lifecycle.before :execute do | |
| require 'active_record/relation/warn_on_result_set_size' | |
| ActiveRecord::Base.warn_on_result_set_size = 1001 | |
| ActiveRecord::Base.logger = Rails.logger | |
| ActiveRecord::Base.logger.level = Logger::WARN | |
| end |
| <div style="width:100%; text-align:left;" ><iframe src="http://eventbrite.com/tickets-external?eid=13780017403&ref=etckt" frameborder="0" height="260" width="100%" vspace="0" hspace="0" marginheight="5" marginwidth="5" scrolling="auto" allowtransparency="true"></iframe><div style="font-family:Helvetica, Arial; font-size:10px; padding:5px 0 5px; margin:2px; width:100%; text-align:left;" ><a style="color:#ddd; text-decoration:none;" target="_blank" href="http://www.eventbrite.com/r/etckt">Online event registration</a><span style="color:#ddd;"> for </span><a style="color:#ddd; text-decoration:none;" target="_blank" href="https://www.eventbrite.com/e/amplify-2015-the-stakeholder-social-engagement-conference-tickets-13780017403?ref=etckt">AMPlify 2015 - The Stakeholder Social Engagement Conference</a> <span style="color:#ddd;">powered by</span> <a style="color:#ddd; text-decoration:none;" target="_blank" href="http://www.eventbrite.com?ref=etckt">Eventbrite</a></div></div> |