Skip to content

Instantly share code, notes, and snippets.

View insanity54's full-sized avatar

Chris insanity54

  • 01:45 (UTC -07:00)
View GitHub Profile
@insanity54
insanity54 / setup.sh
Last active March 23, 2019 08:54
24/7 Karkand Squad Server (WIP)
#/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 March 17, 2019 09:30
Automatically programmably unattended install of Teamspeak3 on Linux
#!/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 September 20, 2018 22:21
docker-compose file for Squad Dedicated Server.
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
@insanity54
insanity54 / icspoke.cfg
Created April 18, 2018 22:45
Ubuntu auto install
#### Contents of the preconfiguration file (for stretch)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string NL
#d-i debian-installer/locale string en_GB.UTF-8
# Optionally specify additional locales to be generated.
@insanity54
insanity54 / Button.cpp
Created January 30, 2018 20:03
Class accepting another class instance does not have access to vars
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include "Button.h"
#include "Phase.h"
Button::Button(bool teamNumber, uint8_t buttonPin, Phase* phase)
@insanity54
insanity54 / boxstarter.txt
Last active January 2, 2018 23:55
General productivity software
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst notepadplusplus
cinst libreoffice
cinst vlc
cinst firefox
cinst googlechrome
cinst vcredist2008
cinst vcredist2012
Verifying my Blockstack ID is secured with the address 1MH5RN1cnH2Ejar4E5M85MSEGKa5kPEnvy https://explorer.blockstack.org/address/1MH5RN1cnH2Ejar4E5M85MSEGKa5kPEnvy
@insanity54
insanity54 / index.js
Created August 7, 2017 01:06
lolguide-server
module['exports'] = function lolSummoner(hook) {
hook.res.json(hook.params);
http.get('https://na1.api.riotgames.com/lol/summoner/v3/summoners/by-name/'+hook.params.name, function(res) {
hook.debug(hook.params.name + " is the summoner name requested" + res.body);
hook.res.end(res.body);
}).on('error', function(e) {
hook.debug(e);
hook.res.end(e);
});
---
- fail:
when: var1 is undefined or
var2 is undefined or
var3 is undefined
---
- name: create array of installable package names
set_fact:
myItems:
- firefox
- googlechrome
- vcredist2008
- vcredist2012
- notepadplusplus