Skip to content

Instantly share code, notes, and snippets.

View cerebrate's full-sized avatar

Alistair Young cerebrate

View GitHub Profile
@cerebrate
cerebrate / LifeSupport.cfg
Last active August 29, 2015 14:02
Convert TAC Life Support plugin to liters
Replace the GlobalSettings section with:
GlobalSettings
{
MaxDeltaTime = 86400
ElectricityMaxDeltaTime = 1
FoodResource = Food
WaterResource = Water
OxygenResource = Oxygen
CarbonDioxideResource = CarbonDioxide
@cerebrate
cerebrate / Adapter.cs
Last active August 29, 2015 14:04
Reflecting differently
public class FARAdapter : Adapter
{
private PropertyInfo instanceProp;
private FieldInfo machNumberField;
private FieldInfo qField;
public override void Plugin()
{
Type type = GetType("ferram4.FARControlSys");
@cerebrate
cerebrate / KSP.log
Created July 23, 2014 00:56
RealChute error logs
This file has been truncated, but you can view the full file.
Kerbal Space Program - 0.24.0.549 (WindowsPlayer) Steam
OS: Windows 8.1 (6.3.9600) 64bit
CPU: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (4)
RAM: 8063
GPU: Intel(R) HD Graphics (912MB)
SM: 30 (Direct3D 9.0c [igdumdim64.dll 10.18.10.3412])
RT Formats: ARGB32, Depth, ARGBHalf, RGB565, ARGB4444, ARGB1555, Default, DefaultHDR, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8
@cerebrate
cerebrate / ksp.log
Created April 29, 2015 15:02
No life support resources
This file has been truncated, but you can view the full file.
Kerbal Space Program - 1.0.0.830 (WindowsPlayer) Steam
OS: Windows 8.1 (6.3.10061) 64bit
CPU: Intel(R) Core(TM) i5-4440S CPU @ 2.80GHz (4)
RAM: 8093
GPU: Intel(R) HD Graphics 4600 (4046MB)
SM: 30 (Direct3D 9.0c [igdumdim32.dll 10.18.15.4124])
RT Formats: ARGB32, Depth, ARGBHalf, RGB565, ARGB4444, ARGB1555, Default, DefaultHDR, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8
!
! Last configuration change at 10:05:35 CDT Wed Aug 17 2016 by avatar
! NVRAM config last updated at 09:31:51 CDT Wed Aug 17 2016 by avatar
!
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
service linenumber

Keybase proof

I hereby claim:

  • I am cerebrate on github.
  • I am cerebrate (https://keybase.io/cerebrate) on keybase.
  • I have a public key ASAggWBv-rBgDm8LNH1F4_vo9P0b6QN8-BjJnFO_MxvYzAo

To claim this, I am signing this object:

@cerebrate
cerebrate / gist:81ad9501ed2e6ee129b5aac192adc292
Created November 13, 2016 09:10
script for security example
#!/bin/sh
echo "Seriously!? After I _told_ you what it could do?"
echo "Kinda makes me wish I'd put rm -rf / in here after all."
(use-package vc
:config
(progn
;; show vc commands being executed
(setq vc-command-messages t)
;; confirm when chasing symlinks in a VC directory
(setq vc-follow-symlinks 'ask)
;; handled back-ends
/*
Dogtector - operating code for the Dogtector
Copyright Alistair Young, 2017. All Rights Reserved.
*/
#include <ESP8266WiFi.h>
#include <Ticker.h>
#include <Adafruit_MQTT.h>
#include <Adafruit_MQTT_Client.h>
@cerebrate
cerebrate / Update-AUPackages.md
Created January 25, 2017 00:54
Update-AUPackages Report #powershell #chocolatey