Archive

Archive for the ‘Ideo page’ Category

Linux Bash – sed substring

February 13th, 2009 karlosp No comments
CODE:
  1. echo "This is the TEST(Message(with some tricky word)) from which i want to search." |  <acronym title="Stream Editor">sed</acronym> 's/.*\(TEST.*))\).*$/\1/'

CODE:
  1. echo `expr match "abba (album)" '.*(\(.*\)).*'` -> album

CODE:
  1. stringZ=abcABC123ABCabc
  2. #       =======    
  3.  
  4. echo `expr match "$stringZ" '\(.[b-c]*[A-Z]..[0-9]\)'`   # abcABC1
  5. echo `expr "$stringZ" : '\(.[b-c]*[A-Z]..[0-9]\)'`       # abcABC1
  6. echo `expr "$stringZ" : '\(.......\)'`                   # abcABC1

String manipulating

Wireless Network Scanner (working on DD-WRT v24)

July 31st, 2008 karlosp No comments
  1. Download file wireless-network-scanner-working-on-dd-wrt-v24
  2. Open file -> Ctrl+a -> Ctrl+p
  3. open CMD / Putty -> connect to router (telnet 192.168.X.1)
  4. right mouse click /paste
CODE:
  1. #!/bin/sh
  2.  
  3. awk -F"[][]" '
  4. BEGIN{
  5. IGNORECASE = 1;
  6. command = "site_survey 2>&1";
  7. red = "\x1b[31m";              green = "\x1b[32m";
  8. greenback="\x1b[42m";          yellow = "\x1b[33m";
  9. cyan = "\x1b[36m";             blue = "\x1b[34m";
  10. blueback = "\x1b[44m";         white = "\x1b[37m";
  11. whiteback = "\x1b[47m";        reset = "\x1b[0m";
  12. underscore = "\x1b[4m";        clear = "\x1b[2J";
  13. home = "\x1b[0;0H";            erase2end = "\x1b[K";
  14. cName = white;                 cSignal = green;
  15. cNoise = red;                  cCaps = green;
  16. cStrengthLow = blue blueback;  cChannel = green;               
  17. cStrengthMed = white whiteback;
  18. cStrengthHi = green greenback;
  19. cStrengthAged = red;
  20.  
  21. print clear;
  22. for(;;)
  23. {
  24.   while (command|getline)
  25.   {   
  26.     if ($22 == "") continue;
  27.     bssid=$6;
  28.     name[bssid] = $4;
  29.     rssi[bssid] = $10;
  30.     noise[bssid]= $12;
  31.     channel[bssid] = $8;
  32.     caps[bssid] = $22;
  33.     age[bssid] = 1;
  34.   }
  35.   close(command);
  36.   printf home;
  37.   ln = 0;
  38.   print white " Name       BSSID  Signal Noise Channel Type";
  39.   for (x in name)
  40.   {                 
  41.         #arbitrary strength calc through trial and error... modify as you wish:
  42.         sigstrength = ((rssi[x] - noise[x])*1.5) + ((rssi[x] +90)*1.5);
  43.         if (sigstrength &lt;1) sigstrength=0;
  44.         cStrength = cStrengthLow;
  45.         if(sigstrength>4) cStrength = cStrengthMed;
  46.         if(sigstrength>7) cStrength = cStrengthHi;
  47.         if(age[x]=0) cStrength = cStrengthAged;       
  48.         fmt = "%s%-15s %s%0"sigstrength"d "reset erase2end "\n    %s  %s%-4d %s%-4d %s%-4d %s%2s "  reset erase2end "\n" erase2end "\n";
  49.         printf fmt, cName,name[x],cStrength,0,x,cSignal,rssi[x],cNoise,noise[x],cChannel, channel[x],cCaps,caps[x];
  50.         rssi[x] = "-100 xxxx";
  51.         ln++;       
  52.   } 
  53.   if (ln ==0)
  54.     print red "No Results - Do you have survey capability? \nThis program depends on site_survey to run. Hit ctrl-c to stop.";
  55.   print erase2end;
  56. }
  57. }
  58. '

Categories: Ideo page, Malo mešano Tags:

Windsurfer wlan surfer

July 28th, 2008 karlosp No comments

windsurfer

Categories: Ideo page, Malo mešano Tags:

Digitalno oglaševanje ++

July 25th, 2008 karlosp No comments

SPOZNAJTE POSLOVNO IDEJO, V KATERI:

December 31st, 2007 karlosp No comments

- nebi potrebovali velikih zagonskih stroškov
- ne potrebujete zaposlenih
- bi delali zase, pa vendar ne sami
- dobite izkušeno ekipo, ki vas trenira
- imate neomejene potenciale zaslužkov
- imate možnost pridobiti stalne, pasivne dohodke
- si sami določate delovni čas in odločate o pomembnih dogodkih v svojem življenju

Categories: Ideo page Tags:

TelMe – Second Life – logo 2

December 28th, 2007 karlosp No comments

TelMe - Second Life - logo 2

TelMe - Second Life logo 2

Categories: Ideo page, Malo mešano Tags: , , , ,

TelMe – Second Life

December 28th, 2007 karlosp No comments
Categories: Ideo page, Malo mešano Tags: , ,

Drugi test

November 4th, 2007 karlosp No comments

Malo testiram Scribe fire

In malo popravljam

Categories: Bash, Ideo page, Malo mešano Tags:

Protected: Mobilni radar

October 21st, 2007 karlosp Enter your password to view comments.

This post is password protected. To view it please enter your password below:


Categories: Ideo page, Malo mešano Tags: , ,

Karlosp Slovenske Železnice Vozni Redi

October 3rd, 2007 karlosp No comments

Karlosp Slovenske Železnice

Po zgledu Karlosp LPP vozni redi in
Karlosp KAM-BUS vozni redi sem naredil še
Karlosp Slovenske Železnice

Vse skupaj je narejeno za moje lastne, neprofitne in izobraževalne namene, če pa še komu pride prav pa še toliko bolje :) .

Karlosp Kam-Bus vozni redi popravek

October 1st, 2007 karlosp No comments

Karlosp Kam-Bus vozni red sem še malo zoptimiziral za mobilne telefone, tako da je sedaj še maj nepotrebnega prometa.

Primerjava prej potem:
kam-bus-vozi-red prejkam-bus-vozi-red potem

Categories: Ideo page, Malo mešano Tags: , , , , ,

Figaro & Mafini

May 5th, 2007 karlosp No comments

Kako se naredi odlični figaro
ter kako se pripravi slastne mafine!

Za ogled potrebuješ divix plugin.
Za Windows in Mac klikni TUKAJ
oz. se prepusti da ti Firefox sam naloži dodatek.
Za linux pa morate imeti name�?en mplayer plugin.

Categories: Ideo page Tags:

Medvedka se imata rada

December 27th, 2006 karlosp No comments

medvedka se imata rada

Categories: Ideo page Tags:
101905 pages viewed, 151 today
53340 visits, 90 today
FireStats icon Powered by FireStats