Install osxfuse
(3.x.x) from https://github.com/osxfuse/osxfuse/releases.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
# Instalar MySQL de los repositorios de REMI | |
yum --enablerepo=remi install mysql mysql-server -y | |
# Iniciar servicio | |
service mysqld start | |
# Iniciar servicio al iniciar el sistema | |
chkconfig mysqld on |
# Instalar Apache de los repositorios de REMI | |
yum --enablerepo=remi install httpd -y | |
# Iniciar servicio | |
service httpd start | |
# Iniciar servicio al iniciar el sistema | |
chkconfig httpd on | |
# Actualizar en base a los repositorios actuales: | |
yum update | |
# Mostrar la lista de repositorios: | |
yum repolist | |
# Descargar el paquete RPM del repositorio EPEL: | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
# Instalar el RPM |
# Crear archivo del repositorio: | |
nano /etc/yum.repos.d/webmin.repo | |
[Webmin] | |
name=Webmin Distribution Neutral | |
#baseurl=http://download.webmin.com/download/yum | |
mirrorlist=http://download.webmin.com/download/yum/mirrorlist | |
enabled=1 | |
# Descargar e instalar la llave GPG: | |
wget http://www.webmin.com/jcameron-key.asc |
<?php | |
class ActivitiesLogicHookCustom{ | |
public function notifyActivity($bean, $event, $arguments){ | |
if($bean->module_name == 'Activities'){ | |
global $current_user; | |
$data = json_decode($bean->data); | |
$message = preg_replace('/(\@)\[\w+\:[a-f0-9-]{36}\:([\w ]+)\]/u', '$1$2', $data->value); | |
foreach($data->tags as $tag){ | |
if($tag->module == 'Users'){ | |
$notification = BeanFactory::newBean('Notifications'); |
[global] | |
# TDS protocol version | |
tds version = 7.0 | |
client charset = UTF-8 |
import React, {AppRegistry, Text, View, Dimensions, ScrollView, Image} from 'react-native' | |
const window = Dimensions.get('window') | |
const imageDimensions = { | |
height: window.height, | |
width: window.width | |
} | |
var SampleApp = React.createClass({ | |
render: function () { |
server { | |
listen 8090; | |
server_name sugarcrmdev-71.dontesta.local; | |
#charset koi8-r; | |
access_log /var/log/nginx/sugarcrmdev-71.dontesta.local.access.log main; | |
error_log /var/log/nginx/sugarcrmdev-71.dontesta.local.error.log; | |
root /home/sugarcrm/application; | |
index index.php index.html; |
//Validation | |
jQuery.validator.addMethod('validIP', function(value) { | |
var split = value.split('.'); | |
if (split.length != 4) | |
return false; | |
for (var i=0; i<split.length; i++) { | |
var s = split[i]; | |
if (s.length==0 || isNaN(s) || s<0 || s>255) | |
return false; |
osxfuse
(3.x.x) from https://github.com/osxfuse/osxfuse/releases.ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update