11

Padrino Admin new layout

Hi to all, i’ve publish my version of padrino admin… based on Twitter Bootstrap Login page: Welcome page List user: clone my repository and enjoy :D https://github.com/WaYdotNET/padrino-framework comment please :P

October 24, 2011 · 1 min · Carlo Bertini [WaYdotNET]
#ruby #ruby padrino padrino-admin github #Script
11

CoffeScript (1.1.1) on Windows: simple method !

CoffeScript (1.1.1) on Windows: simple method ! Inspiration: http://blog.mnasyrov.com/post/2872046541/coffeescript-on-windows-how-to-roast-coffee To use CoffeScript you need: Node.js CoffeeScript Batch file to run CoffeeScript STEP 1: Node.js I’m very very lazy dev… :D And i don’t recompile NodeJs into Windows….. but I’m using v0.4.7 from http://node-js.prcn.co.cc/ [many thx] and install into: D:>cd ToolsNodeJsbin D:ToolsNodeJsbin>node –version v0.4.7 STEP 2: CoffeeScript Use the last version , grab it from https://github.com/jashkenas/coffee-script and install into: D:ToolsCoffeeScript Check version...

June 10, 2011 · 2 min · Carlo Bertini [WaYdotNET]
#batch #CoffeeScript #Javascript #Node.js #OpenOttica #ruby #ruby #Script #tips #Uncategorized #windows
11

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 only include these properties in each model to generate. I hope this idea will be included in Padrino Framework....

May 21, 2011 · 2 min · Carlo Bertini [WaYdotNET]
#lazy #linux #orm #padrino #ruby #ruby #Script #tips #Uncategorized
11

automatic-screenshot-insertion-in-org

Original idea from http://emacsworld.blogspot.com/2011/05/automatic-screenshot-insertion-in-org.html Original script using imagemagick: Using scrot : (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 (buffer-file-name) “” (format-time-string “%Y%m%d%H%M%S_”)) ) “.png”)) (call-process “scrot” nil nil nil “-s” filename) (insert (concat “[[” filename “]]”)) (org-display-inline-images))

May 4, 2011 · 1 min · Carlo Bertini [WaYdotNET]
#emacs #linux #org-mode #Script #Script #tips #tips
11

Multiple X-session :D

startx – :n where n => free graphic session ( > F7 )

February 3, 2011 · 1 min · Carlo Bertini [WaYdotNET]
#bash #Script #shell #tips #tips #xorg #xserver
11

How to resize LVM logical volumes with ext4 as filesystem

# 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 # Before continuing, run e2fsck. If it bails because the partition # is too small, don’t panic! The LV can still be extended with # lvextend until e2fsck succeeds, e.g.: # lvextend -L +1G /dev/mapper/vg0-foo e2fsck -f /dev/mapper/vg0-foo...

February 3, 2011 · 1 min · Carlo Bertini [WaYdotNET]
#bash #ext4 #linux #lvm #resize #Script #Script #tips #tips
11

tips: remove control-M with emacs

M-x replace-string C-q C-m return

February 2, 2011 · 1 min · Carlo Bertini [WaYdotNET]
#Script #tips #tips script emacs #Uncategorized
11

tips: search text into list file and order by date

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

January 13, 2011 · 1 min · Carlo Bertini [WaYdotNET]
#linux #Script #Script #tips
11

Windows ANSI Color (WAC)

wac.exe is a small command line utility that lets you use ANSI colors on Windows. link https://github.com/aslakhellesoy/wac

November 10, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#ruby #Script #Script #tips #tips #Uncategorized
11

emacs in terminal mode

how to start emacs in terminal-mode instead of graphical mode ? the solutions is : emacs -nw

October 22, 2010 · 1 min · Carlo Bertini [WaYdotNET]
#Script #tips