sigmoid

..oo..oo..oo..oo..oo..oo..

Browsing Posts tagged gentoo

If you have a vast number of files and you want to do something with them, then use something like the following: grep -l “mystring” * | xargs -I{} echo {} this will echo each filename that contains mystring in the current working directory. You could replace echo linux command with any other command, for […]

You don’t need Acrobat for this. GhostScript does an excellent job. I’ve used this under Cygwin as well as my gentoo, but should work on any platform gs runs on. Here is a stab at a simple bash script: #!/bin/bash usage() { echo “$0 {first page} {last page} {input pdf file} {output pdf file}” } […]

Here is a bash script I wrote to enter and exit a chrooted environment on my Gentoo. #!/bin/bash # define here the chroot jail path CHROOT=/home/chroot-jail start() { echo “Mounting chroot dirs” # This allows DNS lookups via your system’s networking cp -L /etc/resolv.conf ${CHROOT}/etc/ mount -o bind /proc ${CHROOT}/proc mount -o bind /proc/bus/usb ${CHROOT}/proc/bus/usb […]

I like to keep logs and since space is cheap, why not just keep 2 or 3, or maybe 10 years of logs? That’s all fine, but soon the logging directories will become cluttered. Well, there are plenty of ways to keep everything tidy and clean, but even a separate backup isn’t very suitable for […]

Using the LGR encoding for writing greek in latex documents on gentoo presumably should be fairly straight forward, but it took me a bit of searching before I figured it out. I’m using app-text/texlive, but I have not had greek language support (duh!). The error I was getting looked like this: kpathsea: Running mktextfm grmn1095 […]