Skip to content

Instantly share code, notes, and snippets.

View jeremyfelt's full-sized avatar
🍕
Look at that pizza emoji!

Jeremy Felt jeremyfelt

🍕
Look at that pizza emoji!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jeremyfelt on github.
  • I am jeremyfelt (https://keybase.io/jeremyfelt) on keybase.
  • I have a public key whose fingerprint is 23BF 9F14 6079 3EF7 F69F 94E1 3C9D 648B ED02 1887

To claim this, I am signing this object:

-----BEGIN PGP MESSAGE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
hQEMAzG/AQTgrjvoAQf/doobpLlaoXZQ6h9wv/qre09/26iX79aUVXir5QPZeOGz
3FCMGxmwSGXFagbPySlM4Llp6DfaIdlI/yW1+TodxvCc4MPZK8uAYDYLxnhLChDY
4uzLJNdVMtzZimDt0UatNldiV4GqfYLCfeJhRUE+C353o7WWjnhcFjOa95n0xOeM
uDaEH/sQd3ZPcbcTnTYyLPTzHiTj6RwxMcomsnYGHsfh4CQ9Zlha90EbOg0V/r4d
wnDtTuslC9dZXMmp6/kT34nkmSJMqY1o2Bw8gHaZbOod5S6p+W3PJp0MGDRJzpMN
KmoamPMGs22vF1DoF5ylB9Wh3SfyUifxxnFEb8tIUtJ2AcMAvFQo2r6PHbY4YaDU
View Configuration, SPDY Configuration, Statistics (with memcached Stats). Global Statistics
cache_time_us: 1625908
cache_hits: 995
cache_misses: 1166
cache_backend_hits: 1262
cache_backend_misses: 899
cache_fallbacks: 0
cache_expirations: 12
cache_inserts: 1635
cache_deletes: 0
(function($){
$(document).ready(function(){});
}(jQuery));
/* Also worth noting - the above wraps functionality in an anonymous function, allowing you
to pass the jQuery object in to use as $. The use of .ready() means it will wait until the
entire DOM is loaded and the onReady event fires in the browser. This can sometimes happen
a couple seconds after the page has loaded into view.
If the script is loaded in the footer of the page, after the DOM is loaded, but not necessarily
@jeremyfelt
jeremyfelt / disable-ziplist-tinymce.php
Created April 18, 2014 01:24
Disable ZipList Receipe's TinyMCE customizations
<?php
add_action( 'init', 'fys_remove_zlist_tinymce', 11 );
function fys_remove_zlist_tinymce() {
remove_filter('mce_external_plugins', 'amd_zlrecipe_tinymce_plugin');
}
- project-directory/
- Gruntfile.js
- sub-directory/
- excluded-project/
Gruntfile.js
- sub2-directory/
- excluded-project/
Gruntfile.js
#Export
vagrant ssh
sudo bash
mysqldump -u root -ppassword wsuwp > /var/www/20140605-wsuwp-backup.sql
exit
exit
#Reimport
vagrant ssh
sudo bash
(function($){
$(document.ready(function(){
var cycle_slideshow = $('.cycle-slideshow');
var cycle_span = $('.cycle-pager span');
if ( cycle_slideshow.length > 0 ) {
cycle_slideshow.on('mouseover',function(){
cycle_span.css('height', '20px');
});
cycle_slideshow.on('mouseleave',function(){
(function($){ $(document).ready(function(){if ( 0 < jQuery('.home').length ) { jQuery('#spine').removeClass('white').addClass('crimson') };});}(jQuery));
@jeremyfelt
jeremyfelt / gist:0cea938559dd28f87a44
Last active August 29, 2015 14:09
Check signature algorithm on a server name's cert
# Use: check_cert example.com
function check_cert {
openssl s_client -servername $1 -connect $1:443 < /dev/null 2>/dev/null |\
openssl x509 -text -in /dev/stdin | grep -m 1 "Signature Algorithm" | sed -e 's/^[ \t]*//'
}