This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) On each of your servers, create a new user: | |
useradd -m -s /bin/false autossh | |
2) On your NFS server, add the public key of your NFS client to the authorised keys file: | |
su -s /bin/bash autossh | |
ssh-keygen | |
vim ~/.ssh/authorized_keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public OnCommandText(playerid, cmdtext[]) | |
{ | |
if(!strcmp(cmdtext, "hai")) | |
{ | |
print("A command, lol!"); | |
return 1; | |
} | |
if(!strcmp(cmdtext, "bai")) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
themeHeader('Control Panel Debug'); | |
define('_YES', '<span style="color: green"><strong>Yes</strong></span>'); | |
define('_NO', '<span style="color: red"><strong>No</strong></span>'); | |
echo '<h3>PHP Setup</h3>'; | |
echo 'Is <code>safemode</code> disabled? '; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "SampQueryAPI.php"; | |
$query = new SampQueryAPI('212.61.65.201', '6777'); | |
if($query->isOnline()) | |
{ | |
$aInformation = $query->getInfo(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[MapInformation] | |
Author = David Weston | |
Title = Demo map for Sumo! | |
[MapBehaviour] | |
FalloffZ = 7.00 | |
GamemodeType = Normal | |
EnableNotMoveLose = Yes | |
EnableNotMoveWarn = No | |
GiveNitro = Yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class that aids you with using ControlV. | |
* | |
* You will need cURL installed on your web server, along with an API key, | |
* which you can get issued from http://controlv.net/getapi.php . | |
* | |
* You can find the documentation here: http://docs.typefish.co.uk/ControlV/ControlV.html | |
* | |
* @package ControlV |