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
#!/bin/bash | |
# @see http://www.ittybittytalks.com/commit-push-trigger-jenkins-build/ | |
git commit -a -m "$1" | |
git push | |
curl --user <your_jenkins_username>:<your_jenkins_API_key> http://<jenkins_server_url>/job/<your_jenkins_job_name>/build |
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
# @see http://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/ | |
curl --user <your_jenkins_username>:<your_jenkins_API_key> http://<jenkins_server_url>/job/<your_jenkins_job_name>/build |
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
$("#tblId tr").each(function(i, obj) { | |
if($(obj).attr('id') =='idBreakHere' ){ | |
return false; //this is equivalent of 'break' for jQuery loop | |
} | |
} | |
$("#tblId tr").each(function(i, obj) { | |
if($(obj).attr('id') =='idToFind' ){ | |
return; //this is equivalent of 'continue' for jQuery loop |
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
'Copyright 2010 - Ron | |
'http://www.ittybittytalks.com | |
On Error Resume Next | |
Set WshShell = WScript.CreateObject("WScript.Shell") | |
X = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE") | |
If X = "x86" Then |
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
drush upwd admin --password="p@ssw0rd" |
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
/** | |
* @file: MY_MODULE.views.inc | |
* | |
* Implementation of hook_views_query_alter(). | |
* @param view $view | |
* @param views_plugin_query_default $query | |
*/ | |
function MY_MODULE_views_query_alter(&$view, &$query) { | |
if ($view->name == 'MY_VIEW') { | |
$query->where[0]['type'] = 'OR'; |
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
/** | |
* @file: MY_MODULE.views.inc | |
* | |
* Implementation of hook_views_query_alter(). | |
* 1. Resolves conflict between contextual filter and regular filter (topic id, sub topic). | |
* Both refer to same database field, so merge them in one 'where' clause instead of two that Views comes up with. | |
* 2. By default, show all results from a topic and its sub-topics. | |
* [If a document is tagged with a sub-topic but not its parent topic, it was not shown in the default result.] | |
* @param view $view | |
* @param views_plugin_query_default $query |
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
# get the current default/admin theme | |
drush status theme | |
# change! | |
drush vset theme_default garland | |
drush vset admin_theme garland |