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
#!/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.
#
@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 / 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 / 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
<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 / 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 -->
@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 -->
pi@raspberrypi:~ $ sudo hcidump -t -x & sudo DEBUG=* node NobleDebug.js
[3] 1124
HCI sniffer - Bluetooth packet analyzer ver 5.33
device: hci0 snap_len: 1500 filter: 0xffffffff
hci setting filter to: 1600000020c10000000000400000 +0ms
hci set event mask - writing: 01010c08fffffbff07f8bf3d +32ms
2017-01-21 21:06:49.104327 < HCI Command: Set Event Mask (0x03|0x0001) plen 8
2017-01-21 21:06:49.104327 < HCI Command: Set Event Mask (0x03|0x0001) plen 8
2017-01-21 21:06:49.104327 < HCI Command: Set Event Mask (0x03|0x0001) plen 8
Mask: 0xfffffbff07f8bf3d
@mbifulco
mbifulco / Keybase.md
Created January 4, 2019 21:00
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 40EB C3BB 6337 D003 49CC B054 FFA1 FACC 2DDF 8CF4

To claim this, I am signing this object:

<!doctype html>
<html>
...code
</html>