Skip to content

Instantly share code, notes, and snippets.

run() {
# Run the compilation process.
cd $PLATFORM_CACHE_DIR || exit 1;
if [ ! -d "${PLATFORM_CACHE_DIR}/.linuxbrew/opt/ruby@$1" ]; then
echo "Ruby not found in cache, installing"
install_brew
install_ruby $1
copy_lib_to_cache
else
Start-Date: 2015-06-15 14:11:32
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -q -y -o APT::Install-Recommends=true -o APT::Get::AutomaticRemove=true install task-desktop task-english task-gnome-desktop task-print-server whois python2.6-minimal mlocate m4 mime-support file exim4-base w3m libswitch-perl less dnsutils bsd-mailx apt-listchanges dselect rpcbind doc-debian procmail dc perl-modules python-support bind9-host liblockfile-bin db5.1-util mutt patch nfs-common exim4-config reportbug texinfo python2.7 time exim4 python-minimal debian-faq krb5-locales ucf libclass-isa-perl ftp lsof wamerican bash-completion gettext-base at bc python-reportbug python openssh-client perl exim4-daemon-light ncurses-term bzip2 telnet python-apt
Install: x11-apps:amd64 (7.7~2, automatic), libopenal1:amd64 (1.14-4, automatic), gnome-sushi:amd64 (0.4.1-3, automatic), libsmbclient:amd64 (3.6.6-6+deb7u5, automatic), telepathy-rakia:amd64 (0.7.4-1, automatic), sane-utils:amd64 (1.0.22-7.4, auto
if ($row->field_info_adicionais) {
$row->field_info_adicionais = current($row->field_info_adicionais);
$words = array(
'Blu-ray',
'Bluray',
'Blueray',
'Blue-ray',
'BD ',
'BD-',
'BDdisc',
@fidelix
fidelix / ipb.js
Created July 6, 2015 16:01
IPB Post Process NodeBB
"use strict";
var async = require('async');
var Data = require('nodebb-plugin-import/server/data.js');
var Posts = require('./src/posts.js');
var Users = require('./src/user.js');
var cheerio = require('cheerio');
function postProcess(post, next){
post.modified = false;
var $ = cheerio.load(post._imported_content, {decodeEntities: false});
elseif (arg(0) == 'node' && arg(1) == 28) {
$node_28_slider_menu_vars = &drupal_static('node_28_slider_menu_vars');
$variables['content']['node_28_slider_menu_vars'] = $node_28_slider_menu_vars['content'];
$variables['theme_hook_suggestions'][] = 'field_collection_item__field_carousel_slides__tips_and_tools';
drupal_add_js(drupal_get_path('theme', $GLOBALS['theme']) . '/scripts/he-modules/he-mobile-submenu-module.js');
}
function custom_ajaxcallback($type = 'ajax') {
if($type == 'ajax') {
$output = t('Hello World!');
$command = array();
$commands[] = ajax_command_append('#sayinghello', $output);
$page = array('#type' => 'ajax', '#commands' => $commands); --> In this line
ajax_deliver($page);
}
else{
return t("Hello world in new page.");
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'anbient_local',
'username' => 'root',
'password' => 'root',
'host' => 'localhost',
fidelix@debian-vm:/www/anbient/local/docroot$ drush pm-list --no-core --status=enabled --type=module
Package Name Version
Administration Administration menu (admin_menu) 7.x-3.0-rc5
Administration Administration menu Toolbar style (admin_menu_toolbar) 7.x-3.0-rc5
Advertising Doubleclick for Publishers (dfp) 7.x-1.3
Anbient Anbient Ads (anbient_ads) 7.x-0.2
Anbient Anbient Comments (anbient_comments) 7.x-0.4
Anbient Anbient Estrutura (anbient_estrutura) 7.x-0.6
Anbient Anbient Lançamentos (anbient_lancamentos) 7.x-0.3
Anbient Anbient Migration (anbient_v3) 7.x-0.1
@fidelix
fidelix / settings.local.php
Last active January 3, 2016 05:50
Development settings file for Drupal 7
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'meusite_local',
'username' => 'root',
'password' => 'root',
'host' => 'localhost',