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
import requests | |
URL = 'http://speedtest-sfo1.digitalocean.com/10mb.test' | |
headers = {'User-Agent': '-.-'} | |
resp = requests.get(URL, headers=headers, stream=True) | |
totalsize = int(resp.headers.get('content-length', '0')) | |
with open('10mb.test', 'wb') as f: | |
downsize = 0 |
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
public class MultiTable { | |
public static void printMulti(int row, int col) { | |
if (row == 0 && col == 0) | |
System.out.printf(" * "); | |
else if (col == 0) | |
System.out.printf("%4d ", row); | |
else if (row == 0) | |
System.out.printf("%4d ", col); | |
else |
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
vm.panic_on_oom=1 | |
kernel.panic=10 | |
# protect against tcp time-wait assassination hazards | |
net.ipv4.tcp_rfc1337 = 1 | |
net.ipv4.conf.all.accept_redirects = 0 | |
net.ipv4.ip_forward = 1 | |
net.ipv4.tcp_fastopen = 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
; <<>> DiG 9.10.3-P4 <<>> +trace google-analytics.com | |
;; global options: +cmd | |
. 510265 IN NS i.root-servers.net. | |
. 510265 IN NS k.root-servers.net. | |
. 510265 IN NS a.root-servers.net. | |
. 510265 IN NS j.root-servers.net. | |
. 510265 IN NS d.root-servers.net. | |
. 510265 IN NS e.root-servers.net. | |
. 510265 IN NS m.root-servers.net. |
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
; <<>> DiG 9.10.3-P4 <<>> +trace gmail-smtp-in.l.google.com | |
;; global options: +cmd | |
. 3600000 IN NS L.ROOT-SERVERS.NET. | |
. 3600000 IN NS B.ROOT-SERVERS.NET. | |
. 3600000 IN NS I.ROOT-SERVERS.NET. | |
. 3600000 IN NS J.ROOT-SERVERS.NET. | |
. 3600000 IN NS M.ROOT-SERVERS.NET. | |
. 3600000 IN NS F.ROOT-SERVERS.NET. | |
. 3600000 IN NS E.ROOT-SERVERS.NET. |
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
SMART Attributes Data Structure revision number: 16 | |
Vendor Specific SMART Attributes with Thresholds: | |
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE | |
1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail Always - 0 | |
2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline - 0 | |
3 Spin_Up_Time 0x0007 253 253 033 Pre-fail Always - 1 | |
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 34 | |
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0 | |
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0 | |
8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline - 0 |
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
import java.util.Arrays; | |
public class Board implements Comparable<Board> { | |
public static final byte BLANK = -1; | |
private byte[] numbers; | |
private Board father; | |
private int totalMovement; | |
private int heuristicCost; |
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
#!/usr/bin/env python3 | |
import sys | |
from videoseeker import VideoSeeker | |
def main(): | |
seeker = VideoSeeker(sys.argv[1]) | |
for i in range(100): | |
seeker.seek() |
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
smartctl 6.4 2015-06-04 r4109 [armv7l-linux-4.3.3-1-ARCH] (local build) | |
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org | |
=== START OF INFORMATION SECTION === | |
Model Family: HGST Travelstar 5K1000 | |
Device Model: HGST HTS541010A9E680 | |
Serial Number: | |
LU WWN Device Id: | |
Firmware Version: JA0OA560 | |
User Capacity: 1,000,204,886,016 bytes [1.00 TB] |
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
Benchmark Run: Tue Jan 05 2016 01:12:34 - 01:40:49 | |
4 CPUs in system; running 1 parallel copy of tests | |
Dhrystone 2 using register variables 3468309.2 lps (10.0 s, 7 samples) | |
Double-Precision Whetstone 553.8 MWIPS (9.5 s, 7 samples) | |
Execl Throughput 419.2 lps (29.8 s, 2 samples) | |
File Copy 1024 bufsize 2000 maxblocks 34813.9 KBps (30.0 s, 2 samples) | |
File Copy 256 bufsize 500 maxblocks 9742.4 KBps (30.0 s, 2 samples) | |
File Copy 4096 bufsize 8000 maxblocks 111673.9 KBps (30.0 s, 2 samples) | |
Pipe Throughput 230619.6 lps (10.0 s, 7 samples) |