Skip to content

Instantly share code, notes, and snippets.

<div id="cse" style="width: 100%;">Loading</div>
<script src="https://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '0', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('012175768895571244741:5zxvz8g5isy');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.setAutoComplete(true);
customSearchControl.draw('cse', options);
<script type="text/javascript">
google.load('search', '0', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('012175768895571244741:5zxvz8g5isy');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.setAutoComplete(true);
customSearchControl.draw('cse', options);
//$(".gsc-input").val("<?php echo $_POST['as_q']; ?>");//insert into search field requested search text
//$('.gsc-input').focus();//give search box focus
drush vset install_profile minimal
Enter a number to choose which variable to set.
[0] : Cancel
[1] : install_profile
1
install_profile was set to minimal [success]
o1@server2:~/static/theweeklydrop.com-2012-03-03-2038/sites/theweeklydrop.com$ drush vget
install_profile
install_profile: "default"
<?php
/**
* Implements hook_install().
*
* Perform actions to set up the site for this profile.
*/
function btsa_profile_install() {
$themes['theme_default'] = variable_get('btsa_theme_default', 'bartik');
$themes['admin_theme'] = variable_get('btsa_admin_theme', 'seven');
@kepford
kepford / seminary.fresno.edu.conf
Created April 2, 2012 18:30
Apache Vhost for seminary.fresno.edu
<VirtualHost *:80 *:443>
ServerAdmin webmaster@localhost
ServerName seminary.fresno.edu
ServerAlias www.seminary.fresno.edu
ServerAlias seminary.fpu.edu
ServerAlias www.seminary.fpu.edu
RewriteEngine On
# ----------------------------------------------------------------------------------------- #
# ---------- Make sure that the user is using SSL for sensitive areas --------------------- #
drush site-install my_profile --site-name=mysite --account-name=admin --account-pass=admin --db-url=mysql://root:root@localhost/mysitedb --y --v
WD system: state_machine module enabled. [info]
WD ctools: Plugin state_flow of plugin type state_flow:plugins points to nonexistent file [notice]
profiles/my_profile/modules/contrib/state_machine/modules/state_flow/StateFlow.class.php for class handler handler.
WD system: state_flow module installed. [info]
WD system: state_flow module enabled. [info]
WD ctools: Plugin state_flow of pl
function fpu_secret_page_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
switch ($op) {
case 'view':
if ($node->nid == 2) {
if (!user_is_logged_in()) {
if ((!isset($_GET["ident"]) || $_GET["ident"] !== "c0lk3y") || (!isset($_GET["auth"]) || $_GET["auth"] != "k3rb3r0ssyph0n")) {
drupal_access_denied();
}
}
}
@kepford
kepford / postmark-php-postmark-location.patch
Created September 2, 2012 02:06
Move location of postmark-php lib
diff --git a/README.txt b/README.txt
index 7f79661..1bd1203 100644
--- a/README.txt
+++ b/README.txt
@@ -1,8 +1,8 @@
Module description
------------------
-The Postmark module allows the administrator to switch the standard SMTP
-library over to use the third party Postmark library. An account with
From 8d5fe55311b7fb3e36f346102c0fbdc80f42b509 Mon Sep 17 00:00:00 2001
From: kepford <bob@bobkepford.com>
Date: Sat, 1 Sep 2012 19:57:45 -0700
Subject: [PATCH] Added the postmark-php path to this module
---
README.txt | 24 ++++++++++++------------
postmark.info | 2 +-
postmark.mail.inc | 4 ++--
3 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/panopoly_admin.make b/panopoly_admin.make
index e5476d3..452be0e 100644
--- a/panopoly_admin.make
+++ b/panopoly_admin.make
@@ -39,4 +39,4 @@ projects[jquery_update][version] = 2.x
projects[jquery_update][subdir] = contrib
projects[jquery_update][download][type] = git
projects[jquery_update][download][revision] = baff5d1
-projects[jquery_update][download][branch] = 7.x-2.x
+; projects[jquery_update][download][branch] = 7.x-2.x