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
import socket | |
import struct | |
def ip2long(ip): | |
packedIP = socket.inet_aton(ip) | |
return struct.unpack("!I", packedIP)[0] | |
# Handshake | |
message = struct.pack('!qii', 0x41727101980, 0, 1) | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # UDP |
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
#!/usr/bin/env python | |
import sys | |
import time | |
import psutil | |
import subprocess | |
wan_interface = subprocess.check_output([ | |
'/bin/bash', | |
'-c', | |
'ifconfig | grep $(host $(hostname) | cut -d \ -f 4) -B1 | ' |
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
[ 2280.900050] INFO: task hpacucli.real:4583 blocked for more than 120 seconds. | |
[ 2280.915408] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. | |
[ 2280.945460] hpacucli.real D ffffffff81806240 0 4583 4582 0x00000000 | |
[ 2280.945465] ffff8803e0821a78 0000000000000082 ffffc9000100c000 fbde0f7c4c552c03 | |
[ 2280.945470] ffff8803e0821fd8 ffff8803e0821fd8 ffff8803e0821fd8 00000000000137c0 | |
[ 2280.945474] ffff8804055d1700 ffff8803f6b68000 ffffffffa0017d40 ffffffffa0017d40 | |
[ 2280.945478] Call Trace: | |
[ 2280.945492] [<ffffffff8165b0cf>] schedule+0x3f/0x60 | |
[ 2280.945496] [<ffffffff8165bed7>] __mutex_lock_slowpath+0xd7/0x150 | |
[ 2280.945500] [<ffffffff8165baea>] mutex_lock+0x2a/0x50 |
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
(define null ()) | |
(define range | |
(lambda (x) | |
(cond | |
((= x 0) (cons 0 null)) | |
(else | |
(cons x (range (- x 1))))))) | |
(define sum |
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
==> Starting build()... | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p | |
checking for gawk... gawk | |
checking whether make sets $(MAKE)... yes | |
checking how to create a pax tar archive... gnutar | |
checking whether to enable maintainer-specific portions of Makefiles... yes | |
checking whether make supports nested variables... yes | |
checking for gcc... gcc |
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
guessed 97 correct! it took 5 tries | |
held 98 | |
guessed 50 but bigger | |
guessed 75 but bigger | |
guessed 88 but bigger | |
guessed 94 but bigger | |
guessed 97 but bigger | |
guessed 99 but smaller | |
guessed 98 correct! it took 7 tries | |
held 99 |
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
[ 2] dev3 13052.038 13048.628 3.409 99.97% writeable N/A | |
[ 2] dev4 13052.038 12726.104 325.933 97.50% writeable N/A | |
[ 3] dev5 13049.822 13021.408 28.415 99.78% writeable N/A | |
[ 3] dev6 13049.822 12961.975 87.847 99.33% writeable N/A | |
[ 5] dev9 13922.273 13856.667 65.605 99.53% writeable 22.0 | |
[ 5] dev10 13922.272 13703.735 218.536 98.43% writeable 22.0 | |
[ 5] dev11 10441.492 10441.413 0.079 100.00% writeable 22.0 | |
[ 6] dev12 13922.273 13897.781 24.491 99.82% writeable 41.0 | |
[ 6] dev13 13922.272 13922.182 0.090 100.00% writeable 41.0 | |
[ 6] dev14 12181.767 12181.671 0.097 100.00% writeable 41.0 |
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
$(function(){ | |
document.price_event_sent = false; | |
$(document).scroll(function(e){ | |
top_offset = $('#trial').offset().top + $('#trial').height(); | |
bottom_offset = $(document).scrollTop() + $(window).height(); | |
if(!document.price_event_sent && (top_offset < bottom_offset)) { | |
// _gaq.push(['_trackPageview', 'mainpage-prices']); | |
document.price_event_sent = true; | |
console.log('OLDU'); | |
} |
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
root pts/0 192.168.0.135 Thu Feb 28 13:15:18 2013 still logged in | |
reboot system boot 3.2.0-38-generic Thu Feb 28 01:55:58 2013 - Thu Feb 28 13:17:36 2013 (11:21) | |
root tty1 Thu Feb 28 00:20:54 2013 - down (01:21) | |
root tty1 Thu Feb 28 00:20:54 2013 - Thu Feb 28 00:20:54 2013 (00:00) | |
reboot system boot 3.2.0-38-generic Wed Feb 27 18:29:44 2013 - Thu Feb 28 01:42:48 2013 (07:13) | |
reboot system boot 3.2.0-38-generic Wed Feb 27 16:52:05 2013 - Thu Feb 28 01:42:48 2013 (08:50) | |
root tty1 Wed Feb 27 14:52:32 2013 - crash (01:59) | |
root tty1 Wed Feb 27 14:52:32 2013 - Wed Feb 27 14:52:32 2013 (00:00) | |
root pts/0 192.168.0.135 Wed Feb 27 14:47:16 2013 - Wed Feb 27 15:07:54 2013 (00:20) | |
reboot system boot 3.2.0-38-generic Tue Feb 26 23:27:57 2013 - Thu Feb 28 01:42:48 20 |
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
Rsync i ssh la yada daemon iyla calistirmak arasindaki fark. | |
Test s01, s02, s03, s05, s06 dan ayni anda s07 ye dosya yollanarak yapildi. | |
---------- SSH LA KULLANINCA ---------- | |
***Alan taraf disk | |
avg-cpu: %user %nice %system %iowait %steal %idle | |
40.61 0.00 20.31 2.28 0.00 36.80 | |
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util |