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> | |
<style>div { margin:3px; width:40px; height:40px; | |
position:absolute; left:0px; top:30px; | |
background:green; display:none; } | |
div.newcolor { background:blue; } | |
span { color:red; } </style> | |
<script src="/scripts/jquery-1.4.js"></script> | |
</head> |
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
Aklınızı Rahata Erdirecek 50 Soru | |
1. Kaç yaşında olduğunuzu bilmeseniz kaç yaşında olurdunuz? | |
2. Başarısızlığa uğramak mı hiç denememek mi daha kötüdür? | |
3. Hayat o kadar kısaysa neden sevmediğimiz o kadar şeyi yapıyor ve yapmadığımız o kadar şeyi seviyoruz? | |
4. Her şey yapılıp söylendiğinde söyledikleriniz yaptıklarınızdan daha mı fazladır? |
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 | |
$ip_adresleri = array( | |
"2607:f0d0:1002:51::4", | |
"2607:f0d0:1002:0051:0000:0000:0000:0004", | |
"212.20.19.10", | |
"212.0.1", | |
"212.a.b.112" | |
) ; | |
foreach($ip_adresleri as $ip_adresi) | |
{ |
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
#!/bin/bash | |
sunucu="SERVER4" | |
eposta="admin@vizyon.net.tr" | |
uyari=12000 | |
restart=15000 | |
toplam=0 | |
for val in $(ps -C httpd -o vsz=) | |
do |
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
#!/bin/bash | |
# httpd.load.sh | |
# Script to check the 1-minute server load and sends a mail. | |
# script must be run as root; we run it from crontab every five minutes | |
# Copyright (C) NoBaloney Internet Services | |
# Licensed under GNU General Public License, Version 2 | |
# Required Customizations: | |
SERVER_NAME="SERVER4" | |
EMAIL_ADDRESS="admin@vizyon.net.tr" |
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 | |
$xml = json_decode(json_encode((array) simplexml_load_file("https://api.twitter.com/1/followers/ids.xml?screen_name=BerkayGmstkn")), 1); | |
$takipciler = $xml['ids']['id']; | |
$xml = json_decode(json_encode((array) simplexml_load_file("https://api.twitter.com/1/following/ids.xml?screen_name=BerkayGmstkn")), 1); | |
$takip_edilenler=$xml['ids']['id']; | |
var_export(array_diff($takipciler,$takip_edilenler)); |
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 resize($resim, $max_en, $max_boy) | |
{ | |
$boyut = getimagesize($resim); | |
$en = $boyut[0]; | |
$boy = $boyut[1]; | |
$x_oran = $max_en / $en; | |
$y_oran = $max_boy / $boy; |
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 array_pattern($array,$pattern) | |
{ | |
$return = array(); | |
foreach($array as $key => $value) | |
{ | |
$ret = sscanf($key, $pattern); | |
$pass = true; | |
foreach($ret as $val) |
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 | |
$i = isset($_GET['f']) ? $_GET['f'] : "";//$yok; | |
$x = isset($_GET['w']) ? intval($_GET['w']) : 100; | |
$y = isset($_GET['h']) ? intval($_GET['h']) : 0; | |
$noimage = false; | |
if (is_file($i)) | |
{ | |
list($w, $h, $t) = getimagesize($i); | |
if (in_array($t, array(1, 2, 3))) { |
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 encrypt($plaintext,$plainkey){ | |
$key = pack('H*', "$plainkey"); | |
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); | |
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); | |
$plaintext_utf8 = utf8_encode($plaintext); | |
$ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, |
OlderNewer