Varnish is distributed in the Ubuntu package repositories, but the version there might be out of date, and we generally recommend using the packages provided by varnish-cache.org.
To use the varnish-cache.org repository, do the following
1.curl http://repo.varnish-cache.org/debian/GPG-key.txt apt-key add -
2.echo "deb http://repo.varnish-cache.org/debian/ $(lsb_release -s -c) varnish-2.1" >> /etc/apt/sources.list
3.apt-get update
4.apt-get install varnish
Tuesday, January 18, 2011
Friday, December 11, 2009
Glype youtube plugin
My modified version of youtube plugin:/***************************************************************** * Override options for this site ******************************************************************/ // Increase timeout to 60 minutes $toSet[CURLOPT_TIMEOUT] = 0; // Strip javascript to simplify the page and stop existing javascript intefering //$options['stripJS'] = false; //dont need this /***************************************************************** * Pre-parsing applied BEFORE main proxy parser ******************************************************************/ function preParse($input, $type) { switch ( $type ) { case 'html': if(preg_match('/"t"\: "([-a-zA-Z0-9_]{43})/',$input,$tValue)) { define('T_VALUE',$tValue[1]); } if(preg_match('/"video_id"\: "([-a-zA-Z0-9_]{11})/',$input,$videoId)) { define('VIDEO_ID',$videoId[1]); } // Remove noscript message $input = preg_replace('#\
Monday, September 28, 2009
http://www.kavkiskey.com is not down
The website is actually blocked. To be able to enter the website, edit the hosts file which is located in c:\windows\system32\drivers\etc\hosts
look for:
127.0.0.1 localhost
add this line after localhost above.
60.190.218.24 www.kavkiskey.com
*if you cant save it, remove the read-only attribute of the file properties first.
attrib -r hosts
look for:
127.0.0.1 localhost
add this line after localhost above.
60.190.218.24 www.kavkiskey.com
*if you cant save it, remove the read-only attribute of the file properties first.
attrib -r hosts
Wednesday, March 18, 2009
How to make xfire detect games manually
This instructions shows how to detect Left4Dead game in your pc if it is the non-steam version.
1. Edit the xfire_games.ini file which resides in your xfire installation folder eg. C:\Program Files\Xfire
2. Search for the game reference eg. Left4Dead under code number 5633 and edit the gamepath to point correctly as per your current installation which is the launcherpath and detectexe:
[5633]
LongName=Left 4 Dead
ShortName=l4d
LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\InstallPath
LauncherExe=left4dead.exe
DetectExe=left4dead.exe
Note: You dont need to change the launcherdirkey registry as it does nothing as far as im concern.
3. Run your xfire.
4. Go to Tools>Options>Games>Not Installed>Left4Dead
5. Select Manual Setup and browse to your correct gamepath
6. I add this extra command line parameter so that l4d loads faster:
-console -novid +sv_allow_lobby_connect_only 0 +sv_lan 1
7. Press Apply. If you get into some error, your gamepath is incorrect or you didnt do step 2 above.
You might need to edit the xfire_games.ini over and over again each time xfire updates itself.
1. Edit the xfire_games.ini file which resides in your xfire installation folder eg. C:\Program Files\Xfire
2. Search for the game reference eg. Left4Dead under code number 5633 and edit the gamepath to point correctly as per your current installation which is the launcherpath and detectexe:
[5633]
LongName=Left 4 Dead
ShortName=l4d
LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\InstallPath
LauncherExe=left4dead.exe
DetectExe=left4dead.exe
Note: You dont need to change the launcherdirkey registry as it does nothing as far as im concern.
3. Run your xfire.
4. Go to Tools>Options>Games>Not Installed>Left4Dead
5. Select Manual Setup and browse to your correct gamepath
6. I add this extra command line parameter so that l4d loads faster:
-console -novid +sv_allow_lobby_connect_only 0 +sv_lan 1
7. Press Apply. If you get into some error, your gamepath is incorrect or you didnt do step 2 above.
You might need to edit the xfire_games.ini over and over again each time xfire updates itself.
Saturday, June 7, 2008
Editing binary files with xxd
First to hexdump the binary:
xxd -c 12 binaryfile.bin test.txt
the output to the file test.txt will be something like this:
0000000: 7f45 4c46 0101 0100 0000 0000 .ELF........
000000c: 0000 0000 0200 0300 0100 0000 ............
edit the hexadecimals, then to convert the file back to binary, type:
xxd -r test.txt newbinary.bin
xxd -c 12 binaryfile.bin test.txt
the output to the file test.txt will be something like this:
0000000: 7f45 4c46 0101 0100 0000 0000 .ELF........
000000c: 0000 0000 0200 0300 0100 0000 ............
edit the hexadecimals, then to convert the file back to binary, type:
xxd -r test.txt newbinary.bin
Friday, March 28, 2008
How to connect to temporary Narakka server
Download this file - backup.reg and save it in your warcraft folder from http://rapidshare.com/files/103058277/backup.reg.html
Double click the file and then run the w3l.exe file in your warcraft folder tu start.
Create a new user if your username does not exist.
Double click the file and then run the w3l.exe file in your warcraft folder tu start.
Create a new user if your username does not exist.
Wednesday, December 26, 2007
How to solve 3x3x3 rubik's cube
Reference:
F = Turn front side of cube clockwise
U = Turn top side of cube clockwise
R = Turn right side of cube clockwise
L = Turn left side of cube clockwise
i = Turn the side of cube anticlockwise
1. Solve the front face centres and align the cross with side centres
2. Solve the side angles to match face colors and side centre colors
3. Once front side is solved, turn the solved side downwards and try to solve the second line of the cube.
To move the centre top side to the right of second line use this algorithm: U,R,Ui,Ri,Ui,Fi,U,F
To move the centre top side to the left of second line use this algorithm: Ui,L,U,Li,U,F,Ui,Fi
4. Once second line is solved, next step is to get the top side to form a cross. Use this algorithm over and over until it form a cross:
F,R,U,Ri,Ui,F
5. Now to align the top side cross color with the second line centres, at least there will be 2 sides which top side is correctly aligned with the second line.
If the correct side are opposite to each other use this algorithm:
U,R,U,Ri,U,R,U,U,Ri
If the correct sides are next to each other, hold the correct side one opposite and the other on the left hand side. Use the same algorithm as above.
6. Next step is to ensure that the top side corners are in place correctly at its place but not necessarily have the correct color on top side.
Find one corner which is correct and hold it so that it would be on the bottom right of the top face. Use this algorithm over and over to get them correct:
U,R,Ui,Li,U,R,Ui,L
If no corners are correct use the above algorithm to get one side corrected.
7. Once the corners of the top face is at the correct place, hold the uncorrected corner on the bottom right hand corner of the top side and use this algorithm to solve the uncorrected top corners:
Ri,Di,R,D
Turn the top side of the uncorrected corner and place it on the bottom right hand corner and do the same algorithm again. DO NOT FORGET THE 'D' when you do the algorithm above.
F = Turn front side of cube clockwise
U = Turn top side of cube clockwise
R = Turn right side of cube clockwise
L = Turn left side of cube clockwise
i = Turn the side of cube anticlockwise
1. Solve the front face centres and align the cross with side centres
2. Solve the side angles to match face colors and side centre colors
3. Once front side is solved, turn the solved side downwards and try to solve the second line of the cube.
To move the centre top side to the right of second line use this algorithm: U,R,Ui,Ri,Ui,Fi,U,F
To move the centre top side to the left of second line use this algorithm: Ui,L,U,Li,U,F,Ui,Fi
4. Once second line is solved, next step is to get the top side to form a cross. Use this algorithm over and over until it form a cross:
F,R,U,Ri,Ui,F
5. Now to align the top side cross color with the second line centres, at least there will be 2 sides which top side is correctly aligned with the second line.
If the correct side are opposite to each other use this algorithm:
U,R,U,Ri,U,R,U,U,Ri
If the correct sides are next to each other, hold the correct side one opposite and the other on the left hand side. Use the same algorithm as above.
6. Next step is to ensure that the top side corners are in place correctly at its place but not necessarily have the correct color on top side.
Find one corner which is correct and hold it so that it would be on the bottom right of the top face. Use this algorithm over and over to get them correct:
U,R,Ui,Li,U,R,Ui,L
If no corners are correct use the above algorithm to get one side corrected.
7. Once the corners of the top face is at the correct place, hold the uncorrected corner on the bottom right hand corner of the top side and use this algorithm to solve the uncorrected top corners:
Ri,Di,R,D
Turn the top side of the uncorrected corner and place it on the bottom right hand corner and do the same algorithm again. DO NOT FORGET THE 'D' when you do the algorithm above.
Subscribe to:
Posts (Atom)
