Skip to content

Instantly share code, notes, and snippets.

View bbriggs's full-sized avatar

Bren Briggs bbriggs

View GitHub Profile
@bbriggs
bbriggs / pubkey
Last active August 11, 2019 01:43
Public key for bbriggs
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCz+735fOtNh1wlKSbBgcIHl4zzqYFkMAIulUsLsLpd/PRgdZ0Cg96U2nc5gqdCY9+fHeFl3y0j7F47K96okpuHCamo3Tww5K21dnwwN5h3B/oFit5vGLv1psHKBIKLy3pImMC4uIjqyKd0rrrUZaQ3/CnyeqRzTK75LqTLALh8K+WdkMX2kKioN8KytScOVowbf3JrQbgE2nXabU1EX2E38MpGvddBG9kBWZLGLPBfd+OfMG0Dc31gAu5lmPdoFtQ9bFcI0jE5BcuEQAAk78Ho3rBqBkyGReI1ODrTub4BH4doOlZs/jGwg8o+SaCcKUgpIyubzpJVHHWoUXiDV4ujiI/hagjVZoXdVZ34h/NBXiChvrHb+ufcpteqF84Xi+zUZRDf0mp3RUh5CTdbllrlTX3fYvVMZxgOVFBLE9OcJ3v7I6MO5oq4Fb1Nj9TmFL67tBbFQYxA4kc4vwnccfKNpLYTQBgbnxAO2uNe8M8omj+d/R7ZiN5jKg1l9W+Y8auybI4Z2qPXCHivFBuYUiWYFBtveSJnV+Pi/70Qs3+FOPgoPNbMUDNnczp2ngKSiJLuXvm9olLRPeI3E5QUNEgG4pwvvyjiPCmTfNsnKrWFsJSX7QaIOheNorJiLGonAf1+6nKDP9yZvkWaqGNaffjTHvmcH9pDGQgVsbZ3ag+Mgw== thesnarkmachine
@bbriggs
bbriggs / centos_install_ruby_1.9.3_and_puppet_3.8
Last active March 24, 2016 01:03 — forked from slouma2000/install_ruby_1.9.3
Install Ruby 1.9.3 on CentOS, RedHat using RVM
#Install RVM and Ruby 1.9.3
yum update -y
yum groupinstall -y "Development Tools"
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel
yum install -y libyaml-devel libffi-devel openssl-devel make
yum install -y bzip2 autoconf automake libtool bison iconv-devel
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 1.9.3

These instructions outline how to install Oppia on a Windows machine.

  1. Setting up Vagrant:
  • Download and install VirtualBox 5.0.14. You do not need to create a VM, that will be handled later.
  • Download and install Vagrant. After installation, Vagrant will prompt for a restart. Restart your machine.
  • Download and install Git.
  1. Download and run Oppia
  • Open Git Bash and navigate to a directory somewhere on your machine (such as Desktop/projects) where you would like the Oppia code to live, and then clone the repository down with git clone https://github.com/oppia/oppia.git.
  • Cloning the repo with git clone will create a directory called oppia. While still using Git Bash, cd ./oppia to navigate into it.
  • Once in the directory, run vagrant up in Git Bash. This will create a VM for you, install the necessary prerequisites, and start the Oppia server automatically.
linkedin = personal_messages:contain_from("*@linkedin.com")
linkedin:move_messages(gmail['LinkedIn'])
unfiltered = gmail.Inbox:select_all()
print(os.date().. " - Stuffing everying else into -unfiltered")
gmail.Inbox:move_messages(gmail['Inbox/-unfiltered'],unfiltered)
@bbriggs
bbriggs / bumpversion.sh
Created January 16, 2016 20:05 — forked from pete-otaqui/bumpversion.sh
Bump a software project's VERSION, add the CHANGES, and tag with GIT
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.
@bbriggs
bbriggs / unbound2plain.py
Created December 21, 2015 18:19
Converts Unbound Bible formats into a plain text with no line breaks. Useful for preprocessing Bible text for NLP tasks.
#!/usr/bin/env python
#Convert Unbound Bible Format into plain text, all one line.
import os
import os.path
import sys
import re
from tempfile import mkstemp
from shutil import move

Keybase proof

I hereby claim:

  • I am bbriggs on github.
  • I am fraq (https://keybase.io/fraq) on keybase.
  • I have a public key whose fingerprint is AAC9 46CF BE4F 155F 9EBF A412 63E4 6AE1 8CA3 046A

To claim this, I am signing this object: