Sign up to create your own snipts, or login.

Public snipts » oz's snipts The latest snipts from oz.

showing 1-20 of 25 snipts
  • viewtyconv(ffmpeg way)
    #!/bin/bash
    #
    #by otzy_007 http://oprod.net 
    #
    ffmpeg -i $1 -vcodec mpeg4 -s 400x240 -acodec libmp3lame -ab 128k -vtag DIVX $2
    

    copy | embed

    0 comments - tagged in  posted by oz on Apr 08, 2010 at 4:49 a.m. EDT
  • extract initrd
    gunzip < /boot/initrd.img | cpio -i --make-directories
    

    copy | embed

    0 comments - tagged in  posted by oz on Mar 28, 2010 at 3:15 p.m. EDT
  • patch chokok
    patch <location of source>/libchoqok/ui/postwidget.cpp <location of patch>/choqok-rt-patch
    

    copy | embed

    0 comments - tagged in  posted by oz on Mar 19, 2010 at 4:14 a.m. EDT
  • mount ftp using curlftpfs
    curlftpfs ftp://user:password@host /mount/point
    
    #unmount
    
    fusermount -u /mount/point
    

    copy | embed

    0 comments - tagged in  posted by oz on Jan 23, 2010 at 1:24 p.m. EST
  • linux view hdd speed
    hdparm -t /dev/sda
    

    copy | embed

    0 comments - tagged in  posted by oz on Dec 23, 2009 at 3:17 p.m. EST
  • snow.js
    <script type="text/javascript" src="http://oprod.net/scripts/snow.js"></script> 
    

    copy | embed

    0 comments - tagged in  posted by oz on Dec 15, 2009 at 3:39 a.m. EST
  • set new interface of google.com
    javascript:void(document.cookie="PREF=ID=20b6e4c2f44943bb:U=4bf292d46faad806:TM=1249677602:LM=1257919388:S=odm0Ys-53ZueXfZG;path=/; domain=.google.com");
    

    copy | embed

    0 comments - tagged in  posted by oz on Dec 14, 2009 at 5:37 a.m. EST
  • add real hdd to virtualbox
    VBoxManage internalcommands createrawvmdk -filename /d/vms/hdd-real.vmdk -rawdisk /dev/hdd
    

    copy | embed

    0 comments - tagged in  posted by oz on Dec 04, 2009 at 2:54 p.m. EST
  • /dev/net/tun
    mkdir /dev/net (if it doesn't exist already)
    39	     mknod /dev/net/tun c 10 200
    40	  
    41	  Set permissions:
    42	     e.g. chmod 0666 /dev/net/tun
    
    
    http://www.mjmwired.net/kernel/Documentation/networking/tuntap.txt
    

    copy | embed

    0 comments - tagged in  posted by oz on Dec 03, 2009 at 7:20 a.m. EST
  • system status script for bot.im
    <?php
    ///////////////////////////////////////////////////
    //system status php script for bot.im
    //created by otzy_007(Andrei G.) http://oprod.net
    ///////////////////////////////////////////////////
    
    //the message recieved from the user
    $msg = strtolower($_REQUEST["msg"]);
    ////////////////////////////////////////////////
    //list of commands that can be executed
    ///////////////////////////////////////
    //to add a new command just follow this sintax:
    //
    //case "command":
    //     echo_line("command");
    //break;
    //
    //where command is your command to be executed
    /////////////////////////////////////////////// 
    switch($msg)
    {
      case "date":
            echo date("D M j G:i:s T Y");
      break;
      case "whoami":
            echo exec(whoami);
      break;
      case "who":
           echo exec(who);
      break;
      case "free":
            echo_line("free");
      break;
      case "procinfo":
            echo_line("procinfo");
      break;
      case "meminfo":
            echo_line("cat /proc/meminfo");
      break;
      case "df":
            echo_line("df");
      break;
      case "ps":
            echo_line("ps");
      break;
      case "uptime":
            echo_line("uptime");
      break;
      case "uname":
            echo_line("uname -a");
      break;
      case "mounts":
            echo_line("cat /proc/mounts");
      break;
      case "user":
            echo $_REQUEST['user'];
      break;
      case "netstat":
            echo_line("netstat");
      break;
      case "help":
            help();
      break;
      default:
            echo "For a list of avaible commands enter help";
      break;
    }
    
    function help(){
    echo "Avaible commands: help, date, whoami, who, uname, uptime, ps, df, meminfo, procinfo, free, mounts, netstat";
    }
    function echo_line($command)
    { 
    
     exec($command, $line);
    
     for($i=0; $i<count($line); $i++)
     {
      echo "<br>";
      echo $line[$i];
      
    }
    
    }
    
    ?> 
    

    copy | embed

    0 comments - tagged in  posted by oz on Dec 02, 2009 at 1:51 p.m. EST
  • php script for bot.im
    <?php
    
    //simple php script for bot.im
    //created by otzy_007(Andrei G.) http://oprod.net
    
    
    //the message from the user
    $msg = strtolower($_REQUEST["msg"]);
    
    $part = explode("(", $msg);
    
    //if there's an exec command execute it
    //example: exec(whoami), exec(ps), exec(uptime)
    if($part[0]=='exec'){
    $part[1]=rtrim($part[1], ")"); 
    echo exec($part[1]);
    }
    //else execute the other commands
    else
    {
    switch($msg)
    {
      case "date":
            echo date("D M j G:i:s T Y");
      break;
      case "hello":
            echo "Hi!";
      break;
      case "user":
            echo $_REQUEST['user'];
      break;
      case "help":
            help();
      break;
      default:
            echo "For a list of avaible commands enter help";
      break;
    }
    }
    function help(){
    echo "Avaible commands: help, date, hello, exec(\"command\") without quotes";
    }
    
    ?>
    

    copy | embed

    0 comments - tagged in  posted by oz on Nov 28, 2009 at 3:16 a.m. EST
  • talk on tty
    mesg y
    write user tty
    

    copy | embed

    0 comments - tagged in  posted by oz on Nov 27, 2009 at 3:37 p.m. EST
  • switch to new google interface
    javascript:alert(document.cookie="PREF=ID=fb7740f107311e46:TM=1142683332:LM=1142683332:S=fNSw6ljXTzvL3dWu;path=/;domain=."+location.href.split('/')[2].substr(location.href.split('/')[2].indexOf('google')));
    

    copy | embed

    0 comments - tagged in  posted by oz on Nov 26, 2009 at 1:44 p.m. EST
  • fullscreen landscape
    MIDlet-Touch-Support: True
    UseNativeTextButtons: false
    ReverseSoftkeys: true
    UseNativeCommands: false
    LGE-MIDlet-TargetLCD-Height: 240
    LGE-MIDlet-TargetLCD-Width: 400
    

    copy | embed

    0 comments - tagged in  posted by oz on Nov 23, 2009 at 1:54 p.m. EST
  • no native keys in java game(lg viewty)
    MIDlet-Touch-Support: True
    UseNativeTextButtons: false
    ReverseSoftkeys: true
    UseNativeCommands: false
    LGE-MIDlet-TargetLCD-Height: 400
    LGE-MIDlet-TargetLCD-Width: 240
    

    copy | embed

    0 comments - tagged in  posted by oz on Sep 26, 2009 at 3:12 a.m. EDT
  • lg viewty landscape java manifest.mf
    MIDlet-Touch-Support: True
    UseNativeTextButtons: false
    ReverseSoftkeys: true
    UseNativeCommands: false
    LGE-MIDlet-TargetLCD-Height: 240
    LGE-MIDlet-TargetLCD-Width: 320
    

    copy | embed

    0 comments - tagged in  posted by oz on Sep 26, 2009 at 3:09 a.m. EDT
  • convert bin to iso
    # convert the bin file to iso
    ccd2iso file.bin file.iso 
    

    copy | embed

    0 comments - tagged in  posted by oz on Jul 14, 2009 at 1:09 p.m. EDT
  • get image header information
    identify -verbose
    

    copy | embed

    0 comments - tagged in  posted by oz on Jun 24, 2009 at 2:14 p.m. EDT
  • Twitter Hashtag Auto-Link
    // ==UserScript==
    // @name           Twitter Hashtag Auto-Link
    // @namespace      http://oprod.net
    // @description    Auto-Links Twitter Hashtags to twitter search
    // @include        http://twitter.com/*
    // @include        https://twitter.com/*
    // ==/UserScript==
    
    var entries, entry;
    
    entries = document.evaluate(
        "//*[@class='entry-content']",
        document,
        null,
        XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
        null);
    
    for(var i = 0; i < entries.snapshotLength; i++) {
        entry = entries.snapshotItem(i);
        entry.innerHTML = entry.innerHTML.replace(/#([^ ]+)/g, '<a href="http://twitter.com/#search?q=%23$1" title="$1"  target="_blank">#$1</a>');
    }
    

    copy | embed

    0 comments - tagged in  posted by oz on Jun 08, 2009 at 2:11 a.m. EDT
  • start android emulator
    out/host/linux-x86/bin/emulator -system out/target/product/generic -
    kernel prebuilt/android-arm/kernel/kernel-qemu 
    

    copy | embed

    0 comments - tagged in  posted by oz on Jun 04, 2009 at 3:29 p.m. EDT
Sign up to create your own snipts, or login.