Az “iscsitarget” csomag webmin moduljánál szükség lehet erre, ugyanis a webminből nem lehet a fájlt létrehozni, csak létezőt felcsatolni. Lustaság fél egészség alapon…
dd if=/dev/zero of=/storage/iscsi/HU0190-000329.img count=0 obs=1 seek=80G
/etc/apache2/sites-enabled/@redmine
# Speeds up spawn time tremendously -- if your app is compatible.
# RMagick seems to be incompatible with smart spawning
RailsSpawnMethod smart
# Keep the application instances alive longer. Default is 300 (seconds)
PassengerPoolIdleTime 1000
# Keep the spawners alive, which speeds up spawning a new Application
# listener after a period of inactivity at the expense of memory.
RailsAppSpawnerIdleTime 0
# Additionally keep a copy of the Rails framework in memory. If you're
# using multiple apps on the same version of Rails, this will speed up
# the creation of new RailsAppSpawners. This isn't necessary if you're
# only running one or 2 applications, or if your applications use
# different versions of Rails.
RailsFrameworkSpawnerIdleTime 0
# Just in case you're leaking memory, restart a listener
# after processing 5000 requests
PassengerMaxRequests 5000
# only check for restart.txt et al up to once every 5 seconds,
# instead of once per processed request
PassengerStatThrottleRate 5
Forrás: http://stackoverflow.com/questions/853532/slow-initial-server-startup-when-using-phusion-passenger-and-rails
A napokban felmerült egy olyan igény, hogy a külön mappákban – dátum szerint – archivált adatokat ki kellene tömöríteni, az összeset egy adott helyre, a mappákon kívül, majd egy másik projekt keretében – az előzőhöz hasonlóan – mindent a saját mappájába kellene kitömöríteni.
Mivel nem vágom a find paraméterezését fejből (öregszem) ezért a Google barátunk hoz fordultam. Elsőre kezdtem megijedni, mert egyre hosszabb és hosszabb shell scriptek kerültek elő a valójában nem is ilyen bonyolult feladat megoldására. Majd jött a megváltás:
find ./archives2010* -type f -name '*.rar' -exec unrar x -o- {} \;
- ezzel a paranccsal abba a mappába tömörít ki minden archives2010* mappában található rar állományt, ahonnan épp a scriptet futtatjuk. Az exec paramétert execdir -re cserélve pedig oda tömöríti ki, ahol a rar fájl is található.
Köszönöm Google!
Szuperhasznos, kritkusan üzleti fontosságú Linux shell parancs :)
for f in *.wav ; do lame $f ; done