Skip to content

Instantly share code, notes, and snippets.

View Westie's full-sized avatar
🛌
Permanently working from bed

David Weston Westie

🛌
Permanently working from bed
View GitHub Profile
@Westie
Westie / README.txt
Last active June 8, 2019 20:10
Connect to NFS over SSH tunnel (with systemd)
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
public OnCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "hai"))
{
print("A command, lol!");
return 1;
}
if(!strcmp(cmdtext, "bai"))
{
<?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? ';
<?php
require "SampQueryAPI.php";
$query = new SampQueryAPI('212.61.65.201', '6777');
if($query->isOnline())
{
$aInformation = $query->getInfo();
[MapInformation]
Author = David Weston
Title = Demo map for Sumo!
[MapBehaviour]
FalloffZ = 7.00
GamemodeType = Normal
EnableNotMoveLose = Yes
EnableNotMoveWarn = No
GiveNitro = Yes
<?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