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
#Get sudo user | |
sudo -s | |
#List iptables | |
iptables -L -n | |
#Remove the desired ip | |
iptables -D fail2ban-ssh -s banned_ip -j DROP |
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
function($) { | |
// Execute when page is loaded | |
$(function() { | |
}); | |
})(jQuery); |
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 -i | grep 'Configuration File' |
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
#NGINX | |
ln -s /etc/nginx/sites-available/myapp /etc/nginx/sites-enabled/myapp | |
#APACHE | |
ln -s /etc/apache2/sites-available/myapp /etc/apache2/sites-enabled/myapp |
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
$credentials = array('username' => $_SERVER['PHP_AUTH_PW'], 'password' => $_SERVER['PHP_AUTH_PW']); | |
if (Auth::attempt($credentials)) | |
{ | |
return Redirect::to('user/profile'); | |
} |
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
rsync -av src/ user@server:dest/ |
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
$(".scroll").click(function(event){ | |
event.preventDefault(); | |
$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500); | |
}); |
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
ul.polaroids a { | |
background: white; | |
display: inline; | |
float: left; | |
margin: 0 0 27px 30px; | |
width: auto; | |
padding: 10px 10px 15px; | |
text-align: center; | |
font-family: "Marker Felt", sans-serif; | |
text-decoration: none; |
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
window.onbeforeunload = confirmExit; | |
function confirmExit() | |
{ | |
if (needToConfirm) | |
{ | |
// check to see if any changes to the data entry fields have been made | |
for (var i = 0; i < values.length; i++) | |
{ | |
var elem = document.getElementById(ids[i]); | |
if (elem) |
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
#centeredmenu { | |
float:left; | |
width:100%; | |
overflow:hidden; | |
position:relative; | |
} | |
#centeredmenu ul { | |
clear:left; | |
float:left; | |
list-style:none; |