Skip to content

Instantly share code, notes, and snippets.

View AirOne01's full-sized avatar
👏
internship at SPIE

Erwann Lagouche AirOne01

👏
internship at SPIE
View GitHub Profile
[Unit]
Description=AutoSSH service
After=network.target
[Service]
Type=simple
User=user
Group=group
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -N -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -L %i:localhost:%i user@remote
@AirOne01
AirOne01 / main.lua
Last active November 21, 2021 00:15
Tests for Client:Send functions
function Initialize(Plugin)
Plugin:SetName("SendTests")
cPluginManager.BindCommand("/sendblockbreak", "permissionnode", CmdBlockBreak, " - Show a block break packet to the block below you")
cPluginManager.BindCommand("/sendcollect", "permissionnode", CmdCollectEntity, " - Send a collect packet for items near you")
cPluginManager.BindCommand("/senddestroy", "permissionnode", CmdDestroyEntity, " - Send a destroy packet for (non-players) entities near you")
cPluginManager.BindCommand("/senddestroyplayer", "permissionnode", CmdDestroyEntityPlayer, " - Send a destroy packet for your entity")
cPluginManager.BindCommand("/senddetach", "permissionnode", CmdDetachEntity, " - Send a detach packet for your player")
cPluginManager.BindCommand("/sendeditsign", "permissionnode", CmdEditSign, " - Send a sign edit packet")
cPluginManager.BindCommand("/sendleashentity", "permissionnode", CmdLeashEntity, " - Send leash packets for entities near you")