Public snipts »
oz's
snipts
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
-
∞ extract initrd
gunzip < /boot/initrd.img | cpio -i --make-directories
-
∞ patch chokok
patch <location of source>/libchoqok/ui/postwidget.cpp <location of patch>/choqok-rt-patch
-
∞ mount ftp using curlftpfs
curlftpfs ftp://user:password@host /mount/point #unmount fusermount -u /mount/point -
∞ linux view hdd speed
hdparm -t /dev/sda
-
∞ snow.js
<script type="text/javascript" src="http://oprod.net/scripts/snow.js"></script>
-
∞ 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");
-
∞ add real hdd to virtualbox
VBoxManage internalcommands createrawvmdk -filename /d/vms/hdd-real.vmdk -rawdisk /dev/hdd
-
∞ /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
-
∞ 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]; } } ?>
-
∞ 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"; } ?>
-
∞ talk on tty
mesg y write user tty
-
∞ 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'))); -
∞ fullscreen landscape
MIDlet-Touch-Support: True UseNativeTextButtons: false ReverseSoftkeys: true UseNativeCommands: false LGE-MIDlet-TargetLCD-Height: 240 LGE-MIDlet-TargetLCD-Width: 400
-
∞ 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
-
∞ 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
-
∞ convert bin to iso
# convert the bin file to iso ccd2iso file.bin file.iso
-
∞ get image header information
identify -verbose
-
∞ 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>'); }
-
∞ start android emulator
out/host/linux-x86/bin/emulator -system out/target/product/generic - kernel prebuilt/android-arm/kernel/kernel-qemu



Using Drupal