View previous topic :: View next topic |
Author |
Message |
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Thu Oct 14, 2004 8:26 pm Post subject: |
|
|
Yea, my site is down until i get home (2 hours) I guess dyndns likes to randomly cancel my dynamic dns, and i dont know my own ip... when i get home i will update pwnz3r's scripts and also see if i can reach dav1d's website... every time i try to i always get time out errors. _________________ Blog
Code: | denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
|
|
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Thu Oct 14, 2004 11:51 pm Post subject: |
|
|
Just tried both pwnz3r's site and dav1d's, and neither are accessible.. will try tomorrow _________________ Blog
Code: | denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
|
|
|
Back to top |
|
|
placeholder Advocate
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Fri Oct 15, 2004 4:41 am Post subject: |
|
|
denstark wrote: | Just tried both pwnz3r's site and dav1d's, and neither are accessible.. will try tomorrow |
Try it again, because my router likes to shit out somtimes. |
|
Back to top |
|
|
ap viper Tux's lil' helper
Joined: 14 Feb 2004 Posts: 95
|
Posted: Sun Oct 17, 2004 10:25 pm Post subject: |
|
|
For practice, I did a gtk theme switcher in c++. Fairly simple, I hope it's fast enough. Instructions in the tarball:
http://apviper.0catch.com/cplusplus/gtkob.html
*Anyone who wants to host it may* _________________ why the heck are you reading this? |
|
Back to top |
|
|
osbourd2 Tux's lil' helper
Joined: 09 Mar 2004 Posts: 91 Location: Cardiff, UK
|
|
Back to top |
|
|
osbourd2 Tux's lil' helper
Joined: 09 Mar 2004 Posts: 91 Location: Cardiff, UK
|
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Fri Oct 22, 2004 4:55 pm Post subject: |
|
|
Sorry, Ive been out of the loop for a little bit. Check here for the scripts _________________ Blog
Code: | denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
|
|
|
Back to top |
|
|
obot n00b
Joined: 16 Sep 2004 Posts: 25 Location: UK
|
Posted: Wed Oct 27, 2004 6:11 pm Post subject: |
|
|
Well, I decided to write my request myself, so here it is. I don't have anywhere to host it, so I just pasted it here. This is also my first python script, if it sucks feel free to make it better, if anyone has a nice way to take out the (you aren't root so you can't see everything) message, that would also be helpful.
Code: |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Openbox3 Netstat pipe-menu
# Author: Obot
# Version: 0.1
# Thanks to syscrash2k for the template and TDE writer Chip2003 for the netstat command
# Usage:
# Put an entry in your ~/.config/openbox/menu.xml like this:
# <menu id="netstat" label="Netstat" execute="~/Documents/Development/netstat.py" />
# And inside <menu id="root-menu" label="openbox">, add this somewhere (wherever you want it on your menu)
# <menu id="netstat" />
# Don't forget to chmod +x
import sys
from commands import *
cmd = "netstat -pa --numeric-hosts |grep ':' | grep -v unix|grep -v '*'|grep -v ' - ' | sed 's/.*://' | sed 's/ .* [0-9]/ /' | sed 's/ .*\// /' | sort -u | column -t"
net_stats = getoutput(cmd)
lines = net_stats.split('\n')
######################
# openbox pipe menuing
######################
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
print "<openbox_pipe_menu>"
print " <item label=\"Port: Program:\" />"
for line in lines:
print " <item label=\"" + line + "\" />"
print "</openbox_pipe_menu>"
|
_________________ "I don't mean to impose, but I am the ocean."
-The Salton Sea |
|
Back to top |
|
|
monotux l33t
Joined: 09 Sep 2003 Posts: 751 Location: Stockholm, Sweden
|
Posted: Fri Dec 31, 2004 2:36 pm Post subject: |
|
|
Thank you everyone!
This thread is great _________________ Computer science is no more about computers than astronomy is about telescopes. |
|
Back to top |
|
|
ahubu Guru
Joined: 16 Aug 2003 Posts: 400 Location: Groningen, The Netherlands
|
Posted: Sun Jan 02, 2005 2:18 pm Post subject: |
|
|
obot: thanks for the script! (although it seems a bit dirty, doing all those greps in a row) To remove the root-message, you have to redirect the errorstream to null by doing 2>null after the netstat command.
so this will be the cmd line:
Code: |
cmd = "netstat -pa --numeric-hosts 2>null |grep ':' | grep -v unix|grep -v '*'|grep -v ' - ' | sed 's/.*://' | sed 's/ .* [0-9]/ /' | sed 's/ .*\// /' | sort -u | column -t"
|
works for me!
Pwnz3r: you gtkmenu script gives me this error
Quote: |
Traceback (most recent call last):
File "./gtkmenu.py", line 73, in ?
main()
File "./gtkmenu.py", line 56, in main
if sys.argv[1] == "-s":
IndexError: list index out of range
|
I am no python man (yet), neither did your script tell me what commandline options I should provide. Can you explain?
[/quote]
edit: cut&paste error removed |
|
Back to top |
|
|
MrGreen Apprentice
Joined: 07 Nov 2003 Posts: 211
|
Posted: Sat Feb 19, 2005 6:44 pm Post subject: Openbox System Menu |
|
|
Hi,
I do not know if its too late but I am trying to create a System stats menu (like torsmo) that works from Main Menu (menu.xml)
Thing is I can get basic stuff like System name host & kernel but I am stumped how to get info such as Cpu load etc ....(/proc)
Is anyone interested in creating one or can help me with my version simple as it is???
MrGreen |
|
Back to top |
|
|
Legout n00b
Joined: 02 Oct 2003 Posts: 11 Location: Wuerzburg/Germany
|
Posted: Wed Jul 20, 2005 5:47 am Post subject: |
|
|
Ey MrGreen, you are unfaithfull
Hi to everybody, i wanna know if this thread is dead???
And denstark where´s ur openbox site gone? was really cool. |
|
Back to top |
|
|
MrGreen Apprentice
Joined: 07 Nov 2003 Posts: 211
|
Posted: Wed Jul 20, 2005 6:52 am Post subject: |
|
|
Legout wrote: | Ey MrGreen, you are unfaithfull
Hi to everybody, i wanna know if this thread is dead???
And denstark where´s ur openbox site gone? was really cool. |
Errr no .... |
|
Back to top |
|
|
ahubu Guru
Joined: 16 Aug 2003 Posts: 400 Location: Groningen, The Netherlands
|
Posted: Wed Jul 20, 2005 12:42 pm Post subject: |
|
|
Still using openbox, tried switching to loads of other wm's, but I always come back to openbox. The only real contestant is waimea (the new one), but it's not really stable yet (if ever). _________________ Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak. -Unknown |
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Thu Aug 04, 2005 10:29 pm Post subject: |
|
|
Well, after some server trouble my site is back up and operating. Am looking for all scripters to send me more openbox scripts!
The site is now here: http://denstark.homelinux.org/~tim/openbox.php
Please feel free to get whatever from there, and post back here or email me if you want a script put up.
Den |
|
Back to top |
|
|
croakinglizard n00b
Joined: 11 Jan 2005 Posts: 13
|
Posted: Fri Aug 05, 2005 6:11 am Post subject: |
|
|
Hi all. I've been looking for a pipe menu script to show download/upload speed on eth0. Anyone have one or know where to get one? Thanks. |
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Fri Aug 05, 2005 11:15 am Post subject: |
|
|
croakinglizard wrote: | Hi all. I've been looking for a pipe menu script to show download/upload speed on eth0. Anyone have one or know where to get one? Thanks. |
I'll keep my eyes open, in the mean time this is a much needed bump. I'll see if I can get GaMMa/syscrash/nightm4re to write more scripts |
|
Back to top |
|
|
rjs Tux's lil' helper
Joined: 30 Jul 2004 Posts: 146 Location: Oriel College, Oxford
|
Posted: Tue Aug 16, 2005 6:11 pm Post subject: |
|
|
denstark wrote: | croakinglizard wrote: | Hi all. I've been looking for a pipe menu script to show download/upload speed on eth0. Anyone have one or know where to get one? Thanks. |
I'll keep my eyes open, in the mean time this is a much needed bump. I'll see if I can get GaMMa/syscrash/nightm4re to write more scripts |
Hey,
When is your website going to be online again? I found it really useful a while ago, but every time that I've tried to access it since it has been down.
Robbie |
|
Back to top |
|
|
rjs Tux's lil' helper
Joined: 30 Jul 2004 Posts: 146 Location: Oriel College, Oxford
|
|
Back to top |
|
|
|