Skip to content

Instantly share code, notes, and snippets.

🌵
Cactus

Mike Bifulco mbifulco

🌵
Cactus
Block or report user

Report or block mbifulco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mbifulco
mbifulco / function.js
Created Aug 25, 2015
jquery dictionary
View function.js
//characters we want to replace:
/*
< with &lt;
> with &gt;
*/
var jsob =
View piupdate.sh
#!/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 Oct 11, 2015
Open EdX certificate generation javascript
View gist:2ad8529ca154d73c2d69
<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
View 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 Nov 18, 2016
[Errno 111] Connection Refused
View shell commands.sh
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
View just-testing.html
<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 Jan 18, 2017 — forked from anonymous/index.html
Gymnasium will be right back// source http://jsbin.com/dewebajuye
View index.html
<!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 Jan 18, 2017
Gymnasium status page
View index.html
<!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 -->
View dumpWithDebug.txt
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
View 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:

You can’t perform that action at this time.