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
| #define SECTOR_SIZE 512 | |
| #define EXT4_SUPERBLOCK_OFFSET 1024 | |
| struct ext4_superblock | |
| { | |
| uint32_t s_inodes_count; | |
| uint32_t s_blocks_count_lo; | |
| uint32_t s_r_blocks_count_lo; | |
| uint32_t s_free_blocks_count_lo; | |
| uint32_t s_free_inodes_count; |
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
| 13:45:06.096992 IP clamav-du.viaverio.com.http > mueller.43412: Flags [P.], seq 18349422:18350374, ack 143, win 33304, options [nop,nop,TS val 1092767572 ecr 126307304], length 952 | |
| 13:45:06.097000 IP mueller.43412 > clamav-du.viaverio.com.http: Flags [.], ack 18350374, win 661, options [nop,nop,TS val 126307325 ecr 1092767572], length 0 | |
| 13:45:06.179816 IP clamav-du.viaverio.com.http > mueller.43412: Flags [.], seq 18350374:18353270, ack 143, win 33304, options [nop,nop,TS val 1092767653 ecr 126307325], length 2896 | |
| 13:45:06.179863 IP mueller.43412 > clamav-du.viaverio.com.http: Flags [.], ack 18353270, win 651, options [nop,nop,TS val 126307345 ecr 1092767653], length 0 | |
| 13:45:06.179940 IP clamav-du.viaverio.com.http > mueller.43412: Flags [.], seq 18353270:18354718, ack 143, win 33304, options [nop,nop,TS val 1092767653 ecr 126307325], length 1448 | |
| 13:45:06.180156 IP clamav-du.viaverio.com.http > mueller.43412: Flags [.], seq 18354718:18356166, ack 143, win 33304, options [nop,nop,TS val 1092767653 ecr 12630732 |
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
| wolf@gs9671 /home/wolf/logger/mueller : cat guest_command.stdout.sw_install.2012-10-16.03:11:58.log | |
| Warning: Permanently added '[localhost]:2222' (ECDSA) to the list of known hosts. | |
| Reading package lists... | |
| Building dependency tree... | |
| Reading state information... | |
| The following packages were automatically installed and are no longer required: | |
| linux-headers-3.2.0-23-generic linux-headers-3.2.0-23 | |
| Use 'apt-get autoremove' to remove them. | |
| The following extra packages will be installed: | |
| apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common aspell |
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 | |
| function test | |
| { | |
| return 10 | |
| } | |
| test | |
| /usr/bin/printf '%d\n' $? |
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
| wolf@gs9671 /home/wolf/VM/vm_ext4_test : file /bin/ls | |
| /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x214a38d0db472db559f0dabf0ae97f82fea83e03, stripped |
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
| wolf@gs9671 /home/wolf/VM/vm_ext4_test : readelf /bin/ls -a | |
| ELF Header: | |
| Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 | |
| Class: ELF64 | |
| Data: 2's complement, little endian | |
| Version: 1 (current) | |
| OS/ABI: UNIX - System V | |
| ABI Version: 0 | |
| Type: EXEC (Executable file) | |
| Machine: Advanced Micro Devices X86-64 |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| int static_puzzle() | |
| { | |
| static int i = 0; | |
| for (; i < 10; i++) | |
| { | |
| return i; |
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
| diff --git a/filters/ocv_face/fil_ocv.c b/filters/ocv_face/fil_ocv.c | |
| index ac31903..1662986 100644 | |
| --- a/filters/ocv_face/fil_ocv.c | |
| +++ b/filters/ocv_face/fil_ocv.c | |
| @@ -25,7 +25,9 @@ | |
| #include <unistd.h> | |
| #include "lib_ocvimage.h" | |
| -#include <opencv/cvaux.h> | |
| +#include <opencv/cv.h> |
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
| def sieve_of_erastosthenes(till): | |
| primelist = [True]*(till+1) | |
| primelist[0] = primelist[1] = False | |
| nextprime = (i for i,v in enumerate(primelist) if v) | |
| while (True): | |
| try: | |
| prime = nextprime.next() | |
| except StopIteration: | |
| return primelist |
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 python | |
| import sys | |
| def sieve_of_erastothenes(till): | |
| primelist = [True]*(till+1) | |
| primelist[0] = primelist[1] = False | |
| nextprime = (i for i,v in enumerate(primelist) if v) | |
| while (True): |