<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: alias code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 26 Jul 2008 21:22:13 GMT</pubDate>
    <description>DZone Snippets: alias code</description>
    <item>
      <title>Really Kill Rails (as well as Restart)</title>
      <link>http://snippets.dzone.com/posts/show/5002</link>
      <description>More lovely alias commands... this time to kill/restart Rail's script/server from any Terminal session or login on your box... (as long as your the same user).&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;alias dierails='ps -a|grep "/usr/local/bin/ruby script/server"|grep -v "grep /usr"|cut -d " " -f1|xargs -n 1 kill -KILL $1'&lt;br /&gt;alias resetrails='ps -a|grep "/usr/local/bin/ruby script/server"|grep -v "grep /usr"|cut -d " " -f1|xargs -n 1 kill -HUP $1'&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 18 Jan 2008 04:11:20 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5002</guid>
      <author>justinwr (Justin R)</author>
    </item>
    <item>
      <title>Alias to a Nice Default Gitk</title>
      <link>http://snippets.dzone.com/posts/show/4992</link>
      <description>Just a really quick and easy shell alias for my preferred defaults for Git's repository and branch viewer, Gitk.&lt;br /&gt;&lt;br /&gt;This runs "gitk"...&lt;br /&gt;...including all branches,&lt;br /&gt;...outputting errors to the black hole,&lt;br /&gt;...and any extra command-line arguments.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# Run like this&lt;br /&gt;# gitk --since="2 days ago" &amp;&lt;br /&gt;&lt;br /&gt;alias gitk="gitk --all $1 2&gt;/dev/null"&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 17 Jan 2008 04:44:18 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4992</guid>
      <author>justinwr (Justin R)</author>
    </item>
    <item>
      <title>Localizing a dialect with ALIAS</title>
      <link>http://snippets.dzone.com/posts/show/1201</link>
      <description>&lt;code&gt;&lt;br /&gt;; Localizing a dialect; obviously just a basic idea.&lt;br /&gt;&lt;br /&gt;alias 'who   "welche"&lt;br /&gt;alias 'where "wo"&lt;br /&gt;alias 'when  "wann"&lt;br /&gt;&lt;br /&gt;rule: [&lt;br /&gt;    some [&lt;br /&gt;        'who   set persons [word! | block!] |&lt;br /&gt;        'where set place string! |&lt;br /&gt;        'when  set time time!&lt;br /&gt;    ]&lt;br /&gt;    to end&lt;br /&gt;]&lt;br /&gt;&lt;br /&gt;time: place: persons: none&lt;br /&gt;parse [&lt;br /&gt;    who   Fred&lt;br /&gt;    where "Your house"&lt;br /&gt;    when  9:30&lt;br /&gt;] rule&lt;br /&gt;print [time place persons]&lt;br /&gt;&lt;br /&gt;time: place: persons: none&lt;br /&gt;parse [&lt;br /&gt;    welche Karl&lt;br /&gt;    wo     "Euer Haus"&lt;br /&gt;    wann   11:30&lt;br /&gt;] rule&lt;br /&gt;print [time place persons]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 19 Jan 2006 03:17:36 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1201</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
  </channel>
</rss>
