Skip to content

Instantly share code, notes, and snippets.

View mbifulco's full-sized avatar
🍱
Hungry (always)

Mike Bifulco mbifulco

🍱
Hungry (always)
View GitHub Profile
@mbifulco
mbifulco / index.html
Last active January 18, 2017 15:01
Gymnasium status page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- typekit -->
@mbifulco
mbifulco / index.html
Created January 18, 2017 13:42 — forked from anonymous/index.html
Gymnasium will be right back// source http://jsbin.com/dewebajuye
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- typekit -->
<div class="cms-loaded">
<h1>Events Content Goes Here</h1>
<a href="/testing">testing</a>
<a href="/123">123</a>
</div>
<script>
$(function(){
var links = $('.cms-loaded a');
@mbifulco
mbifulco / shell commands.sh
Last active November 18, 2016 15:58
[Errno 111] Connection Refused
vagrant up # start your vagrant box if it isn't started already
vagrant ssh # ssh into the vagrant image
# run the following commands as the default user on the vagrant machine (not edxapp@)
sudo rm /edx/var/mongo/mongodb/mongod.lock
sudo mongod -repair --config /etc/mongod.conf
sudo chown -R mongodb:mongodb /edx/var/mongo/.
sudo /etc/init.d/mongod start
# restart lms/cms as usual
@mbifulco
mbifulco / keybase.md
Created August 5, 2016 18:48
keybase.md

Keybase proof

I hereby claim:

  • I am mbifulco on github.
  • I am mbifulco (https://keybase.io/mbifulco) on keybase.
  • I have a public key whose fingerprint is 42E8 0208 69EE 8D4B 29FC 6C8F E8B4 0EDA 2CB1 9D08

To claim this, I am signing this object:

@mbifulco
mbifulco / gist:2ad8529ca154d73c2d69
Created October 11, 2015 20:26
Open EdX certificate generation javascript
<p id="verify_button_by_clicking_msg">By clicking the button below, you assert that you have completed the course in its entirety.</p>
<p><input type=button value="Yes, I Agree." id="User_Verify_Button" style="margin-bottom: 20px;" /></p>
<p class="verify-button-success-text" style="font-weight: bold; color: #008200;"></p>
<script type="text/javascript">
var success_message = "Your grading and certification request has been received, <br />if you have passed, your certificate should be available in the next 20 minutes.";
var failure_message = "We're sorry; users who haven't created accounts and registered for the course may not receive Statements of Accomplishment.";
// for actual value of username, use scraped_username.split(':')[1].trim(); to get actual value
@mbifulco
mbifulco / function.js
Created August 25, 2015 19:10
jquery dictionary
//characters we want to replace:
/*
< with &lt;
> with &gt;
*/
var jsob =
#!/bin/bash
# ------------------------------------------------------------------
# Title: piupdate.sh
# Author: Andrew Miller (updated by Mike Bifulco)
# Version: 0.1.2
#
# Description:
# A really simple script that runs through all of the usual updates
# for a Raspbian Raspberry Pi.
#