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
$.ajax({ | |
type: "POST", | |
url: "/NewEmail", | |
data: { username: username } | |
}).done(function(data){ | |
if(data.success == false){ | |
var errores = ''; | |
for(datos in data.errors){ | |
errores += '<small >' + data.errors[datos] + '</small>'; | |
} |
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
yum install nano -y; yum update -y; yum upgrade -y; yum install tigervnc-server -y; yum groupinstall "Desktop" -y; yum install firefox -y; rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm; rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux; yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl -y; echo 'echo "nameserver 8.8.8.8" >> /etc/resolv.conf; ' >> /etc/rc.local; echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/sysconfig/vncservers; vncpasswd; chkconfig vncserver on --level 345; reboot; |
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
var query = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=76456&format=json" | |
url = query; | |
$.getJSON(url, function(data) { | |
console.log( data ); | |
}); |
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
public function index() | |
{ | |
$client = new Client(); | |
// Login page | |
$crawler = $client->request('GET', 'https://email.linc.do/iredadmin/login'); | |
$form = $crawler->selectButton('Login')->form(); | |
$crawler = $client->submit($form, array('username' => '[email protected]', 'password' => '*****')); |
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
<VirtualHost *:80> | |
DocumentRoot /var/www/linc/public | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
ProxyRequests Off | |
<proxy *> | |
Order deny,allow | |
Allow from all | |
</proxy> | |
ProxyPreserveHost On |
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
<img onclick="jQuery('#file').click()" id="imageUpload" src="uploads/images/flyer_picture/{{$fly->detail}}" style="width:200px;height:200px;"/> | |
<input type="file" id="file" name="pic" style="display: none;"/> | |
<script> | |
//------------------------------------------- | |
//Subir imagen | |
$("#file").change(function(){ | |
readURL(this); | |
var inputFileImage = document.getElementById("file"); | |
var file = inputFileImage.files[0]; |
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
sudo yum install wget | |
wget http://chrome.richardlloyd.org.uk/install_chrome.sh | |
chmod u+x install_chrome.sh | |
./install_chrome.sh | |
execute "Please start Google Chrome as a normal user." | |
Open /opt/google/chrome folder | |
open google-chrome file or vi google-chrome | |
exec -a "$0" "$HERE/chrome" "$@" |
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 | |
/* connect to gmail */ | |
$hostname = '{email.linc.do:993/imap/ssl/novalidate-cert}INBOX'; | |
$username = '[email protected]'; | |
$password = '593musica'; | |
/* try to connect */ | |
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Linc: ' . imap_last_error()); | |
/* grab emails */ |
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
curl -s https://getcomposer.org/installer | php -- --quiet --install-dir=$OPENSHIFT_DATA_DIR | |
php $OPENSHIFT_DATA_DIR/composer.phar update | |
ln -s public php |
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 | |
/* | |
PHP Library - Social Security Number-related functions | |
Copyright (c) 2009, reusablecode.blogspot.com; some rights reserved. | |
This work is licensed under the Creative Commons Attribution License. To view | |
a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or | |
send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California | |
94305, USA. |
OlderNewer