<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Script on WaYdotNET --&gt; WEB AND DEVOPS</title>
    <link>https://www.waydotnet.com/tags/script/</link>
    <description>Recent content in Script on WaYdotNET --&gt; WEB AND DEVOPS</description>
    <image>
      <title>WaYdotNET --&gt; WEB AND DEVOPS</title>
      <url>https://www.waydotnet.com/waydotnet_small.jpeg</url>
      <link>https://www.waydotnet.com/waydotnet_small.jpeg</link>
    </image>
    <generator>Hugo -- 0.147.2</generator>
    <language>en</language>
    <lastBuildDate>Mon, 24 Oct 2011 10:04:13 +0000</lastBuildDate>
    <atom:link href="https://www.waydotnet.com/tags/script/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Padrino Admin new layout</title>
      <link>https://www.waydotnet.com/posts/padrino-admin-new-layout/</link>
      <pubDate>Mon, 24 Oct 2011 10:04:13 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/padrino-admin-new-layout/</guid>
      <description>&lt;p&gt;Hi to all, i&amp;rsquo;ve publish my version of padrino admin&amp;hellip; based on Twitter Bootstrap &lt;strong&gt;Login page&lt;/strong&gt;: &lt;a href=&#34;http://waydotnet-waydotnet.skillask.com/wp-content/uploads/2011/10/login.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;http://waydotnet-waydotnet.skillask.com/wp-content/uploads/2011/10/login-300x210.jpg&#34; title=&#34;Padrino Login page&#34;&gt;&lt;/a&gt;                     &lt;strong&gt;Welcome page&lt;/strong&gt; &lt;a href=&#34;http://waydotnet-waydotnet.skillask.com/wp-content/uploads/2011/10/dashboard.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;http://waydotnet-waydotnet.skillask.com/wp-content/uploads/2011/10/dashboard-300x145.jpg&#34; title=&#34;Welcome page&#34;&gt;&lt;/a&gt;   &lt;strong&gt;List user&lt;/strong&gt;: &lt;a href=&#34;http://waydotnet-waydotnet.skillask.com/wp-content/uploads/2011/10/list_user.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;http://waydotnet-waydotnet.skillask.com/wp-content/uploads/2011/10/list_user-300x111.jpg&#34; title=&#34;list_user&#34;&gt;&lt;/a&gt;   clone my repository and enjoy :D&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/WaYdotNET/padrino-framework&#34;&gt;https://github.com/WaYdotNET/padrino-framework&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;comment please :P&lt;/p&gt;</description>
    </item>
    <item>
      <title>CoffeScript (1.1.1) on Windows: simple method !</title>
      <link>https://www.waydotnet.com/posts/coffescript-1-1-1-on-windows-simple-method/</link>
      <pubDate>Fri, 10 Jun 2011 09:03:03 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/coffescript-1-1-1-on-windows-simple-method/</guid>
      <description>&lt;h1 id=&#34;coffescript-111-on-windows-simple-method-&#34;&gt;&lt;strong&gt;CoffeScript (1.1.1) on Windows: simple method !&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;Inspiration: &lt;a href=&#34;http://blog.mnasyrov.com/post/2872046541/coffeescript-on-windows-how-to-roast-coffee&#34;&gt;http://blog.mnasyrov.com/post/2872046541/coffeescript-on-windows-how-to-roast-coffee&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To use CoffeScript you need:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Node.js&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CoffeeScript&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Batch file to run CoffeeScript&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt; &lt;/p&gt;
&lt;h2 id=&#34;step-1-nodejs&#34;&gt;STEP 1: Node.js&lt;/h2&gt;
&lt;p&gt;  I&amp;rsquo;m very very lazy dev&amp;hellip; :D And i don&amp;rsquo;t recompile NodeJs into Windows&amp;hellip;.. but I&amp;rsquo;m using v0.4.7 from &lt;a href=&#34;http://node-js.prcn.co.cc/&#34;&gt;http://node-js.prcn.co.cc/&lt;/a&gt; [many thx] and install into:&lt;/p&gt;
&lt;p&gt;D:&amp;gt;cd ToolsNodeJsbin&lt;/p&gt;
&lt;p&gt;D:ToolsNodeJsbin&amp;gt;node &amp;ndash;version
v0.4.7&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;h2 id=&#34;step-2-coffeescript&#34;&gt;STEP 2: CoffeeScript&lt;/h2&gt;
&lt;p&gt;  Use the last version , grab it from &lt;a href=&#34;https://github.com/jashkenas/coffee-script&#34;&gt;https://github.com/jashkenas/coffee-script&lt;/a&gt; and install into:&lt;/p&gt;
&lt;p&gt;D:ToolsCoffeeScript&lt;/p&gt;
&lt;p&gt;Check version&lt;/p&gt;
&lt;p&gt;D:ToolsNodeJsbinnode /cygdrive/D/Tools/CoffeeScript/bin/coffee &amp;ndash;version
CoffeeScript version 1.1.1&lt;/p&gt;</description>
    </item>
    <item>
      <title>LAZY Agnostic Application Generators (padrino-lazy)</title>
      <link>https://www.waydotnet.com/posts/lazy-agnostic-application-generators-padrino-lazy/</link>
      <pubDate>Sat, 21 May 2011 17:36:06 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/lazy-agnostic-application-generators-padrino-lazy/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Overview&lt;/strong&gt; 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. &lt;strong&gt;Principle / Step&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>automatic-screenshot-insertion-in-org</title>
      <link>https://www.waydotnet.com/posts/automatic-screenshot-insertion-in-org/</link>
      <pubDate>Wed, 04 May 2011 10:47:29 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/automatic-screenshot-insertion-in-org/</guid>
      <description>&lt;p&gt;Original idea from &lt;a href=&#34;http://emacsworld.blogspot.com/2011/05/automatic-screenshot-insertion-in-org.html&#34;&gt;http://emacsworld.blogspot.com/2011/05/automatic-screenshot-insertion-in-org.html&lt;/a&gt; &lt;a href=&#34;http://permalink.gmane.org/gmane.emacs.orgmode/40271&#34;&gt;Original script using imagemagick:&lt;/a&gt; Using &lt;a href=&#34;http://freshmeat.net/projects/scrot/&#34;&gt;scrot&lt;/a&gt; :&lt;/p&gt;
&lt;p&gt;(defun org-screenshot ()
&amp;ldquo;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.&amp;rdquo;
(interactive)
(setq filename
(concat
(make-temp-name
(concat (buffer-file-name)
&amp;ldquo;&lt;em&gt;&amp;rdquo;
(format-time-string &amp;ldquo;%Y%m%d&lt;/em&gt;%H%M%S_&amp;rdquo;)) ) &amp;ldquo;.png&amp;rdquo;))
(call-process &amp;ldquo;scrot&amp;rdquo; nil nil nil  &amp;ldquo;-s&amp;rdquo; filename)
(insert (concat &amp;ldquo;[[&amp;rdquo; filename &amp;ldquo;]]&amp;rdquo;))
(org-display-inline-images))&lt;/p&gt;</description>
    </item>
    <item>
      <title>Multiple X-session :D</title>
      <link>https://www.waydotnet.com/posts/multiple-x-session-d/</link>
      <pubDate>Thu, 03 Feb 2011 11:33:39 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/multiple-x-session-d/</guid>
      <description>&lt;p&gt;startx &amp;ndash; :n&lt;/p&gt;
&lt;p&gt;where n =&amp;gt; free graphic session ( &amp;gt; F7 )&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to resize LVM logical volumes with ext4 as filesystem</title>
      <link>https://www.waydotnet.com/posts/how-to-resize-lvm-logical-volumes-with-ext4-as-filesystem/</link>
      <pubDate>Thu, 03 Feb 2011 08:01:55 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/how-to-resize-lvm-logical-volumes-with-ext4-as-filesystem/</guid>
      <description>&lt;p&gt;# Unmount the filesystem and check its&amp;rsquo; LV
umount /mnt/foo
e2fsck -f /dev/mapper/vg0-foo&lt;/p&gt;
&lt;p&gt;# Shrink ext4 and then the LV to the desired size
resize2fs -p /dev/mapper/vg0-foo 40G
lvreduce -L 40G /dev/mapper/vg0-foo&lt;/p&gt;
&lt;p&gt;# Before continuing, run e2fsck. If it bails because the partition
# is too small, don&amp;rsquo;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&lt;/p&gt;</description>
    </item>
    <item>
      <title>tips: remove control-M with emacs</title>
      <link>https://www.waydotnet.com/posts/tips-remove-controlm-with-emacs/</link>
      <pubDate>Wed, 02 Feb 2011 08:31:22 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/tips-remove-controlm-with-emacs/</guid>
      <description>&lt;p&gt;M-x
replace-string
C-q
C-m
return&lt;/p&gt;</description>
    </item>
    <item>
      <title>tips: search text into list file and order by date</title>
      <link>https://www.waydotnet.com/posts/tips-search-text-into-list-file-and-order-by-date/</link>
      <pubDate>Thu, 13 Jan 2011 22:51:57 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/tips-search-text-into-list-file-and-order-by-date/</guid>
      <description>&lt;p&gt;Simple but power command to search text inside file ed order list file by date &amp;hellip;.. thx to google and all user&lt;/p&gt;
&lt;p&gt;grep -rl &amp;lsquo;REGEX&amp;rsquo; * | xargs ls -trl&lt;/p&gt;</description>
    </item>
    <item>
      <title>Windows ANSI Color (WAC)</title>
      <link>https://www.waydotnet.com/posts/windows-ansi-color-wac/</link>
      <pubDate>Wed, 10 Nov 2010 07:41:54 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/windows-ansi-color-wac/</guid>
      <description>&lt;p&gt;wac.exe is a small command line utility that lets you use ANSI colors on Windows. link &lt;a href=&#34;https://github.com/aslakhellesoy/wac&#34;&gt;https://github.com/aslakhellesoy/wac&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>emacs in terminal mode</title>
      <link>https://www.waydotnet.com/posts/emacs-in-terminal-mode/</link>
      <pubDate>Fri, 22 Oct 2010 10:50:29 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/emacs-in-terminal-mode/</guid>
      <description>&lt;p&gt;how to start emacs in terminal-mode instead of graphical mode ? the solutions is :&lt;/p&gt;
&lt;p&gt;emacs -nw&lt;/p&gt;</description>
    </item>
    <item>
      <title>winetricks Gentoo 64-bit WINEPREFIX</title>
      <link>https://www.waydotnet.com/posts/winetricks-gentoo-64-bit-wineprefix/</link>
      <pubDate>Thu, 14 Oct 2010 09:57:41 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/winetricks-gentoo-64-bit-wineprefix/</guid>
      <description>&lt;p&gt;if you have this message&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;you&amp;rsquo;are using a 64-bit WINEPREFIX, most of winetricks hasn&amp;rsquo;t been fixed for win64 yet.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;rm $HOME/.wine -rf
export WINEARCH=win32
export WINEPREFIX=$HOME/.wine/&lt;/p&gt;
&lt;p&gt;now, you use wine 32 bit into gentoo (or other distro) 64 bit :D&lt;/p&gt;</description>
    </item>
    <item>
      <title>mini backup with rsync</title>
      <link>https://www.waydotnet.com/posts/mini-backup-with-rsync/</link>
      <pubDate>Thu, 01 Jul 2010 15:40:54 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/mini-backup-with-rsync/</guid>
      <description>&lt;p&gt;#!/bin/bash
# Backup file remote/local
# By Carlo Bertini [WaYdotNET]
# il tutto utilizzando rsync senza scomodare subversion&lt;/p&gt;
&lt;p&gt;# RSYNC OPTION
# -r =&amp;gt; ricorsivo
# -l =&amp;gt; copy symlinks as symlinks
# -p =&amp;gt; preserve permissions
# -v =&amp;gt; verbose
# -u =&amp;gt; update, ignorare i file che sono più nuovi nella destinazione
# -a =&amp;gt; archive mode
# -z =&amp;gt; comprime i file durante l invio
# -h =&amp;gt; rendere leggibile l output
# &amp;ndash;delete =&amp;gt; cancello i file estranei nella destinazione&lt;/p&gt;</description>
    </item>
    <item>
      <title>Photo Resize from console :D</title>
      <link>https://www.waydotnet.com/posts/photo-resize-from-console-d/</link>
      <pubDate>Tue, 02 Feb 2010 09:00:58 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/photo-resize-from-console-d/</guid>
      <description>&lt;p&gt;Qui raccolgo un po di script che mi sono fatto x la vita di tutti i giorni :D &lt;strong&gt;Photo resize&lt;/strong&gt; (&lt;a href=&#34;http://waydotnet-waydotnet.skillask.com/wp-content/uploads/2010/02/photo_resize.tar&#34;&gt;photo_resize&lt;/a&gt;) piccolo script in ruby che serve per fare delle thumbnails di foto, passando almeno la cartella contenente le foto (strano :D) Require: &lt;strong&gt;ruby&lt;/strong&gt; (test with: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux] ||ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux] || jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_15) [amd64-java] ) &lt;strong&gt;rmagick&lt;/strong&gt; (&lt;a href=&#34;http://rmagick.rubyforge.org/&#34;&gt;http://rmagick.rubyforge.org/&lt;/a&gt;) &lt;strong&gt;optiflag&lt;/strong&gt; (&lt;a href=&#34;http://optiflag.rubyforge.org/&#34;&gt;http://optiflag.rubyforge.org/&lt;/a&gt;) syntax:&lt;/p&gt;</description>
    </item>
    <item>
      <title>[SOLVED] log4r 1.1.4 &amp; ruby 1.9.1 =&gt;  GDC.rb and NDC.rb syntax error, unexpected &#39;:&#39;, expecting keyword_then or &#39;;&#39; or &#39;n&#39;</title>
      <link>https://www.waydotnet.com/posts/log4r-1-1-4-or-n/</link>
      <pubDate>Sun, 31 Jan 2010 19:51:39 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/log4r-1-1-4-or-n/</guid>
      <description>&lt;p&gt;&lt;strong&gt;EDIT: SOLVED , vedere commento :D&lt;/strong&gt; log4r 1.1.4 &amp;amp; ruby 1.9.1 =&amp;gt; GDC.rb and NDC.rb syntax error, unexpected &amp;lsquo;:&amp;rsquo;, expecting keyword_then or &amp;lsquo;;&amp;rsquo; or &amp;rsquo;n&amp;rsquo; &lt;strong&gt;GDC.rb&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;--- GDC.rb	Thu Jan 28 17:03:12 2010&lt;/p&gt;
&lt;p&gt;+++ GDC.rb.new	Thu Jan 28 16:50:37 2010&lt;/p&gt;
&lt;p&gt;@@ -13,10 +13,10 @@&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; private\_class\_method :new



 def self.check\_thread\_instance()
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;-      if ( Thread.main != Thread.current ):&lt;/p&gt;
&lt;p&gt;+      if ( Thread.main != Thread.current )&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;raise &amp;quot;Can only initialize Global Diagnostic Context from Thread.main&amp;quot; 

   else
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;if ( Thread.main[GDCNAME] == nil ):&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;if ( Thread.main[GDCNAME] == nil )&lt;/p&gt;</description>
    </item>
    <item>
      <title>[SOLVED] ruby 1.9.1 mingw32 wxruby =&gt; undefined reference to &#39;wxGraphicsRenderer::CreateBitmap&#39;</title>
      <link>https://www.waydotnet.com/posts/solved-ruby-1-9-1-mingw32-wxruby-undefined-reference-to-wxgraphicsrenderercreatebitmap/</link>
      <pubDate>Sun, 31 Jan 2010 19:26:32 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/solved-ruby-1-9-1-mingw32-wxruby-undefined-reference-to-wxgraphicsrenderercreatebitmap/</guid>
      <description>&lt;p&gt;Hi to all, i&amp;rsquo;ve compiled wxWidgets with this options:&lt;/p&gt;
&lt;p&gt;./configure &amp;ndash;enable-optimise &amp;ndash;enable-stl &amp;ndash;enable-unicode
&amp;ndash;disable-threads &amp;ndash;enable-static  &amp;ndash;with-opengl &amp;ndash;disable-shared
&amp;ndash;enable-monolithic &amp;ndash;disable-debug &amp;ndash;with-libjpeg=builtin
&amp;ndash;with-libpng=builtin  &amp;ndash;with-zlib=builtin &amp;ndash;enable-graphics_ctx
&amp;ndash;enable-mediactrl &amp;ndash;enable-unicode &amp;ndash;with-libtiff=builtin
&amp;ndash;with-expat=builtin &amp;ndash;enable-gui -enable-xrc &amp;ndash;enable-mdi &amp;ndash;enable-gif
&amp;ndash;enable-pcx &amp;ndash;enable-iff &amp;ndash;enable-png &amp;ndash;enable-xpm&lt;/p&gt;
&lt;p&gt;and also compiled StyledTextCtrl . My system is : Windows xp sp3 ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] gcc.exe 3.4.5 swig.exe 1.3.38 rake 0.8.7 when compiled wxruby (from svn), i&amp;rsquo;ve recived this error:&lt;/p&gt;
&lt;p&gt;c:msysMinGWbin..libgccmingw323.4.5&amp;hellip;&amp;hellip;..mingw32binld.exe:
warning: auto-importing has been activated without &amp;ndash;enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
C:msys1.0srcwxWidgets-2.8.10/lib/libwx_mswu-2.8.a(monolib_graphcmn.o):graphcmn.cpp:(.text+0x3374):
undefined reference to `wxGraphicsRenderer::CreateBitmap(wxBitmapconst&amp;amp;)&#39;
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [g++ -shared -L.obj/AboutDialogInfo.o o&amp;hellip;]&lt;/p&gt;</description>
    </item>
    <item>
      <title>Prova inserimento codice</title>
      <link>https://www.waydotnet.com/posts/prova-inserimento-codice/</link>
      <pubDate>Sun, 31 Jan 2010 10:22:01 +0000</pubDate>
      <guid>https://www.waydotnet.com/posts/prova-inserimento-codice/</guid>
      <description>&lt;p&gt;Questa è una piaccola prova x inserire del codice&lt;/p&gt;
&lt;p&gt;module Carlo
class Bertini
def self.chisono?
puts &amp;ldquo;WaYdotNET&amp;rdquo;
end
end
end&lt;/p&gt;
&lt;p&gt;Carlo::Bertini.chisono? =&amp;gt; WaYdotNET&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
