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
| #!/usr/bin/env perl6 | |
| use v6; | |
| use HTTP::UserAgent; | |
| my $ua = HTTP::UserAgent.new; |
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
| /* Include nggallery images in search results | |
| ** Search on gallery pics from NextGen Gallery plugin | |
| ** | |
| ** 2 vars : (1) $keywords (usually coming from the standard search query from wordpress) | |
| ** (2) $numberPicCol (number of pic by row, if null it takes 4 ) | |
| **/ | |
| function ngg_get_search_pictures($keywords, $numberPicRow = "4") { | |
| global $wpdb; | |
| global $nggdb; |
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 | |
| cd /tmp/ | |
| wget ftp://ftp.mozilla.org/pub/firefox/releases/latest/linux-x86_64/en-US/firefox-*tar.bz2 -O firefox-latest.tar.bz2 | |
| tar xjf firefox-latest.tar.bz2 | |
| [ -d /opt/firefox ] && sudo rm -rf /opt/firefox | |
| sudo mv firefox /opt/firefox | |
| rm firefox-latest.tar.bz2 | |
| rm ~/bin/firefox | |
| ln -s /opt/firefox/firefox ~/bin/firefox |
NewerOlder