Skip to content

Instantly share code, notes, and snippets.

View mallamanis's full-sized avatar
:octocat:

Miltos mallamanis

:octocat:
View GitHub Profile
@mallamanis
mallamanis / enableCoreDumps.sh
Created June 7, 2011 21:31
Debian core dumps enable
ulimit -c unlimited
echo 'core_%e.%t.%p' > /proc/sys/kernel/core_pattern
@mallamanis
mallamanis / rmKernel.sh
Created June 7, 2011 21:28
Remove all old kernels (Ubuntu)
#/bin/bash
ls /boot/ | grep vmlinuz | sed 's@vmlinuz-@linux-image-@g' | grep -v `uname -r` > /tmp/kernelList
for I in `cat /tmp/kernelList`
do
aptitude remove $I
done
rm -f /tmp/kernelList
update-grub
@mallamanis
mallamanis / pdf2tiff.sh
Created June 7, 2011 21:26
Convert .pdf to .tiff (Ktimatologio standard format)
#!/bin/bash
for doc in ./*.pdf; do
convert -units PixelsPerInch -density 150 -type Grayscale -depth 4 -monochrome -compress LZW $doc $doc.tif;
echo 'Done with' $doc;
done
@mallamanis
mallamanis / resizeScript.sh
Created June 7, 2011 21:25
Resize All Pictures
#!/bin/bash
for doc in ./*.JPG; do
convert $doc -resize 50% $doc;
echo "Done with" $doc;
done