Skip to content

Instantly share code, notes, and snippets.

View aidygus's full-sized avatar

Aidan Gustard aidygus

View GitHub Profile
@aidygus
aidygus / dock.ks
Created April 12, 2017 12:08
Docking script for kOS
if HASTARGET = FALSE {
PRINT "No Target!!!".
} else {
sas off.
rcs off.
SET dp TO SHIP:DOCKINGPORTS.
WHEN dp[0]:STATE = "PreAttached" THEN {
SET f TO 0.
RCS OFF.
@aidygus
aidygus / LexiconTest.ks
Created February 25, 2017 02:24
Testing lexicons in KSP KOS
LOCAL map IS LEXICON(). // Node list
LOCAL openset IS LEXICON(). // Open Set
LOCAL closedset IS LEXICON(). // Closed Set
LOCAL fscorelist IS LEXICON().// fscore list
LOCAL fscore IS LEXICON().
LOCAL gscore IS LEXICON().
LOCAL camefrom IS LEXICON().
LOCAL grid IS SHIP:GEOPOSITION.
@aidygus
aidygus / astar_nav.ks
Created January 19, 2017 00:35
An implementation of the Astar based Path Finding algorithm for KSP KOS to use with your rovers
CLEARSCREEN.
SET TERMINAL:WIDTH TO 60.
SET TERMINAL:HEIGHT TO 70.
SET len to 50. // Size of the graph
SET sindex TO 4. // Starting Y position in the graph
SET gindex TO CEILING((len-1)/2). // Grid reference for the center of the graph which is the goal
SET n to LIST(). // Template list for rows
SET l to LIST(). // Node list
@aidygus
aidygus / Console
Created October 25, 2016 09:04
Console output
$ vagrant destroy -f && vagrant up --provider vmware_workstation
Diskname or some other argument is missing.
==> provisioner: VM not created. Moving on...
==> sqlserver: Stopping the VMware VM...
==> sqlserver: Deleting the VM...
Diskname or some other argument is missing.
Diskname or some other argument is missing.
Diskname or some other argument is missing.
Bringing machine 'sqlserver' up with 'vmware_workstation' provider...
Bringing machine 'provisioner' up with 'vmware_workstation' provider...
@aidygus
aidygus / Vagrantfile
Created October 25, 2016 09:01
vagrant file for windows server build with ansible
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
@aidygus
aidygus / vmware.log
Created October 25, 2016 08:57
vagrant VMWare log for windows 2012R2 guest
2016-10-25T09:52:53.822+01:00| vmx| I125: Log for VMware Workstation pid=7384 version=12.5.0 build=build-4352439 option=Release
2016-10-25T09:52:53.822+01:00| vmx| I125: The process is 64-bit.
2016-10-25T09:52:53.822+01:00| vmx| I125: Host codepage=windows-1252 encoding=windows-1252
2016-10-25T09:52:53.822+01:00| vmx| I125: Host is Windows 7 Professional, 64-bit Service Pack 1 (Build 7601)
2016-10-25T09:52:53.807+01:00| vmx| I125: VTHREAD initialize main thread 0 "vmx" host id 5996
2016-10-25T09:52:53.809+01:00| vmx| I125: LOCALE windows-1252 -> NULL User=809 System=809
2016-10-25T09:52:53.809+01:00| vmx| I125: Msg_SetLocaleEx: HostLocale=windows-1252 UserLocale=NULL
2016-10-25T09:52:53.809+01:00| vmx| I125: FILE: FileCreateDirectoryRetry: Non-retriable error encountered (C:\ProgramData\VMware): Cannot create a file when that file already exists (183)
2016-10-25T09:52:53.809+01:00| vmx| I125: FILE: FileCreateDirectoryRetry: Non-retriable error encountered (C:\ProgramData\VMware\VMware Workstation): Cannot cre
@aidygus
aidygus / vagrant_log.txt
Created August 15, 2016 09:36
Vagrant log from failed extra drive creation
INFO global: Vagrant version: 1.8.5
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.8.5\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_="::=::\\"