<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
    <title>Posteet: bash</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/posteet_bash" /><feedburner:info uri="posteet_bash" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
        <title>Finding All Hosts On the LAN From Linux / Windows Workstation</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/3lB_Fb7QZGQ/2130</link>
        <description>
        <![CDATA[<pre>#Linux
for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip&gt;/dev/null; [ $? -eq 0 ] &amp;&amp; echo &quot;192.168.1.$ip UP&quot; || : ; done

#Windows:
for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I | find &quot;Reply&quot;</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/bat">[bat]</a>  <a href="http://www.posteet.com/tags/hosts">[hosts]</a>  <a href="http://www.posteet.com/tags/lan">[lan]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/ping">[ping]</a>  <a href="http://www.posteet.com/tags/up">[up]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Sun, 22 May 2011 15:36:22 +0200</pubDate>

            <category>bash</category>
            <category>bat</category>
            <category>hosts</category>
            <category>lan</category>
            <category>linux</category>
            <category>ping</category>
            <category>up</category>
            <category>windows</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2130</feedburner:origLink></item>

  
    <item>
        <title>Récupérer le lien qui se cache derrière un lien de type 'shorturl'</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/dWlTqWPuWIQ/2116</link>
        <description>
        <![CDATA[<pre>curl -I http://bit.ly/aBcDeF | grep '^Location: ' | awk '{ print $2; }'</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/curl">[curl]</a>  <a href="http://www.posteet.com/tags/shorturl">[shorturl]</a>  <a href="http://www.posteet.com/tags/url">[url]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Sat, 29 Jan 2011 10:12:25 +0100</pubDate>

            <category>bash</category>
            <category>curl</category>
            <category>shorturl</category>
            <category>url</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2116</feedburner:origLink></item>

  
    <item>
        <title>Find files modified in the last two days</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/3cGvqs3tl0k/2113</link>
        <description>
        <![CDATA[<pre>find / -mtime 2 -o -ctime 2</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/ctime">[ctime]</a>  <a href="http://www.posteet.com/tags/files">[files]</a>  <a href="http://www.posteet.com/tags/find">[find]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/modifications">[modifications]</a>  <a href="http://www.posteet.com/tags/mtime">[mtime]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Tue, 14 Dec 2010 23:05:57 +0100</pubDate>

            <category>bash</category>
            <category>ctime</category>
            <category>files</category>
            <category>find</category>
            <category>linux</category>
            <category>modifications</category>
            <category>mtime</category>
            <category>shell</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2113</feedburner:origLink></item>

  
    <item>
        <title>Find all world writable directories / files</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/tEChDVYQUlk/2112</link>
        <description>
        <![CDATA[<pre>find / -perm -0002 -type d -print
find / -perm -0002 -type f -print</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/directories">[directories]</a>  <a href="http://www.posteet.com/tags/files">[files]</a>  <a href="http://www.posteet.com/tags/find">[find]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/rights">[rights]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/writable">[writable]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Tue, 14 Dec 2010 23:04:49 +0100</pubDate>

            <category>bash</category>
            <category>directories</category>
            <category>files</category>
            <category>find</category>
            <category>linux</category>
            <category>rights</category>
            <category>shell</category>
            <category>writable</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2112</feedburner:origLink></item>

  
    <item>
        <title>Find all files created or updated in the last five minutes</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/7o1K3N-izoo/2111</link>
        <description>
        <![CDATA[<pre>find / -cmin -5</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/created">[created]</a>  <a href="http://www.posteet.com/tags/files">[files]</a>  <a href="http://www.posteet.com/tags/find">[find]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/minutes">[minutes]</a>  <a href="http://www.posteet.com/tags/updated">[updated]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Tue, 14 Dec 2010 23:03:48 +0100</pubDate>

            <category>bash</category>
            <category>created</category>
            <category>files</category>
            <category>find</category>
            <category>linux</category>
            <category>minutes</category>
            <category>updated</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2111</feedburner:origLink></item>

  
    <item>
        <title>Search for files bigger than 10Mb</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/KrgqE1_Ru28/2110</link>
        <description>
        <![CDATA[<pre>find / -size +10000000c -printf &quot;%15s %pn&quot;</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/files">[files]</a>  <a href="http://www.posteet.com/tags/find">[find]</a>  <a href="http://www.posteet.com/tags/sh">[sh]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Tue, 14 Dec 2010 14:24:32 +0100</pubDate>

            <category>bash</category>
            <category>files</category>
            <category>find</category>
            <category>sh</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2110</feedburner:origLink></item>

  
    <item>
        <title>Manipulations classiques dans une arborescence de fichiers avec sed</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/QFS8vP8A-NI/2089</link>
        <description>
        <![CDATA[<pre>Astuces très simples mais toujours utiles :

- Rechercher/remplacer une occurence dans toute une série de fichiers :
find mon_repertoire -type f -exec sed -i 's/occurence/remplacement/g' {} \;

- Supprimer les lignes contenant une occurence dans une série de fichiers :
find mon_repertoire -type f -exec sed -i 's/occurence/d' {} \;</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/find">[find]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/sed">[sed]</a> ]]>        </description>
        <dc:creator>koudou</dc:creator>
        <pubDate>Wed, 21 Jul 2010 08:52:35 +0200</pubDate>

            <category>bash</category>
            <category>find</category>
            <category>linux</category>
            <category>sed</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2089</feedburner:origLink></item>

  
    <item>
        <title>Création automatique (trunk, branches et tags inclus) d'un dépôt SVN à partir d'un dossier projet</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/a08da8i-a-w/2015</link>
        <description>
        <![CDATA[<pre>#!/bin/bash

# Vous pouvez éditer ces variables selon vos besoins
SVN_ROOT=&quot;/srv/unit1/svn&quot;
SVN_TMP_PATH=&quot;/tmp/svn&quot;
$SVN_USER=&quot;svn&quot;
$SVN_GROUP=&quot;svn&quot;

# Ce script doit être executé avec les droits de superutilisateur
test -w /root; 
if [ ! &quot;$?&quot; -eq &quot;0&quot; ]; then 
	echo &quot;Vous devez executer ce script en tant que superutilisateur.&quot;
	exit 0
fi 

echo &quot;#######################################&quot;
echo &quot;Création d'un nouveau projet Subversion&quot;
echo &quot;#######################################&quot;
echo &quot;&quot;
echo &quot;Tapez le nom du nouveau projet :&quot;
read PROJECT_NAME

if [ -z &quot;$PROJECT_NAME&quot; ]; then
        echo &quot;$PROJECT_NAME n'est pas un nom de projet valide.&quot;;
        exit 0  
fi

echo &quot;Tapez maintenant le chemin du répertoire source :&quot;
echo &quot;(Note: les répertoires trunk, branches et tags seront créés automatiquement)&quot;
read PROJECT_SOURCE_PATH

if [ -z &quot;$PROJECT_SOURCE_PATH&quot; -o ! -d $PROJECT_SOURCE_PATH ]; then
	echo &quot;$PROJECT_SOURCE_PATH n'est pas un répertoire valide.&quot;;
	exit 0
fi

echo &quot;Création du projet $PROJECT_NAME depuis $PROJECT_SOURCE_PATH...&quot;

# Si le répertoire $SVN_ROOT n'existe pas, on le crée
if [ ! -d $SVN_ROOT ]; then
	mkdir $SVN_ROOT
fi

# Si le répertoire $SVN_TMP_PATH n'existe pas, on le crée
if [ ! -d $SVN_TMP_PATH ]; then
	mkdir $SVN_TMP_PATH
fi	

# Création du répertoire du dépôt
mkdir $SVN_ROOT/$PROJECT_NAME

# Création d'un répertoire temporaire de stockage avant import
mkdir $SVN_TMP_PATH/$PROJECT_NAME
mkdir $SVN_TMP_PATH/$PROJECT_NAME/branches
mkdir $SVN_TMP_PATH/$PROJECT_NAME/tags
mkdir $SVN_TMP_PATH/$PROJECT_NAME/trunk

# Copie des fichiers originaux dans le répertoire temporaire
cp -R $PROJECT_SOURCE_PATH/* $SVN_TMP_PATH/$PROJECT_NAME/trunk/

# Création du dépôt et import depuis le répertoire créé
svnadmin create $SVN_ROOT/$PROJECT_NAME
svn import $SVN_TMP_PATH/$PROJECT_NAME file://$SVN_ROOT/$PROJECT_NAME -m &quot;Initial import&quot;

# Attribution des permissions à Apache sur le repertoire du dépot
chown -R $SVN_USER:$SVN_GROUP $SVN_ROOT/$PROJECT_NAME

# Suppression du répertoire temporaire
rm -rf $SVN_TMP_PATH/$PROJECT_NAME	

# Done !
echo &quot;&quot;
echo &quot;Projet subversion $PROJECT_NAME créé avec succès dans $SVN_ROOT/$PROJECT_NAME !&quot;</pre> <a href="http://www.posteet.com/tags/automatize">[automatize]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/repository">[repository]</a>  <a href="http://www.posteet.com/tags/script">[script]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a>  <a href="http://www.posteet.com/tags/subversion">[subversion]</a>  <a href="http://www.posteet.com/tags/svn">[svn]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Sat, 09 Jan 2010 15:08:28 +0100</pubDate>

            <category>automatize</category>
            <category>bash</category>
            <category>repository</category>
            <category>script</category>
            <category>shell</category>
            <category>subversion</category>
            <category>svn</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2015</feedburner:origLink></item>

  
    <item>
        <title>creacion de una proyecto en Django</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/dvkrnI4-xq8/1901</link>
        <description>
        <![CDATA[<pre># 1. instalar python
# 2. Instalar Django   ---------- C:\python\Lib\site-packages\django
# 2. agregar python en las variables de entorno --------C:\python;C:\python\Lib\site-packages\django\bin;C:\python\Scripts;

#crear el proyecto en el root y luego usar la terminal
django-admin.py startproject ProyectoXXX  ----------- editar los archivos settings y url

#crear las apliaciones (preferible dentro de apps)
django-admin.py startapp client ----------- se crearan __init__.py  models.py y view.py  (estos tambien pueden ser creados manualmente)</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/django">[django]</a>  <a href="http://www.posteet.com/tags/python">[python]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Fri, 06 Nov 2009 21:03:32 +0100</pubDate>

            <category>bash</category>
            <category>django</category>
            <category>python</category>
    
    <feedburner:origLink>http://www.posteet.com/view/1901</feedburner:origLink></item>

  
    <item>
        <title>Congelar proyecto de symfony</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/9fLxNc_bL1M/1854</link>
        <description>
        <![CDATA[<pre># Se incluye el directorio data de symfony para ejecutar sin necesidad de tenerlo instalado.
#(se sincluye a symfony dentro del proyecto)
$ symfony project:freeze &quot;C:\symfony\sf1.1.x\data&quot;

#confirmar hacia donde apunta la ruta
$ symfony -V
symfony version 1.1.7 (C:\Apache\htdocs\inkaterra\lib\symfony)</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/symfony">[symfony]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Thu, 15 Oct 2009 21:06:49 +0200</pubDate>

            <category>bash</category>
            <category>symfony</category>
    
    <feedburner:origLink>http://www.posteet.com/view/1854</feedburner:origLink></item>

  
    <item>
        <title>ver la version mysql</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/Zaly4LIgGao/1787</link>
        <description>
        <![CDATA[<pre>#terminal
C:\&gt;mysql -uroot -p
mysql&gt; select version();

# cliente mysql
select version();</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/mysql">[mysql]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Thu, 20 Aug 2009 00:30:39 +0200</pubDate>

            <category>bash</category>
            <category>mysql</category>
    
    <feedburner:origLink>http://www.posteet.com/view/1787</feedburner:origLink></item>

  
    <item>
        <title>crear una aplicación usando symfony a través de la terminal - symfony</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/4UpxMAVE1mU/1779</link>
        <description>
        <![CDATA[<pre>#crear el proyecto
symfony generate:project my_project

#crear mis apps backend y/o frontend
symfony generate:app backend|frontend

#crear mis modulos dentro de backend o frontend
symfony generate:module frontend gallery

#crear cruds dentro de backend 
  # autor: nombre del módulo que se va a crear
  # Autor: nombre de la clase del modelo en la que se basa el módulo
symfony propel:generate-crud frontend autor Autor

#otros
symfony propel:build-model    
symfony propel:build-forms</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/symfony">[symfony]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Thu, 13 Aug 2009 23:12:56 +0200</pubDate>

            <category>bash</category>
            <category>php</category>
            <category>symfony</category>
    
    <feedburner:origLink>http://www.posteet.com/view/1779</feedburner:origLink></item>

  
    <item>
        <title>dump y restaurar base de datos - Mysql</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/c9qL9v9mvZQ/1775</link>
        <description>
        <![CDATA[<pre>#dump
mysqldump -hlocalhost -uuser -ppassword nomdatabase&gt; nomdatabase.sql

#restore
mysql -hlocalhost -uuser -ppassword nomdatabase &lt; nomdatabase</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/mysql">[mysql]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Tue, 11 Aug 2009 07:10:48 +0200</pubDate>

            <category>bash</category>
            <category>mysql</category>
    
    <feedburner:origLink>http://www.posteet.com/view/1775</feedburner:origLink></item>

  
    <item>
        <title>ajouter un compte à un .htpasswd</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/AmM6fIFKBjs/1568</link>
        <description>
        <![CDATA[<pre>htpasswd -c /mon_chemin/.htpasswd user</pre> <a href="http://www.posteet.com/tags/apache">[apache]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/compte">[compte]</a>  <a href="http://www.posteet.com/tags/htpasswd">[htpasswd]</a> ]]>        </description>
        <dc:creator>neorom</dc:creator>
        <pubDate>Mon, 16 Feb 2009 15:13:06 +0100</pubDate>

            <category>apache</category>
            <category>bash</category>
            <category>compte</category>
            <category>htpasswd</category>
    
    <feedburner:origLink>http://www.posteet.com/view/1568</feedburner:origLink></item>

  
    <item>
        <title>Executer des commandes sur une machine distante lors d'une connexion ssh</title>
        <link>http://feedproxy.google.com/~r/posteet_bash/~3/a3WYwLbSW_o/1558</link>
        <description>
        <![CDATA[<pre>ajouter les commandes voulues dans le fichier :
/home/toto/.ssh/rc</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/ssh">[ssh]</a> ]]>        </description>
        <dc:creator>neorom</dc:creator>
        <pubDate>Thu, 12 Feb 2009 10:23:42 +0100</pubDate>

            <category>bash</category>
            <category>linux</category>
            <category>ssh</category>
    
    <feedburner:origLink>http://www.posteet.com/view/1558</feedburner:origLink></item>


</channel>
</rss>

