Skip to content

Instantly share code, notes, and snippets.

View theraw's full-sized avatar
🤨
u wot

𝓙𝓾𝓵𝓲𝓸 theraw

🤨
u wot
View GitHub Profile
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
HISTSIZE=1000
HISTFILESIZE=2000
#!/bin/bash
sleep 5
# Set Ulimit
ulimit -c unlimited
echo "Set: ulimit -c unlimited"
cd /home/container
# Replace Startup Variables
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Source Engine (GFL)
# Minimum Panel Version: 0.6.0
# ----------------------------------
FROM ubuntu:16.04
MAINTAINER Pterodactyl Software, <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Install Dependencies
#!/bin/bash
# SRCDS Base Installation Script
#
# Server Files: /mnt/server
apt -y update
apt-get install curl lib32gcc1 ca-certificates unzip wget -y
apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 -y
mkdir -p /mnt/server
cd /mnt
apt -y update
apt-get install curl lib32gcc1 ca-certificates unzip wget -y
apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 -y
cd /tmp
wget https://github.com/DevilBoy-eXe/hlds/releases/download/7882/hlds_build_7882.zip
cd /tmp && unzip hlds_build_7882.zip && rm -Rf hlds_build_7882.zip
mv /tmp/hlds_build_7882/ /mnt/server
chmod 555 /mnt/server/hlds_run && chmod 555 /mnt/server/hlds_linux
export HOST=192.168.0.14
export USER=docker
ssh-copy-id $USER@$HOST
docker context create \
--docker host=ssh://docker@$HOST \
--description="Remote engine" \
vbox
docker context use vbox
docker info
service nginx stop
killall nginx
rm -Rf /nginx
#LuaJIT Library
cd /opt/nginx/modules/; wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz; tar -zxvf LuaJIT-2.0.5.tar.gz; cd LuaJIT-2.0.5; make install PREFIX=/usr/local/LuaJIT
ldconfig
# Download Nginx
mkdir -p /opt/nginx/sources/
rm -Rf /opt/nginx/sources/nginx-1.19.9/
export LUAJIT_LIB=/usr/local/LuaJIT/lib; export LUAJIT_INC=/usr/local/LuaJIT/include/luajit-2.0; ./configure \
--user=nginx \
--group=nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--error-log-path=/nginx/logs/error.log \
--http-log-path=/nginx/logs/access.log \
--with-pcre \
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the