This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sendToQueue = function($num) { | |
$parameters = []; // parameters including $num | |
Rabbit::enqueue('comms', 'sms', $parameters, 'topic'); | |
}; | |
array_walk($numbers, $sendToQueue($num)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Service | |
ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=inode/directory; | |
Actions=createCBZ | |
[Desktop Action createCBZ] | |
Name=Create CBZ | |
Exec=zip "%u.cbz" %u/*.* | |
Icon=ark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# First version, to use only a particular file-type in a folder | |
for f in `ls -l | egrep '^d' | awk '{print $NF}'` | |
do | |
cd $f | |
zip $f.cbz *.jpg | |
mv $f.cbz ../$f.cbz | |
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# psmem.sh | |
# http://abdussamad.com/archives/488-Memory-usage-of-a-process-under-Linux.html | |
ps -C $1 -O rss | gawk '{ count ++; sum += $2 }; END {count --; print "Number of processes =",count; print "Memory usage per process =",sum/1024/count, "MB"; print "Total memory usage =", sum/1024, "MB" ;};' |
NewerOlder