-  [JOIN IRC!]


[Return]
Posting mode: Reply
Name
Subject   (reply to 164)
Message
File
Password  (for post and file deletion)
¯\(°_O)/¯
  • Supported file types are: BMP, GIF, JPG, PNG
  • Maximum file size allowed is 10000 KB.
  • Images greater than 400x400 pixels will be thumbnailed.
  • Currently 317 unique user posts. View catalog

  • Blotter updated: 2015-09-02 Show/Hide Show All


File 133575138553.jpg - (251.42KB , 500x651 , tumblr_m24jsnqXOq1qc6xjbo1_500.jpg )
164 No. 164
Post your pastebin/script collection if you have one.

I'll start: http://pastebin.com/u/2ck
>> No. 165
I uploaded a couple more.
>> No. 192
update on todo.pl - now with an undo feature
update on J2 - random title decoration
>> No. 195
I like the dubar.pl script. The output looks good. I've written something similar a few times in different languages except instead of bars I have percents. I'll probably take something from yours and incorporate it into mine though.

If you don't need the ability to pipe input into dubar.pl and you wanted to make this a little more "standalone" you could just open2() /usr/bin/du directly within the perl script.

Here's the Perl version of my prettybyte() sub which is of similar functionality to your bytesToSize sub if you want to check it out. It's probably not the best Perl because I'm not usually a Perl guy and I was going from my original C function. http://pastebin.com/R7Zbzgmk
>> No. 203
>>195
No, I don't need to have it as a separate script. It's just that bash is most natural to me and I'm a bit lazy if I can use someone else's code or something I already know.

Thanks for prettybyte by the way. The if/else I had in there was another example of my lazies :P


Delete post []
Password  
Report post
Reason