Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Grimmett insanity54

View GitHub Profile
@insanity54
insanity54 / provision-caprover.sh
Last active Aug 16, 2021
Installs docker & caprover on ubuntu 18.04
View provision-caprover.sh
#!/bin/bash
# install deps
apt update -y
apt upgrade -y
apt install -y ufw openssh-client git python3 python3-pip python-is-python3 mosh mg screen
# screen config
git clone https://github.com/insanity54/dotfiles
cp ./dotfiles/.screenrc .
View blah
network.scgi.open_local = /data/scgi.socket
encoding.add = UTF-8
network.port_range.set = 55000-55000
network.port_random.set = no
pieces.hash.on_completion.set = no
directory.default.set = /data/torrents
session.path.set = /data/.session
protocol.encryption.set = allow_incoming, try_outgoing, enable_retry
trackers.use_udp.set = no
dht.mode.set = off
@insanity54
insanity54 / install.sh
Created Dec 11, 2019
Lotus installation
View install.sh
#!/bin/bash
# designed for Ubuntu 18.04
# greetz https://docs.lotu.sh/en+install-lotus-ubuntu
sudo apt update
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go gcc git bzr jq pkg-config mesa-opencl-icd ocl-icd-opencl-dev
View example.sh
#!/bin/bash
bindir="$(dirname "$(readlink -fm "$0")")"
cd "${bindir}"
View robinhooder.js
// ==UserScript==
// @name Robinhooder
// @namespace https://robinhood.com/
// @version 0.1
// @description Enhance Robinhood by showing existence/non-existence of open orders in the dashboard
// @author Chris Grimmett <chris@grimtech.net>
// @match https://robinhood.com/*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @run-at document-idle
View compys.txt
# PC
## Good
https://www.newegg.com/Product/Product.aspx?item=9SIAHT38MD7290
https://www.newegg.com/Product/Product.aspx?Item=N82E16883102507
## Better
https://www.amazon.com/CYBERPOWERPC-Xtreme-GXiVR8060A5-i5-8400-GeForce/dp/B0757DVF4Z/
@insanity54
insanity54 / squad-server-setup.ps1
Last active Mar 25, 2019
Provision a Windows server to be a 24/7 Karkand Server (Offworld Industries Squad)
View squad-server-setup.ps1
# install choco
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y steamcmd python vcbuildtools
# install magic-wormhole for admin purposes
python -m pip install --upgrade pip
pip install --user incremental magic-wormhole
@insanity54
insanity54 / setup.sh
Last active Mar 23, 2019
24/7 Karkand Squad Server (WIP)
View setup.sh
#/bin/bash
# MEANT TO BE RUN AS ROOT
# Install docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
@insanity54
insanity54 / install-teamspeak.sh
Last active Mar 17, 2019
Automatically programmably unattended install of Teamspeak3 on Linux
View install-teamspeak.sh
#!/bin/bash
# Depends on expect
# install with sudo apt-get -y install expect
wget https://files.teamspeak-services.com/releases/client/3.2.3/TeamSpeak3-Client-linux_amd64-3.2.3.run
chmod +x ./TeamSpeak3-Client-linux_amd64-3.2.3.run
expect <<- DONE
@insanity54
insanity54 / docker-compose.yml
Created Sep 20, 2018
docker-compose file for Squad Dedicated Server.
View docker-compose.yml
version: '3.2'
services:
squad:
image: "cm2network/squad"
network_mode: "host"
volumes:
- /root/squad/cfg:/home/steam/squad-dedicated/Squad/ServerConfig
environment:
- RCONPORT=21114
- FIXEDMAXPLAYERS=20