Skip to content

Instantly share code, notes, and snippets.

@juffee
juffee / wpjsalert
Created July 18, 2018 15:08
wpjsalert
?><script>alert("<?php echo $var; ?>");</script> <?php
@juffee
juffee / settings.json
Created January 2, 2014 17:34
transmission settings
{
"alt-speed-down": 400,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
@juffee
juffee / config.yml
Created January 1, 2014 18:23
config.yml
presets:
tvshows:
exists_series:
- /home/xbian/TV Shows/
- /home/xbian/Downloads/
regexp:
reject:
- FASTSUB
- VOSTFR
- Subtitulado
@juffee
juffee / getIpAddress
Created March 12, 2013 06:29
Simple get ip address in php.
function getIpAddress()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
<?php
/**
REFERENCE:
http://planetozh.com/blog/my-projects/honey-pot-httpbl-simple-php-script/
https://www.projecthoneypot.org/
**/
function checkIfCleanIp($ipToCheck, $apikey){
// Project Honeypot