Skip to content

Instantly share code, notes, and snippets.

View taptapdan's full-sized avatar

Daniel Fiore taptapdan

View GitHub Profile
@taptapdan
taptapdan / codepen-norerun.css
Created September 1, 2015 19:33
Hide Rerun Button on Codepen Embeds
#rerun-button { display: none; }
@taptapdan
taptapdan / 000-default.conf
Created July 7, 2015 19:46
/etc/apache2/sites-available/000-default.conf
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
</Directory>
@taptapdan
taptapdan / .htaccess
Created June 19, 2015 16:44
Example .htaccess for Drupal 7.38 at Humboldt State University
# Example .htaccess for Drupal 7.38 at Humboldt State University
# Make sure to change RewriteBase to point to your site's location.
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">
Order allow,deny
@taptapdan
taptapdan / jekyll-quick-start-instructions
Created June 18, 2015 19:47
Jekyll Quick Start Instructions
~ $ gem install jekyll
~ $ jekyll new my-awesome-site
~ $ cd my-awesome-site
~/my-awesome-site $ jekyll serve
# => Now browse to http://localhost:4000
@taptapdan
taptapdan / ssh-remote-host.txt
Last active August 29, 2015 14:23
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
7d:ea:d0:a8:3a:8b:44:27:94:9f:f9:81:83:0e:1b:14.
Please contact your system administrator.
Add correct host key in /Users/fiore/.ssh/known_hosts to get rid of this message.
@taptapdan
taptapdan / badge-hsu-qolt-reviewed.html
Created February 9, 2015 18:06
HSU QOLT Reviewed // Moodle HTML Block Code
<div style="text-align: center;">
<p>
<a href="http://www2.humboldt.edu/elearning/faculty-resources/qolt">
<img style="width: 100%; max-width: 500px; min-width: 150px;" src="http://i.imgur.com/4BVbUpB.png" alt="HSU QOLT Reviewed Badge" />
</a>
</p>
<p>This course has undergone the <a href="http://www2.humboldt.edu/elearning/faculty-resources/qolt">HSU QOLT</a> review process.</p>
</div>
@taptapdan
taptapdan / bookmarklet-load-external.js
Created May 28, 2014 23:05
How to load an external Javascript file in a bookmarklet.
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://blarb.com/external.js';})();
@taptapdan
taptapdan / moodle-quiz-settings.js
Last active August 29, 2015 14:01
Example Bookmarklet for Moodle Quiz Settings
/*
Author: Daniel Fiore (@taptapdan)
License: MIT License
I needed a way to make the same settings changes to many quizzes in a course. Since Moodle doesn't offer a bulk edit for quizzes, I created this bookmarklet to save me a ton of clicking. Hopefully someone else finds this helpful. To use -- modify the settings or remove the ones you don't need, open the quiz's Edit Settings page, and click on the bookmarklet.
This works on my university's installation of Moodle 2.6. This may or may not work for you. I'd suggest backing up your course before attempting to use this!
Feel free to get in touch on Github or Twitter (@taptapdan) if you have questions and I'll try to help.
*/
@taptapdan
taptapdan / parabola-custom-course.css
Last active December 29, 2015 02:49
Parabola Theme Custom CSS (Course Level), Wordpress
/* Parabola Custom CSS */
#frontpage h1, h2, h3, h4, h5, h6 { font-family: "Open Sans", sans-serif; font-weight: bold; margin-bottom: 1em; }
#frontpage h1 { font-size: 26px; }
#frontpage h2 { font-size: 23px; }
#frontpage h3 { font-size: 20px; }
#frontpage p { margin-bottom: 1em; }
#frontpage ul { list-style-type: disc; margin: 0 0 1em 2em; }
/* HSU Masthead CSS */
#wpmsgcheader { background-color: #003333; padding: .5em; }
#wpmsgcheader div { width: 1050px; text-align: left; margin: 0 auto; }
@taptapdan
taptapdan / parabola-custom.css
Last active December 28, 2015 11:19
Parabola Theme Custom CSS, Wordpress
/* Parabola Custom CSS */
#frontpage h1, h2, h3, h4, h5, h6 { font-family: "Open Sans", sans-serif; font-weight: bold; margin-bottom: 1em; }
#frontpage h1 { font-size: 26px; }
#frontpage h2 { font-size: 23px; }
#frontpage h3 { font-size: 20px; }
.widget-area .textwidget p { margin-bottom: 1em; }
div.textwidget ul { list-style-type: disc; margin: 0 0 1em 2em; }
/* Presentation Page Only */
#site-description { display: none; }
#branding { height:60px; }