<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Ðɸ Ƴơц ℕεєđ Şø₥€ √іêŤąɱίɳƸʂ ?

survietamine’s microblog is kinda memo for survietamine who is a vietnamese man that lives in France since he was 3 yo.
By reading my posts, please excuse me for the low-level english skill .
I would have better wrote it in French language, but prefer english to share with non-French people and, eventually, your corrections will be welcome.
AMHO, English still remains the universal and computer related language.
You may send me e-mails here : survietamine (at) free.fr</description><title>survietamine's microblog</title><generator>Tumblr (3.0; @survietamine)</generator><link>http://survietamine.tumblr.com/</link><item><title>iptables conntrack contexts</title><description>&lt;p&gt;On a high load iptables gateway, for fine tunings (with sysctl) the ip_conntrack_max value, it might be useful to know how much contexts are used.&lt;/p&gt;
&lt;p&gt;Here a way&amp;#160;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;awk 'FNR==2 { print "ibase=16;"toupper($1) }' /proc/net/stat/ip_conntrack | bc&lt;/code&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/32864609453</link><guid>http://survietamine.tumblr.com/post/32864609453</guid><pubDate>Thu, 04 Oct 2012 11:04:54 +0200</pubDate><category>iptables</category><category>conntrack</category><category>awk</category></item><item><title>smtp-source</title><description>&lt;p&gt;For testing or benchmarking purpose of your postfix server, you can send e-mail with the package included program&amp;#160;: smtp-source.&lt;/p&gt;
&lt;p&gt;It is easier than writing a script using tools like the mail command.&lt;/p&gt;
&lt;p&gt;A brief example&amp;#160;:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;smtp-source \&lt;br/&gt;-s10 -l1024 -m20 -c -M &amp;#8220;anti.solit.ude&amp;#8221; \&lt;br/&gt;-S &amp;#8220;You are not alone&amp;#8221; -f ican@help.you -t local_part@domain.tld \&lt;br/&gt;-4&amp;#160;127.0.0.1:25&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;-s&lt;/strong&gt; 10&amp;#160;: 10&amp;#160;&lt;strong&gt;sessions&lt;/strong&gt; at a time&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;-l&lt;/strong&gt; 1024&amp;#160;: 1024 bytes &lt;strong&gt;length&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;-m&lt;/strong&gt; 20&amp;#160;: 20&amp;#160;&lt;strong&gt;messages&lt;/strong&gt; count&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;-M&lt;/strong&gt;&amp;#160;: followed by the &lt;strong&gt;hostname&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;-S&lt;/strong&gt;&amp;#160;: followed by the &lt;strong&gt;subject&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;-f&lt;/strong&gt;&amp;#160;: followed by the &lt;strong&gt;From:&lt;/strong&gt; header&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;-t&lt;/strong&gt;&amp;#160;: followed by the &lt;strong&gt;To:&lt;/strong&gt; header&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;-4&lt;/strong&gt;&amp;#160;: using &lt;strong&gt;IPv4&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;127.0.0.1:25&amp;#160;: are the &lt;strong&gt;host:port&lt;/strong&gt; here&lt;/li&gt;
&lt;/ul&gt;</description><link>http://survietamine.tumblr.com/post/31047487282</link><guid>http://survietamine.tumblr.com/post/31047487282</guid><pubDate>Fri, 07 Sep 2012 09:34:33 +0200</pubDate></item><item><title>Galaxy S wifi 5.0</title><description>&lt;p&gt;hello in there, was a long time that I did not write something.&lt;/p&gt;
&lt;p&gt;And this time, it&amp;#8217;ll be kind of &amp;#8220;special&amp;#8221;, not unix related.&lt;br/&gt;Just a memo about my fresh experience with my new Android toy.&lt;br/&gt;I should have done that even for the previous ones&amp;#160;: &lt;br/&gt;Nokia N800 &amp;amp; Nokia N810 (ok these are not running Android, but were precursors with some better way in mind called Maemo)&lt;br/&gt;HTC Magic, HTC Hero, HTC Legend, HTC Desire&amp;#160;: now I&amp;#8217;m no more an HTC&amp;#8217;s fan.&lt;br/&gt;Archos 5 IT, Archos 70 IT&amp;#160;: french pride, ok their products are cheap&lt;br/&gt;ZTE Blade&amp;#160;: chinese prid, ok their products are cheap&lt;br/&gt;Motorola Defy&amp;#160;: I like its form factor and I wanted an TI OMAP soc (with Imagination SGX graphics like iPhone) instead of the Qualcomm that equiped HTC and other brands but I missed somehow amoled screen, sometimes (shiny times) it&amp;#8217;s a pain to read on this LCD.&lt;/p&gt;
&lt;p&gt;Of course, everytime i buy (second hand) an Android toy, the main purpose is to get rid of the software package (locked firmware) provided.&lt;br/&gt;The main steps people are trying to achieve are&amp;#160;: rooting and bootloader unlocking.&lt;/p&gt;
&lt;p&gt;Why on earth do we need to root Android (yes, it&amp;#8217;s potentially dangerous)&amp;#160;?&lt;br/&gt;Like with Apple&amp;#8217;s idevices jailbreak, you will be able to get more features.&lt;br/&gt;A few examples&amp;#160;: Titanium backup (backup apps and their settings included system apps) and overclock/downclock (setcpu, setvsel&amp;#8230;) require to be root.&lt;/p&gt;
&lt;p&gt;Why do we need a new bootloader&amp;#160;?&lt;br/&gt;ClockWorkMod the most popular one will give you the ability to (not exhaustive)&amp;#160;: save everything (rom + all data) in an archive onto the SD card and restore it later.&lt;br/&gt;You can also do somes specials tricks like&amp;#160;: wipe all, wipe cache partition, wipe dalvik cache, wipe battery stats&amp;#8230;&lt;/p&gt;
&lt;p&gt;So, that is, I needed (or like to spend my times fighting with new toys) root and ClockWorkMod on my new Samsung Galaxy S wifi 5.0 (aka Samsung Galaxy S Player  5 in the USA).&lt;/p&gt;
&lt;p&gt;I bought it refurbished from Pixmania and at 1st run (Android initialisation), it proposes me only US, UK and some weird languages.&lt;br/&gt;I think because it came from another part of the world.&lt;br/&gt;Samsung distribute differents firmwares depending on the regional sells.&lt;/p&gt;
&lt;p&gt;An Over-The-Air (OTA) update or via Kies didn&amp;#8217;t provide me French language.&lt;br/&gt;It&amp;#8217;s not a real problem for the UI but I prefer to get French because contents of the Market (renamed to Play Store now) differs and it&amp;#8217;s not handy to write French with the english keyboard and you won&amp;#8217;t have suggestions because of the dictionary.&lt;br/&gt;OK, I know I can install some 3rd party keyboards, actually I&amp;#8217;ve used some (SmartKeyboard, PerfectKeyboard, Adaptxt, GO keyboard&amp;#8230;)&amp;#8230; but I WANTED to play with my new toy&amp;#160;! :)&lt;/p&gt;
&lt;p&gt;Some steps/requirements&amp;#160;:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Samsung Kies and the drivers&amp;#160;: the adb drivers are required for acting on the dark side. Kies is just crappy, worth the iTunes, I just installed it to have my own jugement&amp;#8230;&lt;/li&gt;
&lt;li&gt;read pages on XDA and some others dedicated forums/web pages.&lt;/li&gt;
&lt;li&gt;after reading these users/developpers contributions some tools seem to be useful&amp;#160;:&lt;/li&gt;
&lt;li&gt;Odin&amp;#160;: this Windows software will help you to push software to your Samsung devices. You may do same tricks with adb commands (provided by Android SDK)&lt;br/&gt;I used version 1.85 for my tests &lt;/li&gt;
&lt;li&gt;some exploits to get root&amp;#160;: zergRush and SuperOneClick (it uses zergRush for this device, just provides an UI for novices)&lt;/li&gt;
&lt;li&gt;some kernels and custom roms (like the well known CyanogenMod of course and MIUI)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;For now, this is the state of these hacking&amp;#160;:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;zergRush v4 (latest one) will be able to root (install superuser apk) to this device (YP-G70CW) only with some firmwares.&lt;br/&gt;I successfully used it when I downgraded to official FroYo (2.2.2) ROM : G70XXKD6-REV00-PDA-low-CL1001984&lt;br/&gt;and with chinese/korean Gingerbread (2.3.6) official rom&amp;#160;: G70ZCKP9&lt;br/&gt;but it wasn&amp;#8217;t able to root the latest (march 2012) INTL Gingerbread (2.3.6) version&amp;#160;: YP-G70_XET_G70XXKPH_G70XXKPH_G70XXKPH&lt;/li&gt;
&lt;li&gt;Odin is very useful, I had bricked my new toy and it saved my life&lt;/li&gt;
&lt;li&gt;boot time buttons shortcuts&amp;#160;:&lt;br/&gt;hold &lt;strong&gt;VolumeUP+power&lt;/strong&gt; and then release Power when Samsung logo appears will brings the official recovery (Android System Recovery 3e). You will be able to wipe all/factory reset with that tool&lt;br/&gt;hold &lt;strong&gt;VolumeDOWN+home+power&lt;/strong&gt; to get into &amp;#8220;Downloading&amp;#8221; mode. This mode will allow you to push some software (firmware, kernels, addons&amp;#8230;) with Odin or others methods.&lt;/li&gt;
&lt;li&gt;patching Rumirand&amp;#8217;s kernel r14 (well known as rj&amp;#8217;s kernel) will provide you ClockWorkMod in place of ASR 3e. I patched it over official INTL 2.3.6 rom&lt;/li&gt;
&lt;li&gt;CyanogenMod 7 (CM7) is not final (RC1) and have some bugs&amp;#160;: no backlit on the buttons (you&amp;#8217;ll have to change screen&amp;#8217;s backlight to get it to work), camcorder (video recorder) doesn&amp;#8217;t work and icons of the apps launcher are really crappy (no antialiasing)&amp;#8230; &lt;br/&gt;CM7 is Gingerbread (2.3.7) based. &lt;/li&gt;
&lt;li&gt;CyanogenMod 9 (CM9) is at beta stage&amp;#160;: I had to apply a patch (noisyfox&amp;#8217;s one) to get my buttons working. It is very cute and smooth compared to CM7 but I cannot keep it at this time on my device.&lt;br/&gt;CM9 is Ice Cream Sandwich (ICS) based the latest Android provided only with  the latest devices (starting with Google Galaxy Nexus).&lt;br/&gt;Why&amp;#160;? Because hardware video decoders are not yet supported.&lt;br/&gt;I tried to play some 720p videos dumped from YouTube (with TubeMate) and MX player wasn&amp;#8217;t able to switch to HW mode (software mode is ready bad).&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;So, waiting for CyanogenMod (all my others Android toys, except Archos ones run &lt;br/&gt;CyanogenMod) enhancements, I use this device with Official 2.3.6 and rumirand&amp;#8217;s kernel.&lt;/p&gt;
&lt;p&gt;There is a bug&amp;#160;: while plugged to the computer with USB cable, if I shut it down (the PMP, not the computer), it will boot loop, have to disconnect it.&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/20820505335</link><guid>http://survietamine.tumblr.com/post/20820505335</guid><pubDate>Tue, 10 Apr 2012 04:35:00 +0200</pubDate><category>galaxy s wifi</category><category>samsung</category><category>android</category><category>cyanogenmod</category><category>cyanogen</category><category>odin</category><category>zergrush</category><category>hack</category><category>player s wifi</category><category>noisyfox</category><category>rumirand</category><category>kies</category><category>adb</category></item><item><title>cisco mac to unix mac with Vim</title><description>&lt;p&gt;suppose you have cisco MAC addresses like that&amp;#160;:&lt;/p&gt;
&lt;p&gt;0011.432A.E9EB&lt;br/&gt;000D.5684.8F8A&lt;br/&gt;000B.DB73.5681&lt;br/&gt;000B.DB73.535C&lt;br/&gt;000D.567E.D2A5&lt;br/&gt;000D.567E.F8A6&lt;br/&gt;000B.DB73.5490&lt;br/&gt;000D.567E.C7B8&lt;br/&gt;000D.567F.304A&lt;br/&gt;0011.432A.F0A5&lt;br/&gt;000F.1FE6.D90F&lt;br/&gt;000B.DB73.49FA&lt;br/&gt;000D.567F.30AD&lt;br/&gt;000D.567E.D173&lt;br/&gt;000D.567F.2E5B&lt;/p&gt;
&lt;p&gt;and would like to convert it&amp;#160;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;:%s/\.//g&lt;/code&gt;&lt;br/&gt;&lt;code&gt;:%s/\([0-9A-E]\{2\}\)\([0-9A-E]\{2\}\)\([0-9A-E]\{2\}\)\([0-9A-E]\{2\}\)\([0-9A-E]\{2\}\)\([0-9A-E]\{2\}\)/\1:\2:\3:\4:\5:\6/g&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;then obtain&amp;#160;:&lt;/p&gt;
&lt;p&gt;00:11:43:2A:E9:EB&lt;br/&gt;00:0D:56:84:8F:8A&lt;br/&gt;00:0B:DB:73:56:81&lt;br/&gt;00:0B:DB:73:53:5C&lt;br/&gt;00:0D:56:7E:D2:A5&lt;br/&gt;00:0D:56:7E:F8:A6&lt;br/&gt;00:0B:DB:73:54:90&lt;br/&gt;00:0D:56:7E:C7:B8&lt;br/&gt;00:0D:56:7F:30:4A&lt;br/&gt;00:11:43:2A:F0:A5&lt;br/&gt;00:0F:1F:E6:D9:0F&lt;br/&gt;00:0B:DB:73:49:FA&lt;br/&gt;00:0D:56:7F:30:AD&lt;br/&gt;00:0D:56:7E:D1:73&lt;br/&gt;00:0D:56:7F:2E:5B&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/16976651084</link><guid>http://survietamine.tumblr.com/post/16976651084</guid><pubDate>Fri, 03 Feb 2012 16:33:00 +0100</pubDate></item><item><title>claws-mail reply model</title><description>&lt;p&gt;tired of Mozilla Thunderbird, I&amp;#8217;m testing (more deeply this time) claws-mail.&lt;/p&gt;
&lt;p&gt;One funny feature is the Model writing script (see settings).&lt;br/&gt;Here follows my reply-model script&amp;#160;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;%cursor &lt;br/&gt;&lt;br/&gt; %account_sig &lt;br/&gt;&lt;br/&gt; (i) en réponse au message de %fullname (%email), &lt;br/&gt; (i) du %date_fmt{%d/%m/%Y} à %date_fmt{%H:%M}, ?s{intitulé "%subject", } !s{sans sujet (!)}&lt;br/&gt; (i) adressé à : %to&lt;br/&gt;?c{(i) en copie à : %cc \n}?i{(i) message id : %messageid }&lt;br/&gt;&lt;br/&gt; %quoted_msg_no_sig &lt;/code&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/16522004460</link><guid>http://survietamine.tumblr.com/post/16522004460</guid><pubDate>Thu, 26 Jan 2012 16:04:26 +0100</pubDate></item><item><title>[find] using -regextype</title><description>&lt;p&gt;I don&amp;#8217;t know about you.&lt;/p&gt;
&lt;p&gt;But for me it&amp;#8217;s a pain to escape special chars like that&amp;#160;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[survietamine@desktop omsa-live]$ find -iregex '.*\(contact\|dset\).*'&lt;br/&gt;./DSET_Report_for_Centrapel[localhost.localdomain-SvcTag-16H3F4J-PER710].zip&lt;br/&gt;./data/tmpreport/dsetinfo.xml&lt;br/&gt;./data/xml/oma/docs/dset.css&lt;br/&gt;./data/linux/dsetmemory&lt;br/&gt;./data/linux/dsetboot&lt;br/&gt;./data/linux/xml/dsetboot.xml&lt;br/&gt;./data/linux/xml/dsetmemory.xml&lt;br/&gt;./data/linux/xml/dsetnetwork.xml&lt;br/&gt;./data/linux/xml/dsetmodules.xml&lt;br/&gt;./data/linux/xml/dsetstorage.xml&lt;br/&gt;./data/linux/dsetnetwork&lt;br/&gt;./data/linux/dsetstorage&lt;br/&gt;./data/linux/dsetmodules&lt;br/&gt;./data/dell/DSET&lt;br/&gt;./data/dell/DSET/dsetinfo.log&lt;br/&gt;./data/dell/DSET/omsaliteinstall.log&lt;br/&gt;./data/dell/DSET/omsaload.log&lt;br/&gt;./data/dell/DSET/CDDVDDeviceEnumerator.log&lt;br/&gt;./data/dell/DSET/IdeDevDiagEnumeration.log&lt;br/&gt;./data/dell/DSET/SysReader.log&lt;br/&gt;./data/dell/DSET/ScsiDevDiagEnumeration.log&lt;br/&gt;./gui/contactinfo.htm&lt;br/&gt;./gui/dset.css&lt;br/&gt;./gui/images/productname-dset.gif&lt;br/&gt;./gui/dsetreport.hta&lt;br/&gt;./dsetreport.hta&lt;br/&gt;&lt;br/&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So, I think it&amp;#8217;s better to set an aliases that add &amp;#8216;-regextype posix-extended&amp;#8217; (or whatever extended regexp you prefer), to be able to write like this&amp;#160;:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;[survietamine@desktop omsa-live]$ find -regextype posix-extended -iregex '.*(contact|dset).*'&lt;br/&gt;./DSET_Report_for_Centrapel[localhost.localdomain-SvcTag-16H3F4J-PER710].zip&lt;br/&gt; ./data/tmpreport/dsetinfo.xml&lt;br/&gt;./data/xml/oma/docs/dset.css&lt;br/&gt;./data/linux/dsetmemory&lt;br/&gt; ./data/linux/dsetboot&lt;br/&gt;./data/linux/xml/dsetboot.xml&lt;br/&gt; ./data/linux/xml/dsetmemory.xml&lt;br/&gt; ./data/linux/xml/dsetnetwork.xml&lt;br/&gt; ./data/linux/xml/dsetmodules.xml&lt;br/&gt; ./data/linux/xml/dsetstorage.xml&lt;br/&gt; ./data/linux/dsetnetwork&lt;br/&gt; ./data/linux/dsetstorage&lt;br/&gt; ./data/linux/dsetmodules&lt;br/&gt; ./data/dell/DSET&lt;br/&gt; ./data/dell/DSET/dsetinfo.log&lt;br/&gt; ./data/dell/DSET/omsaliteinstall.log&lt;br/&gt; ./data/dell/DSET/omsaload.log&lt;br/&gt; ./data/dell/DSET/CDDVDDeviceEnumerator.log&lt;br/&gt; ./data/dell/DSET/IdeDevDiagEnumeration.log&lt;br/&gt; ./data/dell/DSET/SysReader.log&lt;br/&gt; ./data/dell/DSET/ScsiDevDiagEnumeration.log&lt;br/&gt; ./gui/contactinfo.htm&lt;br/&gt; ./gui/dset.css&lt;br/&gt; ./gui/images/productname-dset.gif&lt;br/&gt; ./gui/dsetreport.hta&lt;br/&gt; ./dsetreport.hta&lt;br/&gt;&lt;br/&gt;&lt;/code&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/6859893671</link><guid>http://survietamine.tumblr.com/post/6859893671</guid><pubDate>Fri, 24 Jun 2011 10:51:00 +0200</pubDate><category>find</category><category>regex</category><category>regexp</category><category>expressions régulières</category><category>posix</category></item><item><title>[imageMagick] easy resize of images with ratio keeping</title><description>&lt;p&gt;ImageMagick is a real swiss knife for people that want to manipulate pictures.&lt;br/&gt;In this post, I&amp;#8217;ll only give an easy way to resize an image and keep its proportions.&lt;br/&gt;&lt;br/&gt;Suppose you have an nice wallpaper (eg, downloaded from Vlad Studio site) on your &amp;#8220;full HD&amp;#8221; (ok, now i&amp;#8217;m supposed to say &amp;#8220;hd 1080p&amp;#8221;&amp;#8230;), and your girlfriend wants it on her laptop which resolution is 1440x900.&lt;br/&gt;&lt;br/&gt;Consider these assertions&amp;#160;:&lt;br/&gt;1980x1080 is the TV/cinema (16/9) format (now imported to most computer monitors)&lt;br/&gt;1440x900 is an computer format (16/10)&lt;br/&gt;&lt;br/&gt;Their ratios are&amp;#160;:&lt;br/&gt;16/9 (or 1920/1080)&amp;#160;: 1.77777777777777777777&lt;br/&gt;16/10 (or 1440/900, 1280/800, 1920/1200)&amp;#160;: 1.6&lt;/p&gt;
&lt;p&gt;In this example, i&amp;#8217;ll only use 2 ImageMagick commands (see documentation for more)&amp;#160;:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;syntax&amp;#160;: convert image_src -resize geometry image_dst&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;example&amp;#160;: &lt;br/&gt;&lt;code&gt; [survietamine@desktop Downloads]$ identify vladstudio_atlantis_docking_1920x1080.jpg &lt;br/&gt;vladstudio_atlantis_docking_1920x1080.jpg JPEG 1920x1080 1920x1080+0+0 8-bit DirectClass 529KB 0.000u 0:00.000&lt;br/&gt;&lt;br/&gt; [survietamine@desktop Downloads]$ echo '1920/1080' | bc -l&lt;br/&gt;1.77777777777777777777&lt;br/&gt;&lt;br/&gt;[survietamine@desktop Downloads]$ convert vladstudio_atlantis_docking_1920x1080.jpg -resize 1440 vladstudio_atlantis_docking_1440.jpg&lt;br/&gt;&lt;br/&gt;[survietamine@desktop Downloads]$ identify vladstudio_atlantis_docking_1440.jpg &lt;br/&gt;vladstudio_atlantis_docking_1440.jpg JPEG 1440x810 1440x810+0+0 8-bit DirectClass 351KB 0.000u 0:00.000 &lt;br/&gt;&lt;br/&gt;[survietamine@desktop Downloads]$ echo '1440/810' | bc -l&lt;br/&gt;1.77777777777777777777 &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For more information about the &amp;#8216;geometry&amp;#8217; section of ImageMagick&amp;#160;:&lt;br/&gt;&lt;a target="ext-link" href="http://www.imagemagick.org/script/command-line-processing.php#geometry%3C"&gt;&lt;a href="http://www.imagemagick.org/script/command-line-processing.php?#geometry" target="_blank"&gt;http://www.imagemagick.org/script/command-line-processing.php?#geometry&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/6784910344</link><guid>http://survietamine.tumblr.com/post/6784910344</guid><pubDate>Wed, 22 Jun 2011 09:58:00 +0200</pubDate><category>imagemagick</category><category>resize</category><category>resizing</category><category>commandline</category><category>picture</category><category>image</category><category>batch</category><category>processing</category></item><item><title>chmod +X</title><description>&lt;p&gt;For those that already know well how to change permissions, this memo won&amp;#8217;t be usefull.&lt;br/&gt;Maybe, it can be usefull to some others.&lt;/p&gt;
&lt;p&gt;umask is generally fixed to 022.&lt;br/&gt;This mask will be applied every times you create files and directories.&lt;br/&gt;&lt;br/&gt;For directories, umask will be combinated with max permissions 0777&amp;#160;:&lt;br/&gt;0777 - 022 = 755 (rwxr-xr-x)&lt;br/&gt;For files, umask will be combinated with 0666&amp;#160;:&lt;br/&gt;0666 - 022 = 644 (rw-r&amp;#8212;r&amp;#8212;)&lt;/p&gt;
&lt;p&gt;You can change umask() value for 1 user or the whole system.&lt;/p&gt;
&lt;p&gt;But, sometimes, you don&amp;#8217;t want to do that and need to set permissions for only 1 directory.&lt;/p&gt;
&lt;p&gt;example&amp;#160;:&lt;br/&gt;Suppose you (leader of a project) have 1 directory with normal 755.&lt;br/&gt;Now, you want to share it with your team, you want to put it in some share.&lt;br/&gt;On the share, now you want 750 for directories and 640 for files.&lt;/p&gt;
&lt;p&gt;So you start with something like this&amp;#160;:&lt;br/&gt;drwxr-xr-x leader team  15 oct.  2009 /some/common/directory&lt;br/&gt;&lt;br/&gt;You want&amp;#160;: group (team) to be able to read files and directories above /some/common/directory&lt;br/&gt;&lt;br/&gt;By doing&amp;#160;: chmod -R g+r /some/common/directory&lt;br/&gt;All files will be readable by group (team).&lt;br/&gt;But the bad is that directories need &amp;#8216;x&amp;#8217; bit to be accessed.&lt;br/&gt;If you do&amp;#160;: chmod -R g+x /some/common/directory&lt;br/&gt;You&amp;#8217;ll set &amp;#8216;x&amp;#8217; for files and directories.&lt;br/&gt;&lt;br/&gt;Before starting to write a script based on `find -type d`, have a look at `&lt;strong&gt;chmod +X&lt;/strong&gt;` (X &lt;strong&gt;in capital&lt;/strong&gt;) will ask chmod to set &amp;#8216;x&amp;#8217; only where needed.&lt;br/&gt;It will set &amp;#8216;x&amp;#8217; only for directories.&lt;br/&gt;So, for our case, something like this&amp;#160;:&lt;br/&gt;&lt;strong&gt;chmod -R go-rx /some/common/directory&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;chmod -R g+rX /some/common/directory&lt;/strong&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/2541184050</link><guid>http://survietamine.tumblr.com/post/2541184050</guid><pubDate>Fri, 31 Dec 2010 12:38:00 +0100</pubDate><category>permissions</category><category>right</category><category>droits</category><category>unix</category><category>droits unix</category><category>répertoire</category><category>directory</category><category>chmod</category><category>umask</category></item><item><title>[proxy] SSL interception using squid</title><description>&lt;p&gt;In this article, I&amp;#8217;ll show you how to configure Squid to act like an &amp;#8216;man-in-the-middle&amp;#8217; with HTTPS connections.&lt;br/&gt;If you&amp;#8217;re not doing that for yourself (eg&amp;#160;: your company/association, you MUST tell people about that, it is ILLEGAL).&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;credits&lt;/strong&gt;&amp;#160;: to achieve this, I mainly have read this documentation (but I did not yet implement dynamic certificates generation)&amp;#160;:&lt;br/&gt;&lt;span&gt;&lt;/span&gt;&lt;a title="http://wiki.squid-cache.org/Features/DynamicSslCert" target="_blank" href="http://wiki.squid-cache.org/Features/DynamicSslCert"&gt;&lt;a href="http://wiki.squid-cache.org/Features/DynamicSslCert" target="_blank"&gt;http://wiki.squid-cache.org/Features/DynamicSslCert&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Normal behavior of proxies while serving HTTPS sites is to &amp;#8220;not acting as mandatoring&amp;#8221;.&lt;br/&gt;The connection between the web site and the client is direct.&lt;/p&gt;
&lt;p&gt;The only thing you can see in logs (access.log) is ip/fqdn address with method CONNECT (instead of GET/POST)&amp;#160;:&lt;br/&gt;&lt;em&gt;1293606062.453    188&amp;#160;192.168.0.1 TCP_MISS/200&amp;#160;5595 CONNECT secured.site.org:443 - DIRECT/12.34.56.78 -&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;As Squid don&amp;#8217;t know about URL, you will only be able to write an ACL that focus on the domain (eg&amp;#160;: dstdomain) or ip address.&lt;/p&gt;
&lt;p&gt;If for some reasons, you need to allow an HTTPS site (domain/ip), but want to forbid an URL on it, this can be done with usage of ssl-bump feature of Squid.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;installation&amp;#160;:&lt;br/&gt;As this is not normal behaviour and you break the trust on SSL by doing this, many distros won&amp;#8217;t provide this feature in their binary packages.&lt;br/&gt;If you are running on Debian based distro, you&amp;#8217;ll need to get the sources of Squid and to compile it with &amp;#8216;&lt;strong&gt;&amp;#8212;enable-ssl&lt;/strong&gt;&amp;#8217; option.&lt;br/&gt;For now, I personnaly gave up with Debian/Ubuntu for this Squid mitm install and did it with ArchiLinux and it works like a charm.&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;self-signed certificate (pem format) generation&amp;#160;:&lt;strong&gt;&lt;br/&gt;openssl req -new -newkey rsa:1024 -days 3650 -nodes -x509 -keyout your.company.com.pem  -out your.company.com&lt;br/&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;if needed, you can generate the certificate to import on browsers (to avoid the warnings about the security breach)&amp;#160;:&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;strong&gt;openssl x509 -in &lt;a href="http://www.yourcompany.com.pem" target="_blank"&gt;www.yourcompany.com.pem&lt;/a&gt; -outform DER -out &lt;a href="http://www.yourcompany.com.der" target="_blank"&gt;www.yourcompany.com.der&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Squid configuration (&lt;strong&gt;squid.conf&lt;/strong&gt;)&amp;#160;:&lt;br/&gt;I post here only important parts.&lt;br/&gt;&lt;br/&gt;acl &amp;#8230;&lt;br/&gt;acl &amp;#8230;&lt;br/&gt;# you must have CONNECT acl&lt;br/&gt;&lt;span&gt;acl CONNECT method CONNECT&lt;br/&gt;&lt;br/&gt;acl clientsboxes dstdomain &lt;a href="http://www.secure.clientsboxes.com" target="_blank"&gt;www.secure.clientsboxes.com&lt;/a&gt;&lt;br/&gt;acl nationalbank dstdomain &lt;a href="http://www.nationalbank.biz" target="_blank"&gt;www.nationalbank.biz&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;# write some ACL to test URL filter on HTTPS (interception)&lt;br/&gt;&lt;/span&gt;&lt;span&gt;acl rebootbox url_regex ^https://www&amp;#46;secure&amp;#46;clientsboxes&amp;#46;com/path/*to/*reboot/*servers&lt;br/&gt;&lt;br/&gt;acl dropaccount url_regex&lt;/span&gt; ^https://www&amp;#46;nationalbank&amp;#46;biz/*showmethemoney/*dropthisaccount&lt;br/&gt;&lt;br/&gt;# maybe not in the future, but we need this&amp;#160;:&lt;br/&gt;&lt;span&gt;always_direct allow all&lt;br/&gt;&lt;br/&gt;# permissions sections (allow / deny)&lt;br/&gt;http_access allow&amp;#8230;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;http_access allow&amp;#8230;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;http_access allow&amp;#8230;&lt;/span&gt;&lt;br/&gt;&lt;span&gt;http_access deny &amp;#8230;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;http_access deny &amp;#8230;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;http_access deny &amp;#8230;&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;# some sites need this&amp;#160;:&lt;br/&gt;&lt;span&gt;sslproxy_cert_error allow nationalbank&lt;br/&gt;&lt;/span&gt;&lt;span&gt;#sslproxy_flags DONT_VERIFY_PEER&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;# ssl_bump means that you want to intercept (MITM) this SSL connection&lt;br/&gt;&lt;/span&gt;&lt;span&gt;ssl_bump allow clientsboxes&lt;br/&gt;ssl_bump allow nationalbank&lt;br/&gt;&lt;br/&gt;# and we don&amp;#8217;t want to intercept others SSL sites&amp;#160;:&lt;/span&gt;&lt;span&gt;&lt;br/&gt;ssl_bump deny all&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;# now, you can tell Squid you want to forbid theses HTTPS url&amp;#160;:&lt;br/&gt;&lt;span&gt;http_access deny rebootbox&lt;br/&gt;http_access deny dropaccount&lt;br/&gt;&amp;#8230;&lt;br/&gt;http_access allow localnet&lt;br/&gt;http_access allow localhost&lt;/span&gt;&lt;br/&gt;&lt;span&gt;http_access deny all&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;# tell Squid you want to intercept SSL&lt;br/&gt;# /!\ SSL interception is not compatible with transparent proxy&lt;br/&gt;# so DON&amp;#8217;T write here &amp;#8216;intercept&amp;#8217; (new name for &amp;#8216;transparent&amp;#8217;)&lt;br/&gt;&lt;span&gt;http_port 3128 ssl-bump cert=/path/to/your/self-signed/cert/www.yourcompany.com.pem&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Now, you&amp;#8217;ll see full URL in logs and url based ACL will be operationnal.&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/2525156453</link><guid>http://survietamine.tumblr.com/post/2525156453</guid><pubDate>Thu, 30 Dec 2010 09:54:00 +0100</pubDate><category>https</category><category>interception</category><category>mitm</category><category>security</category><category>ssl</category><category>squid</category><category>proxy</category></item><item><title>web coding basics : REST</title><description>&lt;p&gt;I see so much dirty apps and ERP with their own ways to write/exchange data&amp;#160;;&lt;br/&gt;so if I can advice coders to re-read this article about REST regularly before writing their crappy codes [hope&amp;#8230; ]&lt;/p&gt;
&lt;p&gt;&lt;a href="http://tomayko.com/writings/rest-to-my-wife" target="_blank"&gt;http://tomayko.com/writings/rest-to-my-wife&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Several translations are available, below the-one for French people&amp;#160;:&lt;br/&gt;&lt;a title="http://www.pompage.net/pompe/comment-j-ai-explique-rest-a-ma-femme/" target="_blank" href="http://www.pompage.net/pompe/comment-j-ai-explique-rest-a-ma-femme/"&gt;&lt;a href="http://www.pompage.net/pompe/comment-j-ai-explique-rest-a-ma-femme/" target="_blank"&gt;http://www.pompage.net/pompe/comment-j-ai-explique-rest-a-ma-femme/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/2512409726</link><guid>http://survietamine.tumblr.com/post/2512409726</guid><pubDate>Wed, 29 Dec 2010 15:25:00 +0100</pubDate><category>webdev</category><category>rest</category><category>webapp</category><category>webapps</category><category>URL</category><category>coding</category><category>basics</category><category>bases</category></item><item><title>hard disk data recovery</title><description>&lt;p&gt;Recently, I had to recover data on a defective hard drive.&lt;/p&gt;
&lt;p&gt;Informations on this page helped me&amp;#160;: &lt;a title="https://help.ubuntu.com/community/DataRecovery" target="_blank" href="https://help.ubuntu.com/community/DataRecovery"&gt;&lt;a href="https://help.ubuntu.com/community/DataRecovery" target="_blank"&gt;https://help.ubuntu.com/community/DataRecovery&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So, this is a memo (in case the source page disappear)&amp;#160;:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;if your partition table is broken, try to fix it with tools like&amp;#160;: &lt;em&gt;testdisk&lt;/em&gt;, &lt;em&gt;ntfsfix&lt;/em&gt; (ntfsprogs package)&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;em&gt;install ddrescue&lt;/em&gt; (on Debian based)&amp;#160;: &lt;strong&gt;&lt;br/&gt;apt-get install gddrescue&lt;/strong&gt;&lt;br/&gt;ddrescue is able to build an image file of your disk/partition&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;try to &lt;em&gt;recover&lt;/em&gt; maximum data, the &lt;em&gt;fastest &lt;/em&gt;way possible&amp;#160;:&lt;br/&gt;&lt;strong&gt;ddrescue &amp;#8212;no-split /dev/hda1 imagefile logfile&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;you can &lt;em&gt;ask ddrescue to retry&lt;/em&gt; (3 times here)&amp;#160;:&lt;br/&gt;&lt;strong&gt;ddrescue &amp;#8212;direct &amp;#8212;max-retries=3 /dev/hda1 imagefile logfile&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;you want &lt;em&gt;more&lt;/em&gt; (retrim = reread full sector)&amp;#160;?&lt;br/&gt;&lt;strong&gt;ddrescue &amp;#8212;direct &amp;#8212;retrim &amp;#8212;max-retries=3 /dev/hda1 imagefile logfile&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;now, you can &lt;em&gt;install foremost&lt;/em&gt;&lt;br/&gt;This tool will be able to read your image file to recover files and store them by mime-types (extensions)&amp;#160;: pdf, xls, xlsx, doc, docx&amp;#8230;&lt;br/&gt;foremost can do partition to partition recovery, partition to directory&lt;br/&gt;Equivalent to foremost&amp;#160;: &lt;em&gt;magicrescue&lt;/em&gt;, &lt;em&gt;photorec&lt;/em&gt;, &lt;em&gt;scalpel&lt;/em&gt;&amp;#8230;&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;ask foremost to &lt;em&gt;rebuild files&lt;/em&gt;&amp;#160;:&lt;br/&gt;&lt;strong&gt;mkdir -p /mnt/recovery/foremost&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;foremost -i image -o /mnt/recovery/foremost&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;of course, the destination of recovered files must not be on the junk drive&amp;#160;!&lt;/li&gt;
&lt;/ul&gt;</description><link>http://survietamine.tumblr.com/post/2483412306</link><guid>http://survietamine.tumblr.com/post/2483412306</guid><pubDate>Mon, 27 Dec 2010 16:54:00 +0100</pubDate><category>défectueux</category><category>hard drive</category><category>hdd</category><category>recover</category><category>recovery</category><category>repair</category><category>rescue</category><category>récupération</category><category>réparation</category><category>disque dur</category></item><item><title>[ssh] remove hash for an host</title><description>&lt;p&gt;When connecting to a new host, the corresponding RSA fingerprint is showing up and you are prompted to add it&lt;/p&gt;
&lt;p&gt;This hash is checked every time you connect to the host.&lt;br/&gt;If this hash has changed (OS reinstall, servers upgrade/switching&amp;#8230;), a warning is displayed and you are not able to connect to the host.&lt;/p&gt;
&lt;p&gt;OK, you can delete the line by editing ~/.ssh/known_hosts file.&lt;br/&gt;But the proper way is the following via ssh-keygen command&amp;#160;:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[survietamine@mybox ]$ ssh-keygen -R remoteHost&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;/home/survietamine/.ssh/known_hosts updated.&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;Original contents retained as /home/survietamine/.ssh/known_hosts.old&lt;/strong&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/997220312</link><guid>http://survietamine.tumblr.com/post/997220312</guid><pubDate>Mon, 23 Aug 2010 10:11:00 +0200</pubDate><category>hash</category><category>ssh</category><category>fingerprint</category></item><item><title>[archlinux] VirtualBox post-installation steps</title><description>&lt;p&gt;This is printed after installation of virtualbox-sun package.&lt;br/&gt;So, if you prefer virtualbox-ose (Open Source Edition) since Sun is now a part of Oracle, check these points&amp;#160;:&lt;/p&gt;
&lt;p&gt;&amp;#187;&amp;gt; NOTE:&lt;br/&gt;&amp;#187;&amp;gt;  - Run &amp;#8220;sudo /etc/rc.d/vboxdrv setup&amp;#8221;, every time your kernel is upgraded,&lt;br/&gt;&amp;#187;&amp;gt;    to compile virtualbox driver modules for a new kernel version.&lt;br/&gt;&amp;#187;&amp;gt;  - Add your users to the vboxusers group:&lt;br/&gt;&amp;#187;&amp;gt;      gpasswd -a USERNAME vboxusers&lt;br/&gt;&amp;#187;&amp;gt;  - Customize your &amp;#8220;/etc/conf.d/vboxdrv&amp;#8221;; usually, defaults are OK.&lt;br/&gt;&amp;#187;&amp;gt;  - Add &amp;#8220;vboxdrv&amp;#8221; to DAEMONS array in your &amp;#8220;/etc/rc.conf&amp;#8221;, if needed.&lt;br/&gt;&amp;#187;&amp;gt;  - If USB does not work for you out-of-the-box, add the following line&lt;br/&gt;&amp;#187;&amp;gt;    to your &amp;#8220;/etc/fstab&amp;#8221;:&lt;br/&gt;none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664&amp;#160;0 0&lt;br/&gt;Dépendances optionnelles pour virtualbox-sun&lt;br/&gt;    dkms: for building and loading VirtualBox modules&lt;br/&gt;    qt: for Oracle VirtualBox QT4 GUI on X-Window System&lt;br/&gt;    sdl: for Oracle VBoxSDL and VirtualBox GUI on console&lt;br/&gt;    vfuse: for mounting VBox (VDI/VMDK/VHD) disk images&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/966622912</link><guid>http://survietamine.tumblr.com/post/966622912</guid><pubDate>Tue, 17 Aug 2010 12:03:00 +0200</pubDate><category>virtualbox</category><category>archlinux</category></item><item><title>clonezilla-live config</title><description>&lt;ul&gt;&lt;li&gt;unlike Microsoft Windows, unix-like systems installation like BSD or GNU/Linux need only a few GB&lt;/li&gt;
&lt;li&gt;usb sticks with 8&amp;#160;GB and more are now really cheap&lt;/li&gt;
&lt;li&gt;yes, clonezilla is fine&lt;/li&gt;
&lt;li&gt;yes, clonezilla server version is very fine&lt;/li&gt;
&lt;li&gt;but sometimes, it&amp;#8217;s pretty fine too to be able to backup and restore system disks/partitions images from only 1 usb stick.&lt;/li&gt;
&lt;li&gt;so let&amp;#8217;s go&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;As I spent some time on this project, I wrote here a memo about &amp;#8220;clonezilla live&amp;#8221; on USB stick config&lt;/p&gt;
&lt;p&gt;Here are the few importants highlights, in near future, i&amp;#8217;ll post an complete version with all commands&amp;#160;:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;create the clonezilla like described on their page&lt;/li&gt;
&lt;li&gt;boot on the USB stick and choose &amp;#8220;clonezilla-live in RAM&amp;#8221; mode under &amp;#8220;Other clonezilla-live modes&amp;#8221; menu.&lt;/li&gt;
&lt;li&gt;if you booted the &amp;#8220;in RAM&amp;#8221; version, you could select your usb stick in the &amp;#8220;user_local&amp;#8221; window&lt;/li&gt;
&lt;li&gt;select the root (/) directory from the usb stick to store the image&lt;/li&gt;
&lt;li&gt;give it a explicit name, my choose is &amp;#8220;YYYYMMDD-model-osversion&amp;#8221;&lt;/li&gt;
&lt;li&gt;when image is created, mount the stick and move the image directory (for me&amp;#160;: /YYYYMMDD-model-osversion) to /home/partimage directory of the usb stick&lt;/li&gt;
&lt;li&gt;for automated restoration modify the file /syslinux/syslinux.cfg with a section like this (under MENU)&amp;#160;: &lt;br/&gt;label restore mybox&lt;br/&gt;  MENU DEFAULT&lt;br/&gt;  # MENU HIDE&lt;br/&gt;  MENU restore mybox&lt;br/&gt;  # MENU PASSWD&lt;br/&gt;  kernel /live/vmlinuz&lt;br/&gt;  append initrd=/live/initrd.img boot=live union=aufs hostname=lucid quiet noswap edd=on noprompt ocs_live_run=&amp;#8221;ocs-live-restore&amp;#8221; ocs_live_extra_param=&amp;#8221;-g auto -p reboot restoredisk 20100608-dell-vostro320 sda&amp;#8221; ocs_live_keymap=&amp;#8221;/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz&amp;#8221; ocs_live_batch=&amp;#8221;no&amp;#8221; ocs_lang=&amp;#8221;fr_FR.UTF-8&amp;#8221; video=uvesafb:mode_option=1024x768-32 ip=frommedia  nosplash&lt;br/&gt;  TEXT HELP&lt;br/&gt;  image restoration of my lovely linux box&lt;br/&gt;  ENDTEXT&lt;/li&gt;
&lt;li&gt;comment out the other MENU DEFAULT entry from MENU section.&lt;/li&gt;
&lt;/ol&gt;</description><link>http://survietamine.tumblr.com/post/676910418</link><guid>http://survietamine.tumblr.com/post/676910418</guid><pubDate>Tue, 08 Jun 2010 17:45:00 +0200</pubDate><category>clonezilla</category><category>clone</category><category>clonezilla-live</category><category>live</category><category>usb</category><category>restore</category><category>restoration</category></item><item><title>[archlinux] apt-file equivalent</title><description>&lt;p&gt;pacman and yaourt are great but&amp;#8230;&lt;br/&gt;&amp;#8230;&lt;/p&gt;
&lt;p&gt;Q: Is there an equivalent to apt-file (GNU/Debian) that allows to search for a file within packages not installed (on repositories)&amp;#160;?&lt;/p&gt;
&lt;p&gt;A: &lt;strong&gt;pacfile&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;eg&amp;#160;: &lt;br/&gt;pacfile mkfs.vfat&lt;br/&gt;extra/dosfstools-3.0.9-1 sbin/mkfs.vfat&lt;br/&gt;extra/dosfstools-3.0.9-1 usr/share/man/man8/mkfs.vfat.8.gz&lt;/p&gt;
&lt;p&gt;update&amp;#160;: it&amp;#8217;s now &lt;strong&gt;pkgfile&lt;/strong&gt; instead&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/676118340</link><guid>http://survietamine.tumblr.com/post/676118340</guid><pubDate>Tue, 08 Jun 2010 11:37:00 +0200</pubDate><category>archlinux</category><category>arch</category><category>apt-file</category><category>content</category><category>contents</category><category>packages</category></item><item><title>parallel ssh</title><description>&lt;p&gt;pssh and consors are usefull if you administrate a huge number of *nix boxes.&lt;/p&gt;
&lt;p&gt;But adding hundred of fingerprints on your ~/.ssh/known_hosts file may take some time.&lt;/p&gt;
&lt;p&gt;On a trusted network, here how to bypass this, by using SSH option&amp;#160;:&lt;/p&gt;
&lt;p&gt;add SSH option (-O) &amp;#8220;&lt;strong&gt;StrictHostKeyCheckin=no&lt;/strong&gt;&amp;#8221; to the pssh, pscp, pslurp&amp;#8230; command&lt;/p&gt;
&lt;p&gt;e.g&amp;#160;:&lt;strong&gt;&lt;br/&gt;pssh -P -h machines.list -O=StrictHostKeyChecking=no uptime&lt;/strong&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/555440267</link><guid>http://survietamine.tumblr.com/post/555440267</guid><pubDate>Wed, 28 Apr 2010 09:55:00 +0200</pubDate><category>automatisation</category><category>parallel</category><category>pssh</category><category>ssh</category><category>automation</category></item><item><title>transparent xlock</title><description>&lt;p&gt;@work, when i leave my desk, i have to lock the screen because of open spaces conditions.&lt;/p&gt;
&lt;p&gt;But, one of my monitors displays is used for servers monitoring purpose.&lt;br/&gt;To enable my coworker to watch it i don&amp;#8217;t want animation when screen is locked.&lt;/p&gt;
&lt;p&gt;This does work with the xlockmore package&amp;#160;:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;xlock -mode blank -geometry 1x1&lt;/strong&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/507687028</link><guid>http://survietamine.tumblr.com/post/507687028</guid><pubDate>Fri, 09 Apr 2010 08:57:26 +0200</pubDate><category>lock</category><category>screen</category><category>lock</category></item><item><title>[wii] wbfs management</title><description>&lt;p&gt;Xmas and a lot of gifts &amp;#8220;duty&amp;#8221; are coming&amp;#8230;&lt;/p&gt;
&lt;p&gt;My son wish for Xmas is a &lt;b&gt;Wii&lt;/b&gt;.&lt;/p&gt;
&lt;p&gt;As I prefer him not to switch Optical media, i browse the web for infos about the scene.&lt;/p&gt;
&lt;p&gt;Yes, even if the DVD media backups copies can work with some loaders, I prefer to prevent alteration, then reburn (slow burning is required for Wii, I use 1x speed)&amp;#8230;&lt;br/&gt;And avoiding optical medias will save&amp;#160;: switching time, loading time, life of the optical drive lens&amp;#8230;&lt;/p&gt;
&lt;p&gt;Conclusion&amp;#160;: it&amp;#8217;s possible to store backups directly to WBFS partition instead of ISO format. &lt;b&gt;USB Loader GX &lt;/b&gt;was easy to install, even after last system update (4.2e) through &lt;b&gt;Home Brew Channel&lt;/b&gt;.&lt;/p&gt;
&lt;p&gt;The great part about that is the ability to convert back to ISO if you want to burn it.&lt;/p&gt;
&lt;p&gt;Under GNU/Linux, getting wbfs tool to work was real kiddy&amp;#160;:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;get tarball here&amp;#160;: &lt;a title="http://github.com/kwiirk/wbfs" target="_blank" href="http://github.com/kwiirk/wbfs"&gt;&lt;a href="http://github.com/kwiirk/wbfs" target="_blank"&gt;http://github.com/kwiirk/wbfs&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;untar it with&amp;#160;: tar xzfv kwiirk-wbfs-b607c30.tar.gz&lt;/li&gt;
&lt;li&gt;doing &amp;#8216;make&amp;#8217; on the untared folder&lt;/li&gt;
&lt;li&gt;then &lt;b&gt;wbfs binary&lt;/b&gt; is available&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;pre-requisites&amp;#160;:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;an empty (not formatted) partition&amp;#160;: they recommend Gparted on the readme but, of course, you may (as I did) use others tools (fdisk&amp;#8230;).&lt;/li&gt;
&lt;li&gt;wbfs 1st commands (replace /dev/sdb1 with your right path)&amp;#160;:          
&lt;ul&gt;&lt;li&gt;&lt;b&gt;wbfs -p /dev/sdb1 init&lt;/b&gt;&amp;#160;: initializes your partition (be careful&amp;#160;: 1st time only, because it will empty your partition&amp;#160;! )&lt;/li&gt;
&lt;li&gt;&lt;b&gt;wbfs -p /dev/sdb1 add /path/to/your/iso&lt;/b&gt;&amp;#160;: adds the game to this partition&lt;/li&gt;
&lt;li&gt;&lt;b&gt;wbfs -p /dev/sdb1 ls&lt;/b&gt;&amp;#160;: lists games on your partition&lt;/li&gt;
&lt;li&gt;&lt;b&gt;wbfs -p /dev/sdb1 df&lt;/b&gt;&amp;#160;: shows free disk space&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;P.S.&amp;#160;: the &amp;#8216;-p /dev/sdb1&amp;#8217; is optional for commands after the init&lt;/p&gt;
&lt;p&gt;This installation works like a charm of the Wii with 2.5in USB hard drive or USB stick (even cheap ones).&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/263430575</link><guid>http://survietamine.tumblr.com/post/263430575</guid><pubDate>Mon, 30 Nov 2009 13:40:00 +0100</pubDate><category>wii</category><category>homebrew</category><category>backup</category><category>hack</category><category>wbfs</category></item><item><title>about history command</title><description>&lt;p&gt;history is a usefull command for many purposes like &amp;#8220;recall a command&amp;#8221;, investigation&amp;#8230;&lt;/p&gt;
&lt;p&gt;This memo is about &amp;#8216;history tips&amp;#8217; i find useful&amp;#160;:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;add &lt;b&gt;date&lt;/b&gt; and &lt;b&gt;time&lt;/b&gt;&amp;#160;: &lt;br/&gt;&lt;b&gt;export HISTTIMEFORMAT=&amp;#8221;%F %T &amp;#8220;&lt;/b&gt; (or any &lt;i&gt;strftime&lt;/i&gt; format, I prefer&amp;#160;: %Y%m%d %F)&lt;/li&gt;
&lt;br/&gt;&lt;li&gt;&lt;b&gt;hide&lt;/b&gt; some commands, this may be usefull if you wanna type passwords (like FTP, mysql&amp;#8230;)&amp;#160;:                     
&lt;ul&gt;&lt;li&gt;&lt;b&gt;export HISTCONTROL=ignorespace&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;prefix&lt;/b&gt; commands you want to hide &lt;b&gt;with a space&lt;br/&gt;&lt;br/&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;ignore some commands that are not important (for you)&amp;#160;:&lt;br/&gt;&lt;b&gt;export HISTIGNORE=&amp;#8221;pwd:ls:cd:&amp;#8221;&lt;br/&gt;&lt;br/&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt; &lt;b&gt;re-use&lt;/b&gt; a previous command &lt;b&gt;argument&lt;/b&gt;&amp;#160;:&lt;br/&gt;Suppose that, before deleting a file, i prefer to check it with ls first&amp;#8230;     
&lt;ul&gt;&lt;li&gt;ls -lh /path/to/the/file/i/want/to/check/myfile&lt;/li&gt;
&lt;li&gt;rm -f &lt;b&gt;!ls:2&amp;#160;&lt;/b&gt;&lt;br/&gt;:2 refers to 2nd argument i passed to command ls found in history&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;credits go mainly to this site&amp;#160;: &lt;a title="thegeekstuff.com" target="_blank" href="http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/"&gt;&lt;a href="http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/" target="_blank"&gt;http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/245832254</link><guid>http://survietamine.tumblr.com/post/245832254</guid><pubDate>Mon, 16 Nov 2009 10:03:00 +0100</pubDate><category>history</category><category>bash</category><category>tuning</category></item><item><title>ettercap mitm gateway attack</title><description>&lt;p&gt;Long time i didn&amp;#8217;t sniff with ettercap, so i typed here an example command&amp;#160;:&lt;/p&gt;
&lt;p&gt;ettercap -T -m myVictim.log -M arp:remote /172.20.1.1/ /172.20.1.10/&lt;/p&gt;
&lt;p&gt;# -T switch tells ettercap to use Text user interface&lt;br/&gt;# -m selects and simple log file (output in the gui interface, not the ECI version)&lt;br/&gt;# -M selects Man-in-the-middle attack&lt;br/&gt;# arp:remote are option for MITM method&lt;br/&gt;# 172.20.1.10 is the victim&lt;br/&gt;# 172.20.1.1 is the gateway&lt;/p&gt;</description><link>http://survietamine.tumblr.com/post/239179777</link><guid>http://survietamine.tumblr.com/post/239179777</guid><pubDate>Tue, 10 Nov 2009 15:45:00 +0100</pubDate><category>ettercap</category><category>mitm</category><category>sniffing</category><category>sniff</category></item></channel></rss>
