Skip to content

Instantly share code, notes, and snippets.

View bbriggs's full-sized avatar

Bren Briggs bbriggs

View GitHub Profile

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:

@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
@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.
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)

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.
@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

Your field guide to getting involved in #hack weekend

How do I...

Register

Sign up for hack here! Registration takes just a minute (you can even use Facebook or Github to make it superfast!)

Join or submit a project

!gh verb [args...]

  • list
    • repos
      • user
      • org
    • issues
      • user
        • open
        • closed
  • repo
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC79EzPVlj55/upEbfLuQ9QFCdFA6APJS7gayhxQW7CuCB+YaKt0lfW5CDvkGNXa26X4mnMwmCk0TP1ax9SlYvbDGGeG9yi2v2aQVnoCWBl11+9gnLGB7WXUPG5SnG2buW7tD1+fw6FwJ8aNkKrunLyTxAcpsc8HN9/gITi71znGVmzrOFXxtkrfLuuItXHx8hv6H8x4ipfocLi+O9+8m44AhMrk7JGTTfZKb6aoKax6YCO4t7KGlVWk9iO/ReYu9kaOldFGQOpfrn8XddHF/91KDTklbH3l7ghsTYGyC+wRgcxfO7A8Joxcv0jA29KHyUEO8c7VVOg5b3GeyqxgVLaOGT8gitcqbVYqJsWUfrxPHdmFgcdiKTPqoIILprI/8Kq5fAM7FKacW0FUm9+5eFrZC9ePfR3Bn/Zhs1sQ6jXOYsvet46X0NimmPHPg+50wBwcmtyqBF0ygPZ+zlbzrfFxHnxQknELwyCNz9zGBvB3bSvhGYkCG2lPiy/rPghh1pc3b16c6qQtl598vEaAspfyXw99BPCKbAZM7KqbRteNjcaBD/ngyWYWoxrB/x/1kMIpzL6lKWXEke2d/89e9NcHlsD95xG0YP5tCRtbGk5E+slC3QXszfuo+zO9loMZmayL7eZ4j5a3lkLQYQS1+hqaeMBXwpl3m0AQMFU9QQocQ== fraq
package main
import (
"encoding/csv"
"encoding/json"
"io/ioutil"
"os"
)
type Instance struct {