This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^old-dir/?(.*)$ http://example.com/$1 [L,NC,R=301] | |
</IfModule> |
This file contains hidden or 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
var $ = require("ko/dom"); | |
var view = $(require("ko/views").current().get()); | |
var languageMenu = view.findAnonymous("anonid", "statusbar-language-menu")._elements; | |
if (languageMenu.length > 0) { | |
languageMenu[0].open = true; | |
} |
This file contains hidden or 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
# Languages that I don't work with... | |
*.o | |
*.lo | |
*.la | |
*.al | |
.libs | |
*.so | |
*.so.[0-9]* | |
*.a | |
# Python |
This file contains hidden or 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
// Macro recorded on: Wed Oct 05 2016 22:55:50 GMT-0400 (Eastern Standard Time) | |
komodo.assertMacroVersion(3); | |
if (komodo.view) { komodo.view.setFocus(); } | |
(function(){ | |
var currentView = ko.views.manager.currentView; | |
var scimoz = currentView.scimoz; | |
var path = ko.interpolate.interpolateString(["%F"]); | |
var project = ko.interpolate.interpolateString(["%i"]); | |
var platform = navigator.platform.toLowerCase(); |
This file contains hidden or 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 $upgrading = time(); ?> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:wfw="http://wellformedweb.org/CommentAPI/" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:wp="http://wordpress.org/export/1.2/"> | |
<xsl:output encoding="UTF-8" indent="yes" cdata-section-elements="content:encoded wp:meta_value category" method="text" standalone="yes" /> |
This file contains hidden or 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
git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -10 | awk '{print$1}')" |
This file contains hidden or 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 | |
// https://www.toddlahman.com/the-plugin-generated-x-characters-of-unexpected-output-during-activation/ | |
function plugin_activate_save_error() { | |
ob_clean(); | |
update_option( 'plugin_error', ob_get_contents() ); | |
} | |
add_action( 'activated_plugin', 'plugin_activate_save_error' ); | |
/* Then to display the error message: */ | |
echo get_option( 'plugin_error' ); |
This file contains hidden or 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
var track = { | |
google: { | |
event: function(args) { | |
if (typeof ga === "function") { | |
if (args.constructor !== [].constructor) { | |
new Error('This function takes an array as the argument. You passed a ' + typeof args); | |
} | |
else if( args.length < 2 || args.length > 5 ) { | |
new Error('This function needs an array of 2 to 5 items. You passed ' + args.length); | |
} |
This file contains hidden or 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
# BEGIN Redirect | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301] | |
</IfModule> | |
# END Redirect |