[Error-svn] – 413 Request Entity Too Large

If you have this message « svn: Server sent unexpected return value (413 Request Entity Too Large) in response to PUT request for » when you want commit big file, add this directive on Apache2.conf

LimitXMLRequestBody 0
LimitRequestBody 0
Categories: Linux Tags: , , ,

Petit Applescript pour la tv en stream

on run
	set choix to choose from list {"France 2", "France 3", "France 4", "France 5", "France O", "M6", "W9", "NRJ 12", "Direct Star", "France 24", "BFM", "BFM business", "NRJ pop rock", "NRJ pure", "NRJ dance", "NRJ urban"}

	set monurl to ""
	if choix is {"France 2"} then
		set monurl to "http://94.247.234.2/streaming/francetv_ft2/ipad.m3u8"
	end if

	if choix is {"France 3"} then
		set monurl to "http://94.247.234.2/streaming/francetv_ft3/ipad.m3u8"
	end if

	if choix is {"France 4"} then
		set monurl to "http://94.247.234.2/streaming/francetv_ft4/ipad.m3u8"
	end if

	if choix is {"France 5"} then
		set monurl to "http://94.247.234.4/streaming/francetv_ft5/ipad.m3u8"
	end if

	if choix is {"France O"} then
		set monurl to "http://94.247.234.4/streaming/francetv_fto/ipad.m3u8"
	end if

	if choix is {"M6"} then
		set monurl to "http://m6-hls-live.adaptive.level3.net/apple/m6replay_iphone/m6live/m6live_ipad.m3u8"
	end if

	if choix is {"W9"} then
		set monurl to "http://m6-hls-live.adaptive.level3.net/apple/m6replay_iphone/m6live/w9live.m3u8"
	end if

	if choix is {"NRJ 12"} then
		set monurl to "http://nrj-apple-live.adaptive.level3.net/apple/nrj/nrj/nrj12.m3u8"
	end if

	if choix is {"Direct Star"} then
		set monurl to "http://cupertino-streaming-1.hexaglobe.com/rtpdirectstarlive/smil:directstar-ipad.smil/playlist.m3u8"
	end if
	if choix is {"France 24"} then
		set monurl to "http://stream7.france24.yacast.net/iphone/france24/fr/iPad.f24_fr.m3u8"
	end if

	if choix is {"BFM"} then
		set monurl to "http://http5.iphone.yacast.net/iphone/bfmtv/bfmtv_ipad.m3u8"
	end if

	if choix is {"BFM business"} then
		set monurl to "http://stream7.bfmbiz.yacast.net/iphone/bfmbiz/bfmbiz_live01.m3u8"
	end if

	if choix is {"NRJ pop rock"} then
		set monurl to "http://nrjlive-apple-live.adaptive.level3.net/apple/nrj/nrjlive-4/appleman.m3u8"
	end if

	if choix is {"NRJ pure"} then
		set monurl to "http://nrjlive-apple-live.adaptive.level3.net/apple/nrj/nrjlive-3/appleman.m3u8"
	end if

	if choix is {"NRJ dance"} then
		set monurl to "http://nrjlive-apple-live.adaptive.level3.net/apple/nrj/nrjlive-2/appleman.m3u8"
	end if

	if choix is {"NRJ urban"} then
		set monurl to "http://nrjlive-apple-live.adaptive.level3.net/apple/nrj/nrjlive-1/nrjurban.m3u8"
	end if

	if monurl ≠ "" then
		tell application "QuickTime Player"
			activate
			open URL monurl
		end tell
	end if

end run

Ps: Les chaines du groupe M6 ne fonctionne plus !!!!

Categories: Apple Tags: , , , ,

Les chaînes TV en direct sur mac

1- Dans QuickTime, aller dans : FICHIER/OUVRIR UNE ADRESSE (cmd + l sous lion)
2- Dans « Ouvrir une adresse » : coller les liens suivants en fonction de la chaîne que vous souhaitez voir :
L’astuce consiste à se faire passer pour un iPad en utilisant les flux des applications !

France 2:

http://94.247.234.2/streaming/francetv_ft2/ipad.m3u8

France 3:

http://94.247.234.2/streaming/francetv_ft3/ipad.m3u8

France 4:

http://94.247.234.2/streaming/francetv_ft4/ipad.m3u8

France 5:

http://94.247.234.4/streaming/francetv_ft5/ipad.m3u8

France 0:

http://94.247.234.4/streaming/francetv_fto/ipad.m3u8

M6:

http://m6-hls-live.adaptive.level3.net/apple/m6replay_iphone/m6live/m6live_ipad.m3u8

NRJ12:

http://nrj-apple-live.adaptive.level3.net/apple/nrj/nrj/nrj12.m3u8

Direct star:

http://cupertino-streaming-1.hexaglobe.com/rtpdirectstarlive/smil:directstar-ipad.smil/playlist.m3u8

France 24 (FR):

http://stream7.france24.yacast.net/iphone/france24/fr/iPad.f24_fr.m3u8

BFM TV:

http://http5.iphone.yacast.net/iphone/bfmtv/bfmtv_ipad.m3u8

BFM business:

http://stream7.bfmbiz.yacast.net/iphone/bfmbiz/bfmbiz_live01.m3u8

NRJ pop Rock:

http://nrjlive-apple-live.adaptive.level3.net/apple/nrj/nrjlive-4/appleman.m3u8

NRJ Pure:

http://nrjlive-apple-live.adaptive.level3.net/apple/nrj/nrjlive-3/appleman.m3u8

NRJ Dance:

http://nrjlive-apple-live.adaptive.level3.net/apple/nrj/nrjlive-2/appleman.m3u8

NRJ Urban:

http://nrjlive-apple-live.adaptive.level3.net/apple/nrj/nrjlive-1/nrjurban.m3u8

La qualité s’améliore après quelques minutes.

Categories: Apple Tags: , , , ,

MySQL – myisamchk: error: myisam_sort_buffer_size is too small

If you’re trying to repair large MyISAM tables in MySQL, you can run into the following restriction, because of the limited size of the default Sort Buffer.

root@srv # myisamchk -r mytable.MYI
- recovering (with sort) MyISAM-table ‘mytable.MYI’
Data records: 335045
- Fixing index 1
Found block that points outside data file at 1509428340
Found link that points at 61778810452273 (outside data file) at 1509428348
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
- Fixing index 7
- Fixing index 8
myisamchk: error: myisam_sort_buffer_size is too small
MyISAM-table ‘mytable.MYI’ is not fixed because of errors

While the fix seems obvious (increase the myisam_sort_buffer_size), it’s a bit confusing. The server has both variables, myisam_sort_buffer_size and sort_buffer_size. The first one is the one used for the buffer that is used in “Repair by sort”. Second one is used to buffer a filesort. The ‘myisamchk’ command does NOT have myisam_sort_buffer_size. Myisamchk has ONLY sort_buffer_size, which is used for “Repair by sort”.

The following increases the buffer size that is needed.

root@srv # myisamchk -r -q mytable.MYI --sort_buffer_size=2G

Or increase the memory, if it’s still not sufficient to do the repair.

Categories: Linux Tags: , , , ,

Hide apache/nginx software version

What version are we running? is it vulnerable? what modules, that also might have vulnerabilities, and even what operating system we are running… Too many information… This will not protect in any way from real vulnerabilities if they exist, but it will at least make their life harder. This will also not stop more complex fingerprinting programs to detect some information on the web server, but at least we should not make their life easier .
I will talk in this post about setting two apache directives: ServerTokens and ServerSignature and how they can be used. Basically to provide only a minimal amount of information we will set this in the main config (apache.conf):

ServerTokens ProductOnly
ServerSignature Off

Here is configuration rules for nginx:

server_tokens off;
Categories: Linux Tags: , , , , ,

MacPort on Mac OS X Lion

Preriquisite : install Aple’s development tool XCode. It is freely available from the App Store (be patient it is a 3.5 Gb download)

Open a terminal
create a directory for the sources

mkdir  -p /opt/macport.sources

Fetch the sources

cd macport.sources
sudo svn checkout http://svn.macports.org/repository/macports/trunk/ .

Compile:

cd trunk/base
sudo ./configure --enable-readline
sudo make install
Install
sudo make distclean

Change your profile to include MacPort in the PATH

vi $HOME/.profile
#!/usr/bin/bash
# MacPort
export PATH=$PATH:/opt/local/bin

Source your profile to include the changes

source . $HOME/.profile

That’s it ! Easy as I promised.

You can now search for package with

sudo port list | grep <your search>

and install packages with

sudo port install <package name>
Categories: Apple Tags: , , ,

Erreur locale FR on Ubuntu

Si vous avez se type d’erreur:

perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "fr_FR.utf-8",
        LC_MONETARY = "fr_FR.utf-8",
        LC_CTYPE = "fr_FR.utf-8",
        LC_COLLATE = "fr_FR.utf-8",
        LC_MESSAGES = "fr_FR.utf-8",
        LC_NUMERIC = "fr_FR.utf-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct
Setting up locales (2.11+git20100304-3) ...
Generating locales...
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
Generation complete.

ou :

warning: setlocale: LC_CTYPE: cannot change locale (fr_FR.utf-8)

a chaque tab, installer le package suivant:

sudo apt-get install --reinstall language-pack-fr
locale-gen
Categories: Linux Tags: , , ,

Hide dock icon on Mac OS X

I played around with the info.plist but sadly couldent make it hide using:

<KEY>NSUIElement</KEY>
<STRING>1</STRING>
Categories: Apple Tags: , ,

Ajouter un saut de ligne dans un fichier continue

 zcat 110121-204018-558-Myfile-Update.csv.gz | tr '\r' '\n' > 110121-204018-558-Myfile_Fixef.csv
Categories: Linux Tags: , , , , ,

Install Goocle Chrome on Ubuntu

Setup key with:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Setup repository with:

sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

Setup package with:

sudo apt-get update
sudo apt-get install <package name>

Package List:

  • google-chrome-beta – The web browser from Google
  • google-chrome-stable – The web browser from Google
  • google-chrome-unstable – The web browser from Google
Categories: Linux Tags: , , ,