Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View larcher's full-sized avatar
😋
this sandwich is the best

Larry Archer larcher

😋
this sandwich is the best
View GitHub Profile
@larcher
larcher / keybase.md
Created October 3, 2016 19:00
keybase.md

Keybase proof

I hereby claim:

  • I am larcher on github.
  • I am larcher (https://keybase.io/larcher) on keybase.
  • I have a public key ASAp9qHqDjMm509mdtQ4Chd-pkQYnvmBIM6TgVXLRYXAXQo

To claim this, I am signing this object:

@larcher
larcher / custom-google-search.php-xss-fix.patch
Created March 13, 2014 20:49
Fix to prevent JavaScript injection in Custom Google Search (v1.2) WordPress plugin
--- custom-google-search.php.orig 2014-03-13 15:37:59.185879551 -0500
+++ custom-google-search.php 2014-03-13 15:38:43.309881189 -0500
@@ -195,7 +195,7 @@
if ( isset( $args['search_text'] ) )
$search_text = '
///run search by query
- customSearchControl.execute("' . $_REQUEST['s'] . '");';
+ customSearchControl.execute("' . get_search_query() . '");';
else
$search_text = '';
@larcher
larcher / install-emim
Last active August 29, 2015 13:56
Installing EMIM on Ubuntu 12.04
# followed instructions here: http://www.staff.ncl.ac.uk/richard.howey/emim/comp.html
# plus some trial and error
# If you're trying fort77 and get errors like "concatenation of nonchar data" - try using gfortran instead.
# install packages needed to compile
sudo apt-get install \
unzip \
gcc \
g++-4.4 \
zlib1g-dev \
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@larcher
larcher / forums-search-results-links.patch
Last active December 21, 2015 00:59
Patch for WPMUDEV Forums plugin, v 2.0.1.7 -- fixes the search results page so that each result links to the containing topic.
@larcher
larcher / blue.css
Created July 13, 2013 18:36
Some accessibility tweaks for the Coraline theme for WordPress. Added focus styles to match existing hover styles. Based on version 1.4.1 of the theme.
/* =Dark
----------------------------------------------- */
/* Global styles */
body {
background: #ccddfa;
color: #333;
}
h1, h2, h3 {
color: #2c3c50;
@larcher
larcher / gist:102324
Created April 27, 2009 04:19
featured_order - not saving
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Processing CollectionsController#featured_order (for 127.0.0.1 at 2009-04-26 23:16:12) [POST]
Parameters: {"action"=>"featured_order", "authenticity_token"=>"MkQYr8ogHWaKhFtM/sLOr+nct9jDopSmalGH3lhKxY0=", "order"=>"6,5,4", "controller"=>"collections"}
Library Load (0.3ms) SELECT * FROM `libraries` LIMIT 1
Library Columns (2.2ms) SHOW FIELDS FROM `libraries`
User Columns (2.1ms) SHOW FIELDS FROM `users`
User Load (0.2ms) SELECT * FROM `users` WHERE (`users`.`id` = 4) LIMIT 1