Thursday 30 December 2010
Introduction to the Windows Shell
By keyphrene, Thursday 30 December 2010 at 07:42 :: Shell Windows
Introduction to the Windows Shell (DOS)
Homepage | Go to the content | Go to the menu | Go to the search engine
Thursday 30 December 2010
By keyphrene, Thursday 30 December 2010 at 07:42 :: Shell Windows
Introduction to the Windows Shell (DOS)
By keyphrene, Thursday 30 December 2010 at 07:39 :: Shell Windows
How to create a thumbnail from a video with a DOS script and FFMPEG
Thursday 15 July 2010
By keyphrene, Thursday 15 July 2010 at 06:50 :: Shell Unix
Time Left Format Shell function (Tutorial Shell function)
By keyphrene, Thursday 15 July 2010 at 06:50 :: Shell Windows
Get filename with different format. Split filename (Tutorial DOS function)
By keyphrene, Thursday 15 July 2010 at 06:47 :: Shell Windows
Detect if your pathname is a directory. (Tutorial DOS function)
By keyphrene, Thursday 15 July 2010 at 06:44 :: Shell Windows
Randomize DOS function. (Tutorial DOS function)
Thursday 10 June 2010
By keyphrene, Thursday 10 June 2010 at 11:47 :: Org.keyphrene - 4Py
How to archive the most recent directories. (Tutorial Shell Unix)
Saturday 20 February 2010
By keyphrene, Saturday 20 February 2010 at 11:36 :: Shell Unix
How to archive the most recent files. (Tutorial Shell Unix)
Thursday 7 January 2010
By keyphrene, Thursday 7 January 2010 at 17:37 :: Webdav server in PHP
<? # Author: Vincent JAULIN // function to parse the http auth header function http_digest_parse($txt) { // protect against missing data $needed_parts = array('nonce'=>1, 'nc'=>1, 'cnonce'=>1, 'qop'=>1, 'username'=>1, 'uri'=>1, 'response'=>1); $data = array(); preg_match_all('@(\w+)=([\'"]?)([%a-zA-Z0-9=./\_-]+)\2@', $txt, $matches, PREG_SET_ORDER); foreach ($matches as $m) { $data[$m[1]] = $m[3]; unset($needed_parts[$m[1]]); } return $needed_parts ? false : $data; } function AuthenticationDigestHTTP($realm, $users, $phpcgi=0) { if (empty($_SERVER['PHP_AUTH_DIGEST']) && empty($_SERVER['REDIRECT_REMOTE_USER'])){ header('HTTP/1.1 401 Unauthorized'); header('WWW-Authenticate: Digest realm="'.$realm.'" qop="auth" nonce="'.uniqid(rand(), true).'" opaque="'.md5($realm).'"'); die('401 Unauthorized'); } // analyze the PHP_AUTH_DIGEST variable $auth = $_SERVER['PHP_AUTH_DIGEST']; if ($phpcgi == 1) { $auth = $_SERVER['REDIRECT_REMOTE_USER']; } $data = http_digest_parse($auth); if (!array_key_exists($data['username'], $users)) { header('HTTP/1.1 401 Unauthorized'); die('401 Unauthorized'); } // generate the valid response $A1 = md5($data['username'] . ':' . $realm . ':' . $users[$data['username']]); $A2 = md5($_SERVER['REQUEST_METHOD'].':'.$data['uri']); $valid_response = md5($A1.':'.$data['nonce'].':'.$data['nc'].':'.$data['cnonce'].':'.$data['qop'].':'.$A2); if ($data['response'] != $valid_response) { header('HTTP/1.1 401 Unauthorized'); die('401 Unauthorized'); } return TRUE; } function AuthenticationBasicHTTP($realm, $users, $phpcgi=0) { if (empty($_SERVER['PHP_AUTH_USER']) && empty($_SERVER['REDIRECT_REMOTE_USER'])) { header('WWW-Authenticate: Basic realm="'.$realm.'"'); header('HTTP/1.0 401 Unauthorized'); die('401 Unauthorized'); } $user = $_SERVER['PHP_AUTH_USER']; if ($phpcgi == 1) { $matches = explode(' ', $_SERVER['REDIRECT_REMOTE_USER']); list($name, $password) = explode(':', base64_decode($matches[1])); $_SERVER['PHP_AUTH_USER'] = $user = strip_tags($name); $_SERVER['PHP_AUTH_PW'] = strip_tags($password); } if (array_key_exists($user, $users) && $users[$user] == $_SERVER['PHP_AUTH_PW'] ){ return TRUE; } header('WWW-Authenticate: Basic realm="'.$realm.'"'); header('HTTP/1.0 401 Unauthorized'); die('401 Unauthorized'); return FALSE; } ?>
TAGS : Script PHP authentication Digest Basic for Webdav
Thursday 10 December 2009
By keyphrene, Thursday 10 December 2009 at 13:45 :: KetchupTV
Ketchup TV is a mini-player that will allow you to view various online TV and radio stations. You can load your own playlists. KetchupTV has a Podcasts Service with trailers, news, and others contents..
Windows XP, Vista, Seven
Copy directly in Ketchup installation folder
KetchupTV 1.0.1.0 sur Keyphrene.comFor Windows XP: Framework .Net.
.Net Framework is maybe installed.




Launch setup
You must click on this button
.

Click on Options, You can configure your folders and your playlists.

After configuration, You can load your playlists with this button
.
Click on button
and discover Podcasts Area.


Keywords: Ketchup TV, TV, catch-up, catch up, WebRadio, WebTV, Box, Freebox, SFR Box, LiveBox, BBox
Thursday 27 August 2009
By keyphrene, Thursday 27 August 2009 at 08:51 :: Webdav server in PHP
How to install a webdav server in PHP
Sunday 19 July 2009
By keyphrene, Sunday 19 July 2009 at 20:15 :: FreeHD.gadget
WebTV (119 TV)
WebRadio (51 radio)
FAQs
Monday 13 July 2009
By keyphrene, Monday 13 July 2009 at 06:59 :: Shell Unix
Introduction to the Unix Shell
Friday 26 June 2009
By keyphrene, Friday 26 June 2009 at 11:58 :: Shell Unix
This reference guide to the vi editor presents the majority of vi commands and keys
By keyphrene, Friday 26 June 2009 at 09:42 :: Shell Unix
When you wish merge your Postscript files via cat command, some printers break printing after the first page. This shell script sanitize your postscript file after merge with cat command in three steps.
FILEPS=file.ps FILEMERGE=file_merge.ps # Merge your postscript files cat file1.ps file2.ps file3.ps > $FILEPS # Sanitize your Poscript file sed '/^%%Page:/,$d' $FILEPS > $FILEMERGE awk '/%%Page:/,/%%PageTrailer/' $FILEPS >> $FILEMERGE echo -e '%%Trailer\n%%EOF' >> $FILEMERGE
Friday 8 May 2009
By keyphrene, Friday 8 May 2009 at 20:47 :: FreeHD.gadget
Watch WebTV and WebRadios on your Windows Sidebar. Switch Fullscreen, schedule your recordings. Use the Drag & Drop to play your media. FreeHD use VLC activeX. You can use your own playlist.
Sunday 11 January 2009
By keyphrene, Sunday 11 January 2009 at 11:03 :: FreeHD.gadget
Howto install Windows Sidebar on XP?
Saturday 27 September 2008
By keyphrene, Saturday 27 September 2008 at 13:57 :: Org.keyphrene - 4Py
How to open a sftp connection and list a directory
Thursday 18 September 2008
By keyphrene, Thursday 18 September 2008 at 18:01 :: Org.keyphrene - 4Py
Transfert By SCP
Wednesday 17 September 2008
By keyphrene, Wednesday 17 September 2008 at 19:33 :: Org.keyphrene - 4Py
A simple connection
import socket from org.keyphrene import SSH2 # or # from ssh4py import SSH2 HOSTNAME = "127.0.0.1" PORT = 22 LOGIN = "login" PWD = "password" # A simple connection sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((HOSTNAME, PORT)) sock.setblocking(1) ssh = SSH2.Session() ssh.setBanner(SSH2.DEFAULT_BANNER+" Python (http://www.keyphrene.com/projects/org.keyphrene)") ssh.startup(sock) ssh.setPassword(LOGIN, PWD) # here, your operations # Execute channel = ssh.Channel() channel.execute("echo test") while 1: data = channel.read(1024) if not data: break print data channel.close() # Open a terminal channel = ssh.Channel() channel.pty("xterm", "", 0, 80, 24) channel.shell() channel.setBlocking(1) # ... channel.close() ssh.close()