<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Uzza</title>
	<atom:link href="http://uzza.pl/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://uzza.pl/blog</link>
	<description>Just my online notepad</description>
	<lastBuildDate>Wed, 01 Feb 2012 10:57:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Git Pre-commit hook</title>
		<link>http://uzza.pl/blog/2011/12/24/git-pre-commit-hook/</link>
		<comments>http://uzza.pl/blog/2011/12/24/git-pre-commit-hook/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 14:05:42 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JSLint]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[jslint]]></category>
		<category><![CDATA[pre-commit hook]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=248</guid>
		<description><![CDATA[Yesterday I have written first code in Bash Script . It was a pre-commit hook which checks my Javascript files against bugs using JSLint. To install it, please download JSLint]]></description>
			<content:encoded><![CDATA[<p>Yesterday I have written first code in <b>Bash Script</b> <img src='http://uzza.pl/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . It was a pre-commit hook which checks my Javascript files against bugs using JSLint. To install it, please download JSLint from <a href="http://www.javascriptlint.com/" title="http://www.javascriptlint.com/" target="_blank">http://www.javascriptlint.com/</a> and copy executable file (I renamed it from jsl to jslint) and config file to:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">your_project<span style="color: #000000; font-weight: bold;">/</span>.git<span style="color: #000000; font-weight: bold;">/</span>hooks</pre></div></div>

<p>and put following code into the <b>pre-commit</b> file which should be already there. </p>
<p>BTW, to skip it, do:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> commit <span style="color: #660033;">--no-verify</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Message&quot;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">declare</span> <span style="color: #007800;">prev_file</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #7a0874; font-weight: bold;">declare</span> <span style="color: #007800;">prev_line</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #7a0874; font-weight: bold;">declare</span> out
<span style="color: #7a0874; font-weight: bold;">declare</span> <span style="color: #007800;">cmd</span>=<span style="color: #ff0000;">&quot;.git/hooks/jslint -conf .git/hooks/jslint.conf&quot;</span>
<span style="color: #7a0874; font-weight: bold;">declare</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">interrupt</span>=<span style="color: #000000;">0</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #c20cb9; font-weight: bold;">git-rev-parse</span> <span style="color: #660033;">--verify</span> HEAD <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">against</span>=HEAD
<span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #007800;">against</span>=4b825dc642cb6eb9a060e54bf8d69288fbee4904
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#take all changed files, example (1 modified file):</span>
<span style="color: #666666; font-style: italic;"># Array[0]: M</span>
<span style="color: #666666; font-style: italic;"># Array[1]: assets/css/styles.css</span>
<span style="color: #000000; font-weight: bold;">for</span> FILE <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">diff</span> <span style="color: #660033;">--cached</span> --name-status<span style="color: #000000; font-weight: bold;">`</span> ; <span style="color: #000000; font-weight: bold;">do</span>
	<span style="color: #666666; font-style: italic;">#if file exist</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$FILE</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
		<span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #666666; font-style: italic;">#check only JS files</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$FILE</span> == <span style="color: #000000; font-weight: bold;">*</span>.js <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
			<span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #666666; font-style: italic;">#if file has been modified</span>
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$prev_file</span>&quot;</span> == <span style="color: #ff0000;">&quot;M&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
				<span style="color: #000000; font-weight: bold;">then</span>
				<span style="color: #007800;">cmd</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$cmd</span> -process <span style="color: #007800;">$FILE</span>&quot;</span>
			<span style="color: #000000; font-weight: bold;">fi</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
	<span style="color: #007800;">prev_file</span>=<span style="color: #007800;">$FILE</span>;
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#execute command and check if any mistakes has been made</span>
<span style="color: #007800;">out</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #7a0874; font-weight: bold;">eval</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$cmd</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;">#check if errors == 0 and warrnings == 0</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> out <span style="color: #7a0874; font-weight: bold;">&#93;</span>
	<span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #000000; font-weight: bold;">for</span> LINE <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$out</span>; <span style="color: #000000; font-weight: bold;">do</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LINE</span>&quot;</span> = <span style="color: #ff0000;">&quot;error(s),&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
			<span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$prev_line</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
				<span style="color: #000000; font-weight: bold;">then</span>
				<span style="color: #007800;">interrupt</span>=<span style="color: #000000;">1</span>
			<span style="color: #000000; font-weight: bold;">fi</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LINE</span>&quot;</span> = <span style="color: #ff0000;">&quot;warning(s)&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
			<span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$prev_line</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
				<span style="color: #000000; font-weight: bold;">then</span>
				<span style="color: #007800;">interrupt</span>=<span style="color: #000000;">1</span>
			<span style="color: #000000; font-weight: bold;">fi</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
		<span style="color: #007800;">prev_line</span>=<span style="color: #007800;">$LINE</span>;
	<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$out</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#display error messages and interrupt commit</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$interrupt</span>&quot;</span> == <span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
	<span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>Here is my config file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Configuration File for JavaScript Lint 0.3.0</span>
<span style="color: #666666; font-style: italic;"># Developed by Matthias Miller (http://www.JavaScriptLint.com)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This configuration file can be used to lint a collection of scripts, or to enable</span>
<span style="color: #666666; font-style: italic;"># or disable warnings for scripts that are linted via the command line.</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Warnings</span>
<span style="color: #666666; font-style: italic;"># Enable or disable warnings based on requirements.</span>
<span style="color: #666666; font-style: italic;"># Use &quot;+WarningName&quot; to display or &quot;-WarningName&quot; to suppress.</span>
<span style="color: #666666; font-style: italic;">#</span>
+no_return_value              <span style="color: #666666; font-style: italic;"># function {0} does not always return a value</span>
+duplicate_formal             <span style="color: #666666; font-style: italic;"># duplicate formal argument {0}</span>
+equal_as_assign              <span style="color: #666666; font-style: italic;"># test for equality (==) mistyped as assignment (=)?{0}</span>
+var_hides_arg                <span style="color: #666666; font-style: italic;"># variable {0} hides argument</span>
+redeclared_var               <span style="color: #666666; font-style: italic;"># redeclaration of {0} {1}</span>
+anon_no_return_value         <span style="color: #666666; font-style: italic;"># anonymous function does not always return a value</span>
+missing_semicolon            <span style="color: #666666; font-style: italic;"># missing semicolon</span>
+meaningless_block            <span style="color: #666666; font-style: italic;"># meaningless block; curly braces have no impact</span>
+comma_separated_stmts        <span style="color: #666666; font-style: italic;"># multiple statements separated by commas (use semicolons?)</span>
+unreachable_code             <span style="color: #666666; font-style: italic;"># unreachable code</span>
+missing_break                <span style="color: #666666; font-style: italic;"># missing break statement</span>
+missing_break_for_last_case  <span style="color: #666666; font-style: italic;"># missing break statement for last case in switch</span>
+comparison_type_conv         <span style="color: #666666; font-style: italic;"># comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)</span>
+inc_dec_within_stmt          <span style="color: #666666; font-style: italic;"># increment (++) and decrement (--) operators used as part of greater statement</span>
+useless_void                 <span style="color: #666666; font-style: italic;"># use of the void type may be unnecessary (void is always undefined)</span>
+multiple_plus_minus          <span style="color: #666666; font-style: italic;"># unknown order of operations for successive plus (e.g. x+++y) or minus (e.g. x---y) signs</span>
+use_of_label                 <span style="color: #666666; font-style: italic;"># use of label</span>
+block_without_braces         <span style="color: #666666; font-style: italic;"># block statement without curly braces</span>
+leading_decimal_point        <span style="color: #666666; font-style: italic;"># leading decimal point may indicate a number or an object member</span>
+trailing_decimal_point       <span style="color: #666666; font-style: italic;"># trailing decimal point may indicate a number or an object member</span>
+octal_number                 <span style="color: #666666; font-style: italic;"># leading zeros make an octal number</span>
+nested_comment               <span style="color: #666666; font-style: italic;"># nested comment</span>
+misplaced_regex              <span style="color: #666666; font-style: italic;"># regular expressions should be preceded by a left parenthesis, assignment, colon, or comma</span>
+ambiguous_newline            <span style="color: #666666; font-style: italic;"># unexpected end of line; it is ambiguous whether these lines are part of the same statement</span>
+empty_statement              <span style="color: #666666; font-style: italic;"># empty statement or extra semicolon</span>
-missing_option_explicit      <span style="color: #666666; font-style: italic;"># the &quot;option explicit&quot; control comment is missing</span>
+partial_option_explicit      <span style="color: #666666; font-style: italic;"># the &quot;option explicit&quot; control comment, if used, must be in the first script tag</span>
+dup_option_explicit          <span style="color: #666666; font-style: italic;"># duplicate &quot;option explicit&quot; control comment</span>
+useless_assign               <span style="color: #666666; font-style: italic;"># useless assignment</span>
+ambiguous_nested_stmt        <span style="color: #666666; font-style: italic;"># block statements containing block statements should use curly braces to resolve ambiguity</span>
+ambiguous_else_stmt          <span style="color: #666666; font-style: italic;"># the else statement could be matched with one of multiple if statements (use curly braces to indicate intent)</span>
+missing_default_case         <span style="color: #666666; font-style: italic;"># missing default case in switch statement</span>
+duplicate_case_in_switch     <span style="color: #666666; font-style: italic;"># duplicate case in switch statements</span>
+default_not_at_end           <span style="color: #666666; font-style: italic;"># the default case is not at the end of the switch statement</span>
+legacy_cc_not_understood     <span style="color: #666666; font-style: italic;"># couldn't understand control comment using /*@keyword@*/ syntax</span>
+jsl_cc_not_understood        <span style="color: #666666; font-style: italic;"># couldn't understand control comment using /*jsl:keyword*/ syntax</span>
+useless_comparison           <span style="color: #666666; font-style: italic;"># useless comparison; comparing identical expressions</span>
+with_statement               <span style="color: #666666; font-style: italic;"># with statement hides undeclared variables; use temporary variable instead</span>
+trailing_comma_in_array      <span style="color: #666666; font-style: italic;"># extra comma is not recommended in array initializers</span>
+assign_to_function_call      <span style="color: #666666; font-style: italic;"># assignment to a function call</span>
+parseint_missing_radix       <span style="color: #666666; font-style: italic;"># parseInt missing radix parameter</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">### Output format</span>
<span style="color: #666666; font-style: italic;"># Customize the format of the error message.</span>
<span style="color: #666666; font-style: italic;">#    __FILE__ indicates current file path</span>
<span style="color: #666666; font-style: italic;">#    __FILENAME__ indicates current file name</span>
<span style="color: #666666; font-style: italic;">#    __LINE__ indicates current line</span>
<span style="color: #666666; font-style: italic;">#    __ERROR__ indicates error message</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Visual Studio syntax (default):</span>
+output-format ======================================================================\n__FILE__, line: __LINE__\n----------------------------------------------------------------------\n__ERROR__
<span style="color: #666666; font-style: italic;"># Alternative syntax:</span>
<span style="color: #666666; font-style: italic;">#+output-format __FILE__:__LINE__: __ERROR__</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">### Context</span>
<span style="color: #666666; font-style: italic;"># Show the in-line position of the error.</span>
<span style="color: #666666; font-style: italic;"># Use &quot;+context&quot; to display or &quot;-context&quot; to suppress.</span>
<span style="color: #666666; font-style: italic;">#</span>
+context
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">### Semicolons</span>
<span style="color: #666666; font-style: italic;"># By default, assignments of an anonymous function to a variable or</span>
<span style="color: #666666; font-style: italic;"># property (such as a function prototype) must be followed by a semicolon.</span>
<span style="color: #666666; font-style: italic;">#</span>
+lambda_assign_requires_semicolon
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">### Control Comments</span>
<span style="color: #666666; font-style: italic;"># Both JavaScript Lint and the JScript interpreter confuse each other with the syntax for</span>
<span style="color: #666666; font-style: italic;"># the /*@keyword@*/ control comments and JScript conditional comments. (The latter is</span>
<span style="color: #666666; font-style: italic;"># enabled in JScript with @cc_on@). The /*jsl:keyword*/ syntax is preferred for this reason,</span>
<span style="color: #666666; font-style: italic;"># although legacy control comments are enabled by default for backward compatibility.</span>
<span style="color: #666666; font-style: italic;">#</span>
+legacy_control_comments
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">### JScript Function Extensions</span>
<span style="color: #666666; font-style: italic;"># JScript allows member functions to be defined like this:</span>
<span style="color: #666666; font-style: italic;">#     function MyObj() { /*constructor*/ }</span>
<span style="color: #666666; font-style: italic;">#     function MyObj.prototype.go() { /*member function*/ }</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># It also allows events to be attached like this:</span>
<span style="color: #666666; font-style: italic;">#     function window::onload() { /*init page*/ }</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This is a Microsoft-only JavaScript extension. Enable this setting to allow them.</span>
<span style="color: #666666; font-style: italic;">#</span>
-jscript_function_extensions
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">### Defining identifiers</span>
<span style="color: #666666; font-style: italic;"># By default, &quot;option explicit&quot; is enabled on a per-file basis.</span>
<span style="color: #666666; font-style: italic;"># To enable this for all files, use &quot;+always_use_option_explicit&quot;</span>
+always_use_option_explicit
&nbsp;
<span style="color: #666666; font-style: italic;"># Define certain identifiers of which the lint is not aware.</span>
<span style="color: #666666; font-style: italic;"># (Use this in conjunction with the &quot;undeclared identifier&quot; warning.)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Common uses for webpages might be:</span>
<span style="color: #666666; font-style: italic;">#+define window</span>
<span style="color: #666666; font-style: italic;">#+define document</span>
+define jQuery
+define Backbone
+define _
&nbsp;
+define ModuleMap
+define ModuleWindows
+define ModuleData
&nbsp;
<span style="color: #666666; font-style: italic;">### Files</span>
<span style="color: #666666; font-style: italic;"># Specify which files to lint</span>
<span style="color: #666666; font-style: italic;"># Use &quot;+recurse&quot; to enable recursion (disabled by default).</span>
<span style="color: #666666; font-style: italic;"># To add a set of files, use &quot;+process FileName&quot;, &quot;+process Folder\Path\*.js&quot;,</span>
<span style="color: #666666; font-style: italic;"># or &quot;+process Folder\Path\*.htm&quot;.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#+process .git/hooks/jsl-test.js</span></pre></div></div>

<p>I&#8217;m aware that my code just work, and can be improved, so feel free to post some suggestions.</p>
]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/12/24/git-pre-commit-hook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Autocompletion</title>
		<link>http://uzza.pl/blog/2011/12/22/git-autocompletion/</link>
		<comments>http://uzza.pl/blog/2011/12/22/git-autocompletion/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 21:54:24 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Customizing mac]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[autocompletion]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=240</guid>
		<description><![CDATA[Create a .git_settings directory in (actually you can choose any): Users/username/ copy following file from git sources: git_source_files/contrib/completion/git-completion.bash execute following command to edit bashrc file: mate /etc/bashrc and add following]]></description>
			<content:encoded><![CDATA[<p>Create a <b>.git_settings</b> directory in (actually you can choose any):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Users<span style="color: #000000; font-weight: bold;">/</span>username<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>copy following file from git sources:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git_source_files<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>completion<span style="color: #000000; font-weight: bold;">/</span>git-completion.bash</pre></div></div>

<p>execute following command to edit <b>bashrc</b> file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mate <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>bashrc</pre></div></div>

<p>and add following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#git autocompletion</span>
<span style="color: #7a0874; font-weight: bold;">source</span> ~<span style="color: #000000; font-weight: bold;">/</span>.git_settings<span style="color: #000000; font-weight: bold;">/</span>git-completion.bash</pre></div></div>

<p>Now you can go to your repository and type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> st<span style="color: #000000; font-weight: bold;">&lt;</span>tab<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/12/22/git-autocompletion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lossless and Transparency Encoding in WebP</title>
		<link>http://uzza.pl/blog/2011/11/22/lossless-and-transparency-encoding-in-webp/</link>
		<comments>http://uzza.pl/blog/2011/11/22/lossless-and-transparency-encoding-in-webp/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 09:48:02 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Images]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[transparency]]></category>
		<category><![CDATA[webp]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=236</guid>
		<description><![CDATA[http://code.google.com/speed/webp/docs/webp_lossless_alpha_study.html#results]]></description>
			<content:encoded><![CDATA[<p>http://code.google.com/speed/webp/docs/webp_lossless_alpha_study.html#results</p>
]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/11/22/lossless-and-transparency-encoding-in-webp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set VIM as SVN editor</title>
		<link>http://uzza.pl/blog/2011/11/21/how-to-set-vim-as-svn-editor/</link>
		<comments>http://uzza.pl/blog/2011/11/21/how-to-set-vim-as-svn-editor/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 17:03:59 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Mate]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[mate]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svn_editor]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=233</guid>
		<description><![CDATA[export SVN_EDITOR=vim vim can be replaced with nano for instance, but not with mate, because its a graphical editor.]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">SVN_EDITOR</span>=<span style="color: #c20cb9; font-weight: bold;">vim</span></pre></div></div>

<p><b>vim</b> can be replaced with <b>nano</b> for instance, but not with <b>mate</b>, because its a graphical editor.</p>
]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/11/21/how-to-set-vim-as-svn-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimizing png files with pngcrush</title>
		<link>http://uzza.pl/blog/2011/10/21/optimizing-png-files-with-pngcrush/</link>
		<comments>http://uzza.pl/blog/2011/10/21/optimizing-png-files-with-pngcrush/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 14:02:42 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Images]]></category>
		<category><![CDATA[WWW]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[pngcrush]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=230</guid>
		<description><![CDATA[Install it with: brew install pngcrush and use following command: pngcrush -reduce -brute input.png output.png]]></description>
			<content:encoded><![CDATA[<p>Install it with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">brew <span style="color: #c20cb9; font-weight: bold;">install</span> pngcrush</pre></div></div>

<p>and use following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pngcrush <span style="color: #660033;">-reduce</span> <span style="color: #660033;">-brute</span> input.png output.png</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/10/21/optimizing-png-files-with-pngcrush/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to Samba server</title>
		<link>http://uzza.pl/blog/2011/09/19/connecting-to-samba-server/</link>
		<comments>http://uzza.pl/blog/2011/09/19/connecting-to-samba-server/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 10:00:31 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Samba]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=218</guid>
		<description><![CDATA[Go to Finder->Go->Connect to server, in &#8220;Server address&#8221; type: smb://x.x.x.x Press &#8220;Connect&#8221;, later type your username and password]]></description>
			<content:encoded><![CDATA[<p>Go to Finder->Go->Connect to server, in &#8220;Server address&#8221; type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">smb:<span style="color: #000000; font-weight: bold;">//</span>x.x.x.x</pre></div></div>

<p>Press &#8220;Connect&#8221;, later type your username and password</p>
]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/09/19/connecting-to-samba-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git &#8211; Reverting changes which are not commited yet</title>
		<link>http://uzza.pl/blog/2011/09/08/git-reverting-changes-which-are-not-commited-yet/</link>
		<comments>http://uzza.pl/blog/2011/09/08/git-reverting-changes-which-are-not-commited-yet/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 19:55:36 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[revert]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=207</guid>
		<description><![CDATA[To revert changes from one file you can use: git checkout &#60;filename&#62; To revert changes from all changed files, do: git reset --hard HEAD]]></description>
			<content:encoded><![CDATA[<p>To revert changes from one file you can use:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> checkout <span style="color: #000000; font-weight: bold;">&lt;</span>filename<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>To revert changes from all changed files, do:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> reset <span style="color: #660033;">--hard</span> HEAD</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/09/08/git-reverting-changes-which-are-not-commited-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing fonts on mac osx</title>
		<link>http://uzza.pl/blog/2011/09/01/installing-fonts-on-mac-osx/</link>
		<comments>http://uzza.pl/blog/2011/09/01/installing-fonts-on-mac-osx/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 20:01:22 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[installing fonts]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=203</guid>
		<description><![CDATA[Just copy them to the following location /Users/xxx/Library/Fonts]]></description>
			<content:encoded><![CDATA[<p>Just copy them to the following location</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>xxx<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Fonts</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/09/01/installing-fonts-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing with IE bugs if you keep all styles in one file</title>
		<link>http://uzza.pl/blog/2011/08/15/dealing-with-ie7-bugs-if-you-keep-all-styles-in-one-file/</link>
		<comments>http://uzza.pl/blog/2011/08/15/dealing-with-ie7-bugs-if-you-keep-all-styles-in-one-file/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 12:12:57 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Compatibility]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[ie7]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=187</guid>
		<description><![CDATA[IE6: * html .input &#123; margin-top:1px; &#125; IE7: *:first-child+html .input_box &#123; margin-top:1px; &#125; IE8: @media \0screen { .color &#123;color: #F00;&#125; &#125;]]></description>
			<content:encoded><![CDATA[<p>IE6:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> html <span style="color: #6666ff;">.input</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>IE7:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span><span style="color: #3333ff;">:first-child</span><span style="color: #00AA00;">+</span>html <span style="color: #6666ff;">.input_box</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>IE8:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media \0screen {</span>
  .<span style="color: #000000; font-weight: bold;">color</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#F00</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/08/15/dealing-with-ie7-bugs-if-you-keep-all-styles-in-one-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How long your mac is turned on</title>
		<link>http://uzza.pl/blog/2011/08/13/how-long-your-mac-is-turned-on/</link>
		<comments>http://uzza.pl/blog/2011/08/13/how-long-your-mac-is-turned-on/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 07:59:58 +0000</pubDate>
		<dc:creator>Łukasz Lipiński</dc:creator>
				<category><![CDATA[Terminal]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[uptime]]></category>

		<guid isPermaLink="false">http://uzza.pl/blog/?p=185</guid>
		<description><![CDATA[Just type this command: uptime]]></description>
			<content:encoded><![CDATA[<p>Just type this command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">uptime</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://uzza.pl/blog/2011/08/13/how-long-your-mac-is-turned-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

