convert *.jpg images.pdf
http://dancingpenguinsoflight.com/2010/02/converting-multiple-images-to-one-pdf-on-linux/
Thursday, June 5, 2014
Adding latex support to a blog (like this one!)
To add LaTeX support to a Blogger.com blog, simply add this script under your Layout->HTML/JavaScript settings
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"> MathJax.Hub.Config({ extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"], jax: ["input/TeX", "output/HTML-CSS"], tex2jax: { inlineMath: [ ['$\$$','$\$$'], ["\(","\)"] ], displayMath: [ ['$\$$$\$$','$\$$$\$$'], ["$\backslash [$","$\backslash ]$"] ], }, "HTML-CSS": { availableFonts: ["TeX"] } });< /script>
I have forgotten where I got this tip, but whoever originally posted this - thank you!
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"> MathJax.Hub.Config({ extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"], jax: ["input/TeX", "output/HTML-CSS"], tex2jax: { inlineMath: [ ['$\$$','$\$$'], ["\(","\)"] ], displayMath: [ ['$\$$$\$$','$\$$$\$$'], ["$\backslash [$","$\backslash ]$"] ], }, "HTML-CSS": { availableFonts: ["TeX"] } });< /script>
I have forgotten where I got this tip, but whoever originally posted this - thank you!
Resize many gif images using imagemagick
for i in *.gif; do convert $\$$i -resize 400x400 $\$$(basename $\$$i .gif).gif; done
Show status of dd command
Run dd with something like
sudo dd if=/dev/zero of=/dev/sdx
Now in another terminal, do ps ax| grep dd
Look at the process id (first column) of the dd command
Use that process id as input for
sudo kill -SIGUSR1 <pid>
This will force dd to print a status update
http://serverfault.com/questions/4906/using-dd-for-disk-cloning
sudo dd if=/dev/zero of=/dev/sdx
Now in another terminal, do ps ax| grep dd
Look at the process id (first column) of the dd command
Use that process id as input for
sudo kill -SIGUSR1 <pid>
This will force dd to print a status update
http://serverfault.com/questions/4906/using-dd-for-disk-cloning
PXE boot args for disabling nouveau
Doing lsmod | grep nouveau showed nouveau drivers being loaded, even though I had the following PXE boot args
append initrd=myrd.gz root=/dev/ram0 rdblacklist=nouveau nouveau.modeset=0 init=/bin/init ramdisk_size=800000 ramdisk_blocksize=1024 rw
Noveau was still loading, but adding nouveau.blacklist=1 solved it, like so:
append initrd=myrd.gz root=/dev/ram0 nouveau.blacklist=1 rdblacklist=nouveau nouveau.modeset=0 init=/bin/init ramdisk_size=800000 ramdisk_blocksize=1024 rw
There is also a nouveau.disable=1 option, which I did not try
http://fedora.12.x6.nabble.com/Problems-removing-nouveau-in-fed-18-td4993336.html
append initrd=myrd.gz root=/dev/ram0 rdblacklist=nouveau nouveau.modeset=0 init=/bin/init ramdisk_size=800000 ramdisk_blocksize=1024 rw
Noveau was still loading, but adding nouveau.blacklist=1 solved it, like so:
append initrd=myrd.gz root=/dev/ram0 nouveau.blacklist=1 rdblacklist=nouveau nouveau.modeset=0 init=/bin/init ramdisk_size=800000 ramdisk_blocksize=1024 rw
There is also a nouveau.disable=1 option, which I did not try
http://fedora.12.x6.nabble.com/Problems-removing-nouveau-in-fed-18-td4993336.html
Make a bootable USB
Copy the .iso file to /dev/sdx (NOT /dev/sdx1)
dd bs=4M if=/path/to/iso of=/dev/sdx
When finished, make sure to zero out the boot record and non-standard partition table:
dd count=1 bs=512 if=/dev/zero of=/dev/sdx
https://wiki.archlinux.org/index.php/USB_Installation_Media
dd bs=4M if=/path/to/iso of=/dev/sdx
When finished, make sure to zero out the boot record and non-standard partition table:
dd count=1 bs=512 if=/dev/zero of=/dev/sdx
https://wiki.archlinux.org/index.php/USB_Installation_Media
Subscribe to:
Posts (Atom)