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
DELETE FROM punbb_posts WHERE id >= 8571 AND id <= 139109; | |
DELETE FROM punbb_posts WHERE id between 8571 and 139109; |
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
echo 1 > /proc/sys/net/ipv4/ip_forward | |
iptables -F INPUT | |
iptables -F OUTPUT | |
iptables -F FORWARD | |
iptables -F -t nat | |
iptables -P INPUT ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD ACCEPT |
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
Tested with OpenSuse 11.3 | |
Before cloning, you will need to change some hdd stuff in fstab & menu.lst. Let's begin: | |
1) Start the vm to clone and login as root. | |
2) Get the info from your partitions: | |
opensuse11:~ # fdisk -l |
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 | |
include_once("Trigonometry.php"); | |
header("Content-type: image/png"); | |
function graphTrig() | |
{ | |
$trig = new Trigonometry(); | |
$setgraph = $trig->setGraph("cos"); |
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 -O - 'http://www.elektroda.pl/' | \ | |
grep -o '<img src=['"'"'"][^"'"'"']*['"'"'"]' | \ | |
sed -e 's/^<img src=['"'"'"]//' -e 's/["'"'"']$//' | |
wget -O - http://stackoverflow.com | \ | |
grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | \ | |
sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//' |
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
#nano /etc/init.d/php-fastcgi | |
#usage: /etc/init.d/php-fastcgi start | |
(( EUID )) && echo "You need to have root priviliges." && exit 1 | |
BIND=127.0.0.1:9000 | |
USER=www-data | |
PHP_FCGI_CHILDREN=15 | |
PHP_FCGI_MAX_REQUESTS=1000 | |
PHP_CGI=/usr/bin/php-cgi |
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
<!-- demo http://jsfiddle.net/jy47X/1/ --> | |
<style> | |
a, div:hover span { display: none; } | |
div:hover a { display: block; } | |
</style> | |
<div> | |
<span>tralala</span> | |
<a href="">tradfdlala</a> | |
</div> |
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
//Paste into url bar: | |
javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no saved passwords in forms on this page.");})(); |
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 | |
function url_slug($str, $options = array()) { | |
// Make sure string is in UTF-8 and strip invalid UTF-8 characters | |
$str = mb_convert_encoding((string)$str, 'UTF-8', mb_list_encodings()); | |
$defaults = array( | |
'delimiter' => '-', | |
'limit' => null, | |
'lowercase' => false, | |
'replacements' => array(), |
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
Use this form to generate your encrypted htaccess password. | |
<form method="post" action=""> | |
<p><input type="text" name="login" placeholder="Login" /></p> | |
<p><input type="text" name="password" placeholder="Password" /></p> | |
<p><input type="submit" value="Get" /></p> | |
</form> | |
<?PHP | |
// demo: http://tmp.itunix.eu/aLog.php |