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
find . -maxdepth 3 -name "*.mp4" -print0 | xargs -I '{}' -r0 mv '{}' ../videolar_new/ |
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
find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' |
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 | |
/* | |
$ip = '208.86.158.195'; | |
foreach ( array('8.8.8.8', '156.154.70.1', '208.67.222.222', '156.154.70.1', '209.244.0.4', '216.146.35.35') as $dns) { | |
echo gethostbyaddr_timeout( $ip, $dns, 1 ); | |
} | |
*/ | |
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
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user |
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
Değerli arkadaşım, | |
Böyle jquery backbone underscore ile uçup kaçabilecek; html5 ve css3 ile taklalar attırabilecek; | |
üstelik PHP'yi master ile bitirebilecek insan evladı olduğunu biliyorum. | |
Bunlar üzerine sayacağın tüm özelliklerin bizim için bonus olacak. | |
SOA'yı, WSDL'ı, HMVC'yi, JSON'ı, Bowling'i, birlikte gezip tozmayı, ekip içinde sunum yapabilmeyi, | |
denileni vaktinde yapmayı, git pull, git push, git commit -m 'hebele' yi zaten bildiğini var sayıyorum. | |
Ve görüşme sırasında bu konulardan söz açtığımızda Beşiktaş tirübünündeki gibi | |
heyecanla bize cevap verebileceksin buna eminim. |
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
# Taşınacak depo | |
$ git log --pretty=email --patch-with-stat --reverse -- src/etc/vim/ > vim.patch | |
# Yeni depo | |
$ git init | |
$ git am < vim.patch | |
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
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl |
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 data_uri($file, $mime) { | |
$contents=file_get_contents($file); | |
$base64=base64_encode($contents); | |
echo "data:$mime;base64,$base64"; | |
} |
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
trait JSONized { | |
public function toJson() | |
{ | |
$properties = get_object_vars($this); | |
return json_encode($properties); | |
} | |
} |
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
<img src="blank.gif" class="lazy" data-src="/images/full-size.jpg" width="240" height="152"></a> | |
/* lazyload.js (c) Lorenzo Giuliani | |
* MIT License (http://www.opensource.org/licenses/mit-license.html) | |
* | |
* expects a list of: | |
* `<img src="blank.gif" data-src="my_image.png" width="600" height="400" class="lazy">` | |
*/ | |
!function(window){ | |
var $q = function(q, res){ |