|
I want to capture Lame's output histogram to a log file. The problem is that when you redirect to a file, you end up with the raw escape sequences in the file rather than them being executed (for example moving the cursor, causing earlier text to be overwritten). Does anyone know of a way to pipe the output in to something that will replicate the correct escape sequence behaviour before writing the log file?
|
# ¿ Dec 6, 2008 12:57 |
|
|
# ¿ Apr 25, 2024 16:50 |
|
I have to say I'm impressed: using nothing but gparted, I've managed to successfully clone & resize a mixed 120GB NTFS-Fat32-swap-ext3-ext3 drive on to a new 1TB Samsung. There was a slight booting issue due to the priority given to IDE vs SATA drives, and Windows only booting from the first drive. Other than that, it's been a totally painless experience.
|
# ¿ Jan 10, 2009 21:05 |
|
This seems like a trivial request, but for the life of me, I can't find the answer via google: when using lp, how do I tell it to print something in grayscale?
|
# ¿ Feb 21, 2009 13:37 |
|
-v just prints out the filename and nothing else -vv also prints out permissions, size, date & time. It's a bit like 'ls -1' vs 'ls -l'
|
# ¿ Jul 13, 2009 13:54 |
|
-v inverts the match, so prints all lines that done match. For example, if the comment lines start with a hash.... cat file | grep -v ^#
|
# ¿ Jul 13, 2009 13:57 |
|
Accipiter posted:And you wouldn't do grep -v ^# filename because...?
|
# ¿ Jul 13, 2009 19:16 |
|
deong posted:Cool. I'll try out x64. Squeeze out the most I can out of my aging box heh.
|
# ¿ May 10, 2010 19:01 |
|
I like to use emacs to generate colour-highed pdfs of code. Is there anyway for me to put the follow workflow in to an automated script? 1. emacs <code>.<extension> 2. enable syntax highlighting 3. alt-x, ps-spool-buffer-with-faces 4. switch to correct buffer, save-as, <code>.ps 5. exit emacs 6. ps2pdf <code>.ps Not being a emacs user, I have no idea if it's remotely possible to automated that side of it.
|
# ¿ Mar 22, 2011 21:44 |
|
Are there any decent graphical diff programs for comparing binary files? I an find plenty for text files, but almost nothing for binary.
|
# ¿ Mar 25, 2011 22:42 |
|
Overkill here, but because it's useful to know for more advanced commands than deleting; find . -iname '*.jpg' -o -iname '*.ini' -exec rm {} \; Pablo Bluth fucked around with this message at 23:47 on Apr 26, 2011 |
# ¿ Apr 26, 2011 23:43 |
|
Tomorrow at work I've got to restore some old data from some DAT tapes. The tape was written before my time so I'm mostly expect it to physically fail or turn out to be written using some esoteric hardware/OS/software lost in time (this week I've already had to deal with making sense of Prime Computer, Inc's alternative ASCII table) I've never used tapes drives before, so I've been googling some how-tos. Can somebody confirm the easiest sequence of commands to justextract every file off a given tape?
|
# ¿ Oct 31, 2011 23:31 |
|
Grandpa Pap posted:On a related note, I was bored during a recent evening and thought "Hmm, I haven't experimented around with dual-booting a PC recently."
|
# ¿ Nov 17, 2011 20:52 |
|
I'm having one of those moments when you discover a useful command, then discover a week later you can't remember what it was called and Google fails to remind me.... It's a utility you use as an intermediary in pipe, and allows you to set a limit of the number of bytes passed through before it terminates. During the process, it shows a "rsync --progress" style progress bar.
|
# ¿ Dec 1, 2011 20:25 |
|
haywire posted:"pv"
|
# ¿ Dec 1, 2011 23:11 |
|
That's actually what I did, having initially neglected to check on the basis I didn't think it'd have gone that far back.
|
# ¿ Dec 1, 2011 23:29 |
|
Ninja Dan posted:Basically I have a LAMP server already set up and running but I need to be able to ftp in and upload files like you would on any other web server. This is my first go at setting up my own server so I'm pretty ignorant as to whether I'd want SSL FTP over SFTP. It sounds like SFTP might be a little more manageable for me so I'll look into that. Thanks for all the advice guys. Pablo Bluth fucked around with this message at 21:40 on Mar 10, 2012 |
# ¿ Mar 10, 2012 21:38 |
|
Would another option to be to leave the general ssh on a 5 digit port, and have a work-only white-listed port on 443.
|
# ¿ Mar 13, 2012 22:51 |
|
As a sanity check, you could try running tcpdump on the server just to make sure you're getting the packets from the external address and they're not getting lost.
|
# ¿ Nov 10, 2012 17:34 |
|
I'm using a Raspbery Pi as a secondary wireless accesspoint (using this guide), and it's all working apart from one issue. Main AP & wired network 192.168.0./24, including RPI-eth0 192.168.0.99 RPI's AP: wlan0 is 192.168.2.1, and it hands out 192.168.2./24 addresses. The one thing that doesn't work is devices on the main 192.168.0. subnet struggle to talk to those on the 198.68.2. subnet. code:
code:
code:
code:
|
# ¿ Nov 27, 2012 00:51 |
|
River posted:Anyone know of a way I can run dual monitors with Fedora or Ubuntu without everything making GBS threads itself? code:
code:
|
# ¿ Jan 2, 2013 11:56 |
|
Does anyone know how in LXDE to bind ctrl+down/up to pagedown/pageup, to make up for the lack of PgDown/PgUp keys?
|
# ¿ Mar 10, 2013 00:54 |
|
so loving future posted:The good reason is that the whole thing is the filename. Extensions are just a convention. There's way way less ambiguity and room for error if you just assume whatever the the user tells you is the filename instead of trying to get clever around 'should I append crap to this???'
|
# ¿ Jun 15, 2016 22:15 |
|
Mount the remote system locally using sshfs, then use use your usual file manager?
|
# ¿ Jun 30, 2016 01:30 |
|
DeaconBlues posted:Is there a hard disk health reporting utility I can run on my little Ubuntu server?
|
# ¿ Jul 31, 2016 17:59 |
|
Methanar posted:What is the proper way of finding and replacing a string in all files in a directory? In Powershell I would do something like this. code:
|
# ¿ Aug 22, 2016 23:55 |
|
Finally gave in to the notifications to upgrade from Kubuntu 14.04 LTS to 16 and it seems to have totally borked the system. Guess it's time to download an image and do a fresh install. Is switching distro while keeping the same /home partition a bad idea?
|
# ¿ Oct 22, 2016 13:36 |
|
peepsalot posted:Ok but is there also any one particular app that will report every relevant thing and fit it on a single screen and does it come installed on the live distro. Edit: no idea how I missed the previous post before writing mine. Pablo Bluth fucked around with this message at 12:24 on Nov 3, 2016 |
# ¿ Nov 3, 2016 09:20 |
|
You could experiment with Ksnapshot...
|
# ¿ Nov 3, 2016 17:11 |
|
rsync --progress will give a mb/s stat as it copies. lsusb -v will give you usb stats that will include connection mode.
Pablo Bluth fucked around with this message at 09:15 on Mar 3, 2017 |
# ¿ Mar 3, 2017 09:13 |
|
lsusb -t might be easier to interpret, each line ends with I believe the current protocol speed in Mbit/s.
|
# ¿ Mar 3, 2017 15:39 |
|
Seems to me the main issue (other than the lack of screen width) is the email client isn't using a fixed width font, so I'd send it as a html email with the font set to monospace. If any of your scripts use tab aligned output, piping through expand to convert those to spaces might also ensure more consistent behaviour.
|
# ¿ Mar 11, 2017 12:18 |
|
Zero Gravitas posted:Does anyone have any recommendations for an equivalent to the windows Remote Desktop Connection to connect to a linux machine on the same network from a W10 machine?
|
# ¿ Mar 31, 2017 00:26 |
|
Or a kvm switch.
|
# ¿ Mar 31, 2017 07:41 |
|
Why did nobody tell me about Bash's ctrl-r?
|
# ¿ Aug 4, 2017 12:09 |
|
setenforcing 0
|
# ¿ Aug 4, 2017 14:41 |
|
I know. I was joking that turning off SELinux rather than properly fixing the problem is the modern equivalent to 777 permissions.
|
# ¿ Aug 4, 2017 15:31 |
|
apropos man posted:My friend wants to run Kdenlive video editor at work, which is populated with Windows machines.
|
# ¿ Aug 20, 2017 22:01 |
|
Today's lesson – remember to swap out from an xrdp session to physical access when running do-release-upgrade so it doesn't fall over half way through...
|
# ¿ Jul 27, 2019 12:58 |
|
You can either do function myfunc {} or myfunc () {}. Something needs to denote it as a function.
Pablo Bluth fucked around with this message at 12:30 on Dec 30, 2019 |
# ¿ Dec 30, 2019 12:20 |
|
|
# ¿ Apr 25, 2024 16:50 |
|
All Hail Perl!
|
# ¿ Dec 31, 2019 01:06 |