Skip to content

Instantly share code, notes, and snippets.

View insanity54's full-sized avatar

Chris insanity54

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1MH5RN1cnH2Ejar4E5M85MSEGKa5kPEnvy https://explorer.blockstack.org/address/1MH5RN1cnH2Ejar4E5M85MSEGKa5kPEnvy
@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
@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 / 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 / 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 / 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 / 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 / squad-server-setup.ps1
Last active March 25, 2019 09:50
Provision a Windows server to be a 24/7 Karkand Server (Offworld Industries Squad)
# 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
# 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 / robinhooder.js
Created September 28, 2019 01:13
Robinhooder
// ==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