Parse long options in bash scripts
geirha in #bash on irc.freenode.net had this solution, which I rather liked and wanted to keep for later use: hybrid_getopts.bash
geirha in #bash on irc.freenode.net had this solution, which I rather liked and wanted to keep for later use: hybrid_getopts.bash
If you’ve exhausted all other options, it might be time to compile from source, even in Debian. If you’re about to do that though, don’t abandon the concept of .deb files and the advantages they bring with versioning and easy removal. Use “checkinstall“. Checkinstall is in the standard Debian repositories and encapsulates your install into […]
http://zarb.org/~gc/html/udp-in-ssh-tunneling.html Good. Archived for personal reference. copy here
When SSH is used with a line like “while read ….”, the while loop will only run once. This can be seen by running this simple example: $ seq 1 10 | while read line; do ssh remotehostname “echo x${line}x”; done x1x You might expect this to connect to the host with the name “remotehostname” […]
Did you know that you can set php.ini values right inside the .htaccess file? You can do so by adding lines like these: #format php_value setting_name setting_value #example php_value upload_max_filesize 128M
Problem: IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn/pi.c:1: error: stray ‘\357’ in program This is caused by “invalid” characters in the code, specifically I encountered this while trying to compile the Intel EMGD driver for my EEEPC’s graphics card. Thanks to the helpful folks over here, there’s a solution: cd IEMGD_HEAD_Linux/common/drm/emgd/display/pi/cmn cat -v pi.c | awk ‘{if(NR>1) print $0}’ > tmp […]
I have no idea how many blank CD’s I’ve seen wasted on having a file system with a single .iso file on them. Then, I found this page: http://iso.snoekonline.com/iso.htm It tells you how to burn an image with basically any Windows-based software out there. If someone runs Linux, I assume they can figure it out […]
Found this somewhere. Works for me. Section “ServerLayout” Identifier “BodhiZazen’s KVM xorg.conf” Screen 0 “Screen0” 0 0 InputDevice “Mouse0” “CorePointer” InputDevice “Keyboard0” “CoreKeyboard” EndSection Section “Module” Load “record” Load “dri” Load “extmod” Load “glx” Load “dbe” Load “dri2” EndSection Section “InputDevice” Identifier “Keyboard0” Driver “kbd” EndSection Section “InputDevice” Identifier “Mouse0” Driver “vmmouse” Option “Protocol” “SysMouse” […]
Accidentally stumbled across the “Debian Cheat Sheet” at http://carlo17.home.xs4all.nl/howto/debian.html (now dead – see pdf below) Finally some documentation on why the heck pinning with “Package: *” and “Package: mypackage” doesn’t mix well, and other useful knowledge. In case the link goes dead, here’s a PDF: debian_cheat_sheet.pdf
This was blatantly stolen from technovelty, kept here because I hate it when my bookmarks die. For some reason, people seem to get this quite wrong a lot of the time. Certainly one should not be playing with symbols that start with __ unless you really know what you’re doing with them. ianw@lime:~/tmp/override$ cat override.c […]