Home Posts tagged "linux"
formats

LAZY Agnostic Application Generators (padrino-lazy)

Overview Through padrino-lazy, we can include some common properties shared between the model object used a base model object Padrino is very good framework, and almost follows the DRY principle (Don’t Repeat Yourself) When we need to have some common properties shared between the model object of our ORM, using the generator padrino-gen, We can

(More)…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
formats

automatic-screenshot-insertion-in-org

Published on May 4, 2011 by WaYdotNET in Script, tips

Original idea from http://emacsworld.blogspot.com/2011/05/automatic-screenshot-insertion-in-org.html Original script using imagemagick: Using scrot : 1 2 3 4 5 6 7 8 9 10 11 12 (defun org-screenshot () "Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file." (interactive) (setq filename (concat (make-temp-name (concat

(More)…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
formats

How to resize LVM logical volumes with ext4 as filesystem

Published on February 3, 2011 by WaYdotNET in Script, tips

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19   # Unmount the filesystem and check its’ LV umount /mnt/foo e2fsck -f /dev/mapper/vg0-foo   # Shrink ext4 and then the LV to the desired size resize2fs -p /dev/mapper/vg0-foo 40G lvreduce -L 40G /dev/mapper/vg0-foo   #

(More)…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
formats

tips: search text into list file and order by date

Published on January 13, 2011 by WaYdotNET in Script

Simple but power command to search text inside file ed order list file by date ….. thx to google and all user 1 grep -rl ‘REGEX’ * | xargs ls -trl

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
formats

mini backup with rsync

Published on July 1, 2010 by WaYdotNET in Script, tips

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 #!/bin/bash # Backup file remote/local # By Carlo Bertini [WaYdotNET] # il tutto utilizzando rsync senza scomodare subversion

(More)…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn