Mon Mar 24 20:31:48 IST 2014 real 0m0.003s user 0m0.000s sys 0m0.000s real 0m0.003s user 0m0.000s sys 0m0.000s real 0m0.003s user 0m0.000s sys 0m0.000s real 0m0.003s user 0m0.000s sys 0m0.000s real 0m0.003s user 0m0.000s sys 0m0.000s
Author Archives: jeffrin
BUBBLE SORTING USING C CODE
/* bubblesort ported to c by Jeffrin Jose T <ahiliation@yahoo.co.in> from bubble.php by detour@metalshell.com License : GPL. */ #include<stdio.h> #include<stdlib.h> main() { int array_size=400; int ran[1000]; int x,y,hold; for(x = 0; x < array_size; x++) ran[x]= rand(); for(x = 0; x < array_size; x++) { for(y = 0; y < array_size; y++) { if(ran[x] < …
Bubble Sort Using C with array size 300
Sun Mar 23 21:34:32 IST 2014 real 0m0.002s user 0m0.000s sys 0m0.000s real 0m0.002s user 0m0.000s sys 0m0.000s real 0m0.001s user 0m0.000s sys 0m0.000s real 0m0.002s user 0m0.000s sys 0m0.000s real 0m0.002s user 0m0.000s sys 0m0.000s
How to know the command or function for a particular task ?
commandline session $man -k sort alphasort (3) – scan a directory for matching entries apt-sortpkgs (1) – Utility to sort package index files bsearch (3) – binary search of a sorted array bunzip2 (1) – a block-sorting file compressor, v1.0.6 bzip2 (1) – a block-sorting file compressor, v1.0.6 comm (1) – compare two sorted files …
Continue reading “How to know the command or function for a particular task ?”
Testing Mail Servers with OpenSSL
commandline session $ openssl s_client -connect pop.mail.yahoo.co.in:995 CONNECTED(00000003) depth=1 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert High Assurance CA-3 verify error:num=20:unable to get local issuer certificate verify return:0 — Certificate chain 0 s:/C=US/ST=CA/L=Sunnyvale/O=Yahoo! Inc./CN=legacy.pop.mail.yahoo.com i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3 i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance …
geoiplookup – look up country using IP Address or hostname
commandline session $nslookup beautifulwork.org Server: 192.168.0.1 Address: 192.168.0.1#53 Non-authoritative answer: Name: beautifulwork.org Address: 80.79.116.205 $geoiplookup 80.79.116.205 GeoIP Country Edition: EE, Estonia $nslookup www.trueangle.org Server: 192.168.0.1 Address: 192.168.0.1#53 Non-authoritative answer: www.trueangle.org canonical name = trueangle.org. Name: trueangle.org Address: 80.79.116.205 $nslookup www.gnu.org Server: 192.168.0.1 Address: 192.168.0.1#53 Non-authoritative answer: www.gnu.org canonical name = wildebeest.gnu.org. Name: wildebeest.gnu.org Address: 208.118.235.148 …
Continue reading “geoiplookup – look up country using IP Address or hostname”
New American Bible – Mark 16:18
They will pick up serpents [with their hands], and if they drink any deadly thing, it will not harm them. They will lay hands on the sick, and they will recover.”
tshark – Dump and analyze network traffic
ABOUT tshark TShark is a command-line network traffic analyzer that enables you to capture packet data from a live network or read packets from a previously saved capture file by either printing a decoded form of those packets to the standard output or by writing the packets to a file. Without any options, TShark works …
Continue reading “tshark – Dump and analyze network traffic”
ssh-keygen — authentication key generation, management and conversion
ahiliation@pluto:~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/ahiliation/.ssh/id_rsa): Created directory ‘/home/ahiliation/.ssh’. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/ahiliation/.ssh/id_rsa. Your public key has been saved in /home/ahiliation/.ssh/id_rsa.pub. The key fingerprint is: 70:7f:99:30:63:19:1e:ea:0f:af:ce:7d:dd:e5:55:9a ahiliation@pluto.infoclub.in The key’s randomart image is: …
Continue reading “ssh-keygen — authentication key generation, management and conversion”
WSU pTop is a simple and effcient process-level power profiling tool
$ls conf doc makefile objects.mk sources.mk src $make all cc -c -o src/avltree.o src/avltree.c In file included from src/avltree.c:12:0: src/eperf.h: In function ‘sys_perf_event_open’: src/eperf.h:32:17: error: ‘__NR_perf_counter_open’ undeclared (first use in this function) return syscall(__NR_perf_counter_open, attr, pid, cpu, group_fd, flags); ^ src/eperf.h:32:17: note: each undeclared identifier is reported only once for each function it appears in …
Continue reading “WSU pTop is a simple and effcient process-level power profiling tool”