Skip to content

Instantly share code, notes, and snippets.

View csprance's full-sized avatar
🐝

Chris Sprance csprance

🐝
View GitHub Profile
@csprance
csprance / MODO11.1.CFG
Created November 16, 2017 22:40
My Modo Setup. Hotkeys, Colors and layout setups as well as user vales. Stick this into %appdata%/Luxology/
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<import>resource:</import>
<import>module:Scripts</import>
<import>user:Configs</import>
<import>configs:</import>
<import>user:Scripts</import>
<import>scripts:</import>
<import>user:Kits</import>
<import>userkits:</import>
@csprance
csprance / get_miscreated_servers.js
Created February 5, 2018 01:18
Gets data about miscreated servers from the steam master server
import vmsq from 'vmsq';
import SourceQuery from 'sourcequery';
const MASTER_SERVER = 'hl2master.steampowered.com:27011';
export const getServer = (servers = []) => {
return new Promise((resolve, reject) => {
vmsq(MASTER_SERVER, vmsq.ALL, {
appid: 299740
})
<?php
// Return JSON
header('Content-Type: application/json');
error_reporting(0);
// Cache
require_once 'vendor/autoload.php';
$longcache = new Gilbitron\Util\SimpleCache();
$longcache->cache_path = 'cache/';
$longcache->cache_time = 3600;
"""
===================================
Shaded & power normalized rendering
===================================
The Mandelbrot set rendering can be improved by using a normalized recount
associated with a power normalized colormap (gamma=0.3). Rendering can be
further enhanced thanks to shading.
The `maxiter` gives the precision of the computation. `maxiter=200` should
"""
@name: cryengine_setup.py
@author: Chris Sprance
@project: Miscreated
@description: Sets up an fbx from modo to be ready to export in maya
@instructions: Select top level group(s) hit button. fist bump
"""
import re
import maya.mel as mm
@csprance
csprance / bad-words.ts
Created November 7, 2018 19:30
bad-words-list
export default [
'reallyReallyBadTestWord',
'5h1t',
'5hit',
'anal',
'ar5e',
'ass',
'ass-fucker',
'asses',
'assfucker',
@csprance
csprance / nodemon.json
Created November 10, 2018 08:55
nodemon typescript config
{
"watch": ["src"],
"ext": "ts",
"ignore": ["src/**/*.spec.ts"],
"exec": "cross-env NODE_ENV=development ts-node --files --project tsconfig.json src",
"inspect": true,
"verbose": true
}
@csprance
csprance / johnny-five-morse-code.ts
Last active December 8, 2018 18:00
Morse Code Arduino
import five, { Button } from 'johnny-five';
const alpha: { [k: string]: string } = {
'.-': 'A',
'-...': 'B',
'-.-.': 'C',
'-..': 'D',
'.': 'E',
'..-.': 'F',
'--.': 'G',
@csprance
csprance / ServerInstallInstructions.md
Last active January 23, 2024 09:21
Instructions for setting up a Miscreated Self Hosted Server

Self Hosted Servers

During the entire beta phase of Miscreated self hosted servers are NOT officially supported and will mostly likely be changed during each update.

Due to the fact that self hosted server admins can adjust item spawns the Items tab on Amalgamated kiosks is disabled on self hosted servers - the Skins tab remains fully functional.

It's recommended server admins join our community Discord server for help: http://discord.gg/miscreated - Help requests go in the #server-admin-help channel.

START INSTALL INSTRUCTIONS - CUSTOMIZE TO YOUR NEEDS

NOTE: This document describes the manual steps needed for setting up a Miscreated server. It is highly suggested most users instead use Spafbi's Simplified Miscreated Server Setup script to handle setup, updating, and running of the server.