Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sgtgunner on github.
  • I am sgtgunner (https://keybase.io/sgtgunner) on keybase.
  • I have a public key ASDrXUfXH1pCYg5oC3_4-0CEgn5eOvNjkmks2wmG1O1TnQo

To claim this, I am signing this object:

@SGTGunner
SGTGunner / simplified_server_setup.md
Created September 28, 2019 20:02 — forked from Spafbi/simplified_server_setup.md
Simplified Miscreated Server Setup

Simplified Miscreated Server Setup

This simplified startup process will prompt you for some basic server variables (server name, max number of players, RCON password, and whether or not to enable the whitelist), store the variables for later use, download steamcmd.exe from Valve, use steamcmd.exe to download and install the Miscreated server, download upnpc from the MiniUPnP Project to automatically open the requisite firewall ports, and finally start the server process using the configure variables.

This script has only been tested on Windows 10 v1809

Scary stuff

The script (see below) will download executable binaries from the Internet. These include:

steamcmd.exe is used to download and update the Miscreated server. upnpc is used to automatically forward firewall ports to yo

Github to Discord Webhook Tutorial

In this tutorial I'll show you how to create a Github webhook that will post updates from your Github account to a channel in Discord. The steps are simple so follow along!

Create a Webhook in a Discord Channel

First you need to create a webhook in a text channel. We're assuming you have both Manage Channel and Manage Webhooks permissions!

  • Go in a channel properties (Alternatively, Server Settings, Webhooks works too)
@SGTGunner
SGTGunner / Dockerfile
Last active October 3, 2020 22:25 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.4.11-apache
RUN docker-php-ext-install mysqli
@SGTGunner
SGTGunner / fivem_keys.lua
Created April 28, 2021 02:20 — forked from KingCprey/fivem_keys.lua
FiveM IsControlPressed keys
--IsControlPressed(0,x)
local keys={}
keys[34]="A"
keys[29]="B"
keys[26]="C"
keys[30]="D"
keys[46]="E"
keys[49]="F"
keys[47]="G"
keys[74]="H"
@SGTGunner
SGTGunner / Debian.k.md
Created February 5, 2022 19:24 — forked from chaojian-zhang/Debian - Basic Host.k.md
Digital Ocean Debian Server Configurations; What commands to run from a clean slate

LFR

Unreal Dedicated Server

  • Transfer LinuxServer.tar game server file over;
# Initialize tmux for persistent session
apt-get update
apt-get install -y tmux
@SGTGunner
SGTGunner / DockerUsageNotes.md
Created February 5, 2022 19:36 — forked from chaojian-zhang/DockerUsageNotes.md
Docker Usages Notes

Basics

  • docker run --name <your_container_name> alpine/git <git_command>
  • docker run -it --name <your_container_name> alpine/git <git_command>: Run with tty interactive
  • docker run -d --name couch -p 8091-8094:8091-8094 -p 11210:11210 couchbase: Run (e.g. a server) unattached
  • docker cp container_name:/git/getting-started .: Copy files/folders between a container and the local filesystem
  • docker start <your_container_name>: Start a stopped container
  • docker attach <your_container_name>: Attach to running container