Skip to content

Instantly share code, notes, and snippets.

View fr34kyn01535's full-sized avatar
🎯
Focusing

Sven Mawby fr34kyn01535

🎯
Focusing
View GitHub Profile
@fr34kyn01535
fr34kyn01535 / rcon.php
Last active February 24, 2023 09:01
Quick'n dirty PHP client for RocketMod RCON
<?php
class RocketRCON {
private $socket;
private $connected = false;
public $errstr;
function connect($ip,$port,$password,$timeout = 5) {
try{
$this->socket = fsockopen($ip, intval($port), $errno, $errstr, $timeout);
@fr34kyn01535
fr34kyn01535 / unity3d-gui.md
Last active October 26, 2016 11:18
Controlling Unity3D dedicated servers | window toolkits & IPC /RPC methods

There is two ways of controlling a dedicated servers:

  1. Using a GUI toolkit to render a window with all the needed controls
  2. Using some kind of service framework (IPC/RPC methods) hosted in Unity3D to make remote access using any tool possible

#Possible GUI toolkits

Windows.Forms

Advantages:

@echo off
set newbuildid=0
set buildid=0
bitsadmin /transfer buildid /download http://update.unturned.hosting/buildid.tmp %~dp0buildid.tmp
set /p newbuildid=<%~dp0buildid.tmp
set /p buildid=<%~dp0buildid.cache
cls
echo Lastest version: %newbuildid%
if "%newbuildid%" == "%buildid%" (
**RocketMod Contributor License Agreement**
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Sven Mawby Software Solutions.
This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Sven Mawby Software Solutions in respect of any of the Projects (collectively “Contributions”).
If you have any questions respecting this Agreement, please contact [email protected].
You agree that the following terms apply to all of your past, present and future Contributions.
Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
function trig()
print("BTN2 button pressed")
node.restart()
end
function rst()
print("BTN1 button pressed")
node.restart()
end
@fr34kyn01535
fr34kyn01535 / arguments.txt
Last active April 13, 2017 17:10
Rocket Command Argument Syntax
Rocket Command Argument Syntax Defintion --- Draft ---
Rocket commands are called with a variety of possible arguments.
Instead of parsing them individually the idea is to define a syntax to define arguments, and let rocket parse and validate.
1) Syntax definition
<> required argument
[] optional argument
2) Defining name and type
var i = window.setInterval(function(){
for(let k of Object.keys(ig.game.targets)){ if(ig.game.targets[k]) for(let t of ig.game.targets[k]){ ig.game.shoot(k); for(let c of t.remainingWord){ ig.game.shoot(c); }; }; };
}, 200);
//window.clearInterval(i);
@fr34kyn01535
fr34kyn01535 / 0_reuse_code.js
Created April 24, 2017 15:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
--------------------------------------------------------------------------------------
As part of a commercial license agreement with RocketMod | Sven Mawby <[email protected]> the author of this product does NOT have to license products deriving from RocketMod implementations under GPLv3.
If you have any questions about the license or want to check the validity of this agreement see https://rocketmod.net/licensing/ or contact RocketMod Licensing <[email protected]>.
Note that this permission may be revoked at any time, future versions may be relicensed under GPLv3.
Twitter App erstellen
https://apps.twitter.com/
nodejs LTS installieren
cd in den Ordner
npm install
zum starten node index.js
Momentan lauscht der Bot auf #fr34kyn01535.answerbot und antwortet mit einem Hi