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
| <ifModule mod_headers.c> | |
| #Header unset X-Frame-Options | |
| Header set X-Frame-Options ALLOW-FROM https://www.youtube.com/ | |
| </ifModule> |
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
| int motorpin1 = 7;//dijital pin | |
| int motorpin2 = 8;//dijital pin | |
| int hizpin = 9;//pwm pin | |
| int potpin = A0;//analog pin | |
| void setup() { | |
| pinMode(motorpin1, OUTPUT); | |
| pinMode(motorpin2, OUTPUT); | |
| pinMode(hizpin, OUTPUT); | |
| } | |
| void ileri(int hiz) { |
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 | |
| echo php_ini_loaded_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
| class STR | |
| { | |
| private static $tr_lo = array("ı", "ğ", "ü", "ş", "i", "ö", "ç"); | |
| private static $tr_up = array("I", "Ğ", "Ü", "Ş", "İ", "Ö", "Ç"); | |
| public static function strtolower($str, $encoding = "UTF-8") | |
| { | |
| return mb_convert_case(str_replace(self::$tr_up, self::$tr_lo, $str), MB_CASE_LOWER, $encoding); | |
| } |
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 | |
| 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, |
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 = 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 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 | |
| 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 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 | |
| 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 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 | |
| $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 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
| #!/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="[email protected]" |