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
daniel@Havoc:/$ sudo !! | |
sudo du -h -d 1 | |
4.0K ./dev | |
0 ./sys | |
4.0K ./lib64 | |
4.0K ./srv | |
2.0G ./home | |
1.7G ./usr | |
491M ./lib | |
12K ./tmp |
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
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE | |
1 Raw_Read_Error_Rate 0x000f 200 200 051 Pre-fail Always - 0 | |
3 Spin_Up_Time 0x0003 186 185 021 Pre-fail Always - 1658 | |
4 Start_Stop_Count 0x0032 098 098 000 Old_age Always - 2705 | |
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 | |
7 Seek_Error_Rate 0x000e 200 200 051 Old_age Always - 0 | |
9 Power_On_Hours 0x0032 089 089 000 Old_age Always - 8108 | |
10 Spin_Retry_Count 0x0012 100 100 051 Old_age Always - 0 | |
11 Calibration_Retry_Count 0x0012 100 100 051 Old_age Always - 0 | |
12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 2485 |
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
// generate an RSA key pair asynchronously (uses web workers if available) | |
// use workers: -1 to run a fast core estimator to optimize # of workers | |
rsa.generateKeyPair({bits: 2048, workers: 2}, function(err, keypair) { | |
// keypair.privateKey, keypair.publicKey | |
}); |
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
while( readingFile == 1 ){ | |
fread(&holdByte1, sizeof(holdByte1), 1, fp); | |
if( holdByte1 == 0 ){ | |
fread(&holdByte2, sizeof(holdByte2), 1, fp); | |
if( holdByte2 == 0 ){ | |
linecount++; | |
}else if( holdByte2 == 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
for( y = 0; y < correctedWidth; y++){ | |
for( x = 0; x < image->Height; x++){ | |
if( y < image->Width){ | |
fread(&pixel.red, sizeof(pixel.red), 1, fp); | |
fread(&pixel.green, sizeof(pixel.green), 1, fp); | |
fread(&pixel.blue, sizeof(pixel.blue), 1, fp); | |
tempVal = 0.3*pixel.red+0.59*pixel.green+0.11*pixel.blue; | |
image->Pixels[x+y*correctedWidth] = (BYTE)tempVal; | |
}else{ | |
fgetpos (fp, &position); |
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 main(){ | |
int i; | |
int MAX = 5; | |
IMAGE img; | |
bmp_open("example24.bmp" ,&img); | |
for( i = 0; i < MAX; i ++){ | |
applyFilterSimple(&img); | |
} | |
printf("Filter Applied\n"); | |
bmp_save("8_example24.bmp", &img); |