This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Hide Wordpress, Plugin, & Theme Update Notifications | |
* | |
* When regularly checking for and applying updates, we don't | |
* need persistent update nags bugging clients. | |
* | |
* This plugin hides the update nags with CSS, but you can still access | |
* the updates page list under Dashboard. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Announce the current hour | |
# | |
# Use cron to schedule this on the hour: | |
# 0 * * * * /path/to/script/chime.sh | |
# | |
# Change the voice used in System Preferences | |
# under Accessibility > Speech | |
# Wake up the text-to-speech engine, which sometimes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OPERATING SYSTEMS | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
._* | |
*.lock | |
.Spotlight-V100 | |
.Trashes | |
.svn | |
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* fix iOS bug not displaying 100vh correctly */ | |
/* iPad Pro */ | |
@media only screen and (min-device-width : 1024px) and (max-device-width : 1366px) and (orientation : landscape) { | |
.fullheight { | |
height: 1024px; | |
} | |
} | |
@media only screen and (min-device-width : 1024px) and (max-device-width : 1366px) and (orientation : portrait) { | |
.fullheight { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymlinks -Indexes | |
RewriteEngine On | |
# Disable the Server Signature | |
ServerSignature Off | |
# BEGIN WordPress | |
# Except for requests for /index.php and for the most-frequently-requested | |
# filetypes that WP cannot generate, rewrite all URL requests which do not | |
# resolve to an existing file or directory to the WordPress script filepath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fluid App Userscript | |
FastMail beta web interface | |
URL pattern: *fastmail.fm/mail/* | |
Based on https://github.com/melomac/Fluid | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Prevent TinyMCE from stripping out schema.org metadata | |
function schema_TinyMCE_init($in) | |
{ | |
/** | |
* Edit extended_valid_elements as needed. For syntax, see | |
* http://www.tinymce.com/wiki.php/Configuration:valid_elements | |
* | |
* NOTE: Adding an element to extended_valid_elements will cause TinyMCE to ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Generated from http://www.iso.org/iso/country_codes.htm on 2013/01/22 --> | |
<select name="country"> | |
<option value="AF">AFGHANISTAN</option> | |
<option value="AX">ÅLAND ISLANDS</option> | |
<option value="AL">ALBANIA</option> | |
<option value="DZ">ALGERIA</option> | |
<option value="AS">AMERICAN SAMOA</option> | |
<option value="AD">ANDORRA</option> | |
<option value="AO">ANGOLA</option> | |
<option value="AI">ANGUILLA</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/embed/VIDEOID?rel=0&controls=0&modestbranding=1&showinfo=0&hd=1&autoplay=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Shorten a string to a specific word count | |
function wordTrim($str,$maxwords=25, $more = '...'){ | |
$words = explode(' ',trim($str)); | |
if(count($words) > $maxwords) | |
{ | |
$newStr = array(); | |
for($i=0;$i<$maxwords;$i++) | |
$newStr[] = $words[$i]; |
NewerOlder