Fri Mar 28 18:17:40 IST 2014 real 0m0.004s user 0m0.000s sys 0m0.000s real 0m0.004s user 0m0.000s sys 0m0.000s real 0m0.003s user 0m0.000s sys 0m0.000s real 0m0.004s user 0m0.000s sys 0m0.000s real 0m0.002s user 0m0.000s sys 0m0.000s
Category Archives: Programming Languages
BUBBLE SORT USING C CODE. ARRAY SIZE 400
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
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] < …
posix_openpt – open a pseudoterminal device
FUNCTION IMPLEMENTATION int posix_openpt(int flags) { return open(“/dev/ptmx”, flags); } stitched (P) TO : A Model using the Function [ posix_openpt ]
script — make typescript of terminal session
STITCHED (C) FROM : Virtual Terminals commandline session $script Script started, file is typescript $ls Algorithms bookmark config-files firewall kernel_start.asm loader scripts animation books debian GD kernel_start.s Mail test art.text bugs-general debian-howtos jeffrin language ovlfose typescript beautifulwork cairo Docs kernel linux README web.application $ls -a . beautifulwork config-files GD kernel_start.s ovlfose web.application .. bookmark debian …
Continue reading “script — make typescript of terminal session”
Understanding a WordPress Plugin
<?php /* Plugin Name: Yet Another Search Meddle Plugin URI: Version: 0.1 Author: Jeffrin Jose T and Public Domain Author URI: http://linkedin.com/in/jeffrinl Description: modifying the way search results are displayed */ function resultsperpage($limits) { /* resultsperpage – it is a custom created php function. */ if (is_search()) { /* is_search() – it is an inbuilt …
common network utilities/tools
commandline session $ping www.beautifulwork.org PING beautifulwork.org (46.22.210.18) 56(84) bytes of data. 64 bytes from mars.infoclub.in (46.22.210.18): icmp_req=1 ttl=53 time=310 ms 64 bytes from mars.infoclub.in (46.22.210.18): icmp_req=2 ttl=53 time=210 ms 64 bytes from mars.infoclub.in (46.22.210.18): icmp_req=3 ttl=53 time=210 ms 64 bytes from mars.infoclub.in (46.22.210.18): icmp_req=4 ttl=53 time=210 ms 64 bytes from mars.infoclub.in (46.22.210.18): icmp_req=5 ttl=53 time=211 …
nmap . -O: Enable OS detection
commandline session $nmap 127.0.0.1 Starting Nmap 6.00 ( http://nmap.org ) at 2013-11-24 17:56 IST Nmap scan report for localhost (127.0.0.1) Host is up (0.00019s latency). Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds $nmap …
What does the command “netstat ” do ?
ABOUT netstat In computing, netstat (network statistics) is a command-line network utility tool that displays network connections for the Transmission Control Protocol (both incoming and outgoing), routing tables, and a number of network interface (network interface controller or software-defined network interface) and network protocol statistics. It is available on Unix-like operating systems including macOS, Linux, …
GNU/Linux BASH builtin commands
commandline session $pwd /home/jeffrin/playground $which pwd /bin/pwd $ $/bin/pwd /home/jeffrin/playground $/bin/pwd -P /home/jeffrin/playground $pwd -P /home/jeffrin/playground $help pwd pwd: pwd [-LP] Print the name of the current working directory. Options: -L print the value of $PWD if it names the current working directory -P print the physical directory, without any symbolic links By default, `pwd’ …