Skip to content

Instantly share code, notes, and snippets.

bboe /
Created Dec 15, 2015
Enable master branch protection on all github repositories you are an owner of.
#!/usr/bin/env python
from __future__ import print_function
REPO_URL = 'git+git://'
import os
import sys
from github3 import login
except ImportError:

Keybase proof

I hereby claim:

  • I am bboe on github.
  • I am bboe ( on keybase.
  • I have a public key ASCnZHoRFWpVE71FNpfWZCGn8V2Dq8V6jvoiYOz14NFOfwo

To claim this, I am signing this object:

bboe / 01_sequential.rb
Last active Oct 11, 2017
Ruby Simple TCP Echo Servers
View 01_sequential.rb
#!/usr/bin/env ruby
require './common.rb'
require 'socket'
def main
server = server_socket('', 1024)
loop do
bboe / NOTES.txt
Last active Feb 17, 2021
BBoe's Updates to "How To Make A reddit Bot — Part One"
View NOTES.txt
I'm Bryce (/u/bboe) Author of PRAW
/u/busterroni's Submission:
/u/busterroni's Part 1:
bboe / bits.txt
Last active Dec 27, 2017
Level XM17
View bits.txt
010000 1
010010 1
001010 4
110010 0
100010 4
100010 4
110101 3
010011 1
010110 1
001000 2
bboe /
Last active Mar 11, 2020
Set retention on slack conversations with deleted users to 1 day.
#!/usr/bin/env python
"""Set retention on slack conversations to 400 days.
Usage: ./ [--perform] --token SLACK_TOKEN
The `--perform` flag is necessary to actually perform the action.
Due to the fact that `conversations.setToken` is not part of the public API
the slack legacy token concept will not work. To obtain the API token,
open up slack in the browser and observe networking traffic while performing
bboe / domains.txt
Created Jun 16, 2021
Test time to DNS query and connect to various domains
View domains.txt
bboe / validation.rb
Last active Jul 23, 2021
ActiveModel Validation With Whitespace
View validation.rb
#!/usr/bin/env ruby
require 'active_model'
require 'minitest/autorun'
class Simple
include ActiveModel::Model
validates :name, allow_blank: true, allow_nil: true, length: { is: 2 }
attr_accessor :name