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
brew update | |
brew install gmp | |
#install Nginx | |
brew install nginx | |
# copy launch script | |
cp /usr/local/Cellar/nginx/1.0.12/homebrew.mxcl.nginx.plist ~/Library/LaunchAgents/ | |
#try to launch Nginx | |
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist |
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
# Using version 4 of drush http://drush.ws/help | |
drush dl drupal | |
mv drupal-7.10 d7.dev | |
cd d7.dev | |
drush site-install standard --db-url=mysql://user:passwd@localhost/og --db-su=root --db-su-pw= --site-name=D7-Dev |
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
Some of the regex I think useful... | |
#That will match all blank lines except if the line is the very last line in the file. | |
^\s*[\r\n]+ | |
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
# Last modified: 2011 Oct 30 | |
# Author: Simon Perdrisat | |
#### Binds | |
# Prefix | |
unbind C-b | |
set-option -g prefix C-a | |
bind a send-prefix | |
# Last active window |
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
if (typeof jQuery == 'undefined') { | |
var jQ = document.createElement('script'); | |
jQ.type = 'text/javascript'; | |
jQ.onload = runthis; | |
jQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; | |
document.body.appendChild(jQ); | |
} else { | |
runthis(); | |
} |
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 | |
abstract class SkCommonMigration extends Migration { | |
public function __construct() { | |
parent::__construct(); | |
//$this->addFieldMapping('field_tags', 'tags'); | |
} | |
/** |
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
<form onsubmit="document.location.href=document.searchform.action+'#o%3As%3Ds%253Aresource%5Ef%3Do%253Aresource%253Do%25253Aterms%25253Ds%2525253A'+escape(escape(escape(escape((jQuery('#curriki-searchbox').val() !=='recherche')?jQuery('#curriki-searchbox').val()'')))); return false;" action="http://planete.sankore.org/xwiki/bin/view/Search/" class="search-box" name="searchform" id="searchform"> | |
<input type="hidden" value="" name="area" class="hidden"> | |
<input type="text" onblur="if (this.value=='') this.value='recherche'" onfocus="if (this.value=='recherche') this.value=''; else this.select()" value="recherche" class="input" name="brsqry" id="curriki-searchbox"> | |
<button name="btn" id="searchbtn" type="submit">Aller</button> | |
</form> |
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
[client] | |
port = 3306 | |
socket = /tmp/mysql.sock | |
[mysqld] | |
bind-address = 127.0.0.1 | |
port = 3306 | |
socket = /tmp/mysql.sock | |
max_allowed_packet = 64M | |
table_cache = 4096 | |
sort_buffer_size = 2M |
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 | |
/** | |
* overwrite theme_views_view_list | |
* | |
* Group more than one fields in a view | |
* | |
*/ | |
function template_views_view_list__VIEWNAME($view, $group, $row) { | |
//the field we want to group |
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
// ==UserScript== | |
// @name Disable Google Fade-in Homepage | |
// @namespace http://googlesystem.blogspot.com | |
// @description Disable Google's new homepage | |
// @include http://www.google.*/ | |
// @include http://www.google.*/webhp* | |
// @include http://www.google.*/#* | |
// @include https://www.google.*/ | |
// @include https://www.google.*/webhp* | |
// @include https://www.google.*/#* |