This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<script src="http://www.youtube.com/iframe_api"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js"></script> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> |
This file contains 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
$('.btn-evento a').click(function(event) { | |
event.preventDefault(); | |
$.ajax(this.href, { | |
dataType: 'html', | |
success: function(data) { | |
$('.galeriazoeira').html(data); | |
//$('.galeriazoeira').text('The page has been successfully loaded'); | |
}, | |
error: function() { |
This file contains 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
@font-face { | |
font-family: 'Open Sans'; | |
font-style: italic; | |
font-weight: 400; | |
src: local('Open Sans Italic'), | |
local('OpenSans-Italic'), | |
url(http://fonts.gstatic.com/s/opensans/v13/xjAJXh38I15wypJXxuGMBjTOQ_MqJVwkKsUn0wKzc2I.woff2) format('woff2'); | |
} | |
@font-face { | |
font-family: 'Open Sans'; |
This file contains 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
####################################################################### | |
# OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+ # | |
# For more information please visit http://oneinstack.com # | |
####################################################################### | |
Do you want to setup SSL under Nginx? [y/n]: n | |
Please input domain(example: www.linuxeye.com): talles.org | |
domain=talles.org |
This file contains 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
204.15.20.0/22 | |
69.63.176.0/20 | |
66.220.144.0/20 | |
66.220.144.0/21 | |
69.63.184.0/21 | |
69.63.176.0/21 | |
74.119.76.0/22 | |
69.171.255.0/24 | |
173.252.64.0/18 | |
69.171.224.0/19 |
This file contains 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
find / -name .DS_Store -print0 | xargs -0 rm -rf |
This file contains 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 everything was installed via the yum package manager, you can undo previous commands: | |
# Get all yum commands previously run | |
yum history list all | |
# Get the details of the command | |
yum history info [entry number] | |
# Undo each command top-down | |
yum history undo [entry number] |
This file contains 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 | |
class Login{ | |
static function authenticate($user, $pass){ | |
$shad = preg_split("/[$:]/",`cat /etc/shadow | grep "^$user\:"`); | |
$mkps = preg_split("/[$:]/",trim(`mkpasswd -m sha-512 $pass $shad[3]`)); | |
return ($shad[4] == $mkps[3]); | |
} | |
public function handleAuth($user,$pass){ | |
return $this->authenticate($user,$pass); |
This file contains 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
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://sitetocopy.com |
This file contains 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
$(function() { | |
// for bootstrap 3 use 'shown.bs.tab', for bootstrap 2 use 'shown' in the next line | |
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { | |
// save the latest tab; use cookies if you like 'em better: | |
localStorage.setItem('lastTab', $(this).attr('href')); | |
}); | |
// go to the latest tab, if it exists: | |
var lastTab = localStorage.getItem('lastTab'); | |
if (lastTab) { |
OlderNewer