Skip to content

Instantly share code, notes, and snippets.

@Octogonapus
Octogonapus / Windows Defender Exclusions for Developer.ps1
Created September 11, 2019 15:55 — forked from nerzhulart/Windows Defender Exclusions for Developer.ps1
Adds Windows Defender exclusions for developers (Visual Studio, JetBrains Rider, IntellIJ Idea, Git, MsBuild, dotnet, mono etc.)
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
@Octogonapus
Octogonapus / carlo-demo.kts
Last active May 5, 2019 03:33
A 3dof arm demo
import arrow.core.Either
import arrow.core.right
import com.google.common.collect.ImmutableList
import com.neuronrobotics.bowlercad.cadgenerator.DefaultCadGenerator
import com.neuronrobotics.bowlerkernel.hardware.Script
import com.neuronrobotics.bowlerkernel.kinematics.base.DefaultKinematicBase
import com.neuronrobotics.bowlerkernel.kinematics.base.KinematicBase
import com.neuronrobotics.bowlerkernel.kinematics.base.baseid.SimpleKinematicBaseId
import com.neuronrobotics.bowlerkernel.kinematics.closedloop.JointAngleController
import com.neuronrobotics.bowlerkernel.kinematics.closedloop.NoopBodyController
@Octogonapus
Octogonapus / write-guice-graph-script.kts
Last active March 9, 2019 01:37
Writes a Guice injector graph to a .dot file
import arrow.core.Either
import arrow.core.right
import com.google.common.collect.ImmutableList
import com.neuronrobotics.bowlerbuilder.view.cad.cadengine.util.GuiceGrapher
import com.neuronrobotics.bowlerkernel.hardware.Script
class WriteGuiceGraphScript : Script() {
override fun runScript(args: ImmutableList<Any?>): Either<String, Any?> {
val filename = if (args.size == 1 && args.first() is String)
@Octogonapus
Octogonapus / test_cad_engine.kts
Last active May 4, 2019 15:00
testing using the CadEngine from a kotlin script
/*
* This file is part of BowlerBuilder.
*
* BowlerBuilder is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* BowlerBuilder is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@Octogonapus
Octogonapus / pgympy-test-1
Created January 15, 2019 15:33
A test to generate CPD's and do random variable inference using pgmpy.
Option CPD:
+----------+-----+
| option_0 | 0.3 |
+----------+-----+
| option_1 | 0.7 |
+----------+-----+
Jaywalking CPD:
+--------------+----------+----------+
| option | option_0 | option_1 |
+--------------+----------+----------+
@Octogonapus
Octogonapus / 6DOFHephaestusWorkCell.xml
Created November 28, 2018 18:05 — forked from madhephaestus/6DOFHephaestusWorkCell.xml
6DOFHephaestusWorkCell copy of HephaestusWorkCell
<root>
<mobilebase>
<cadEngine>
<git>https://github.com/madhephaestus/SeriesElasticActuator.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/564eed11f7a448e39ef9964f5485c0a4.git</git>
<file>WalkingDriveEngine.groovy</file>
</driveEngine>
# initialization file (not found)
@Octogonapus
Octogonapus / defaultCreatures.json
Last active March 11, 2018 12:35
BowlerBuilder's Creature files
{
"files": [
{
"pushURL": "https://gist.github.com/74d9cb301ceece7548650c3edf41459a.git",
"fileName": "BB_ARM.xml",
"creatureName": "3DOF Arm"
},
{
"pushURL": "https://gist.github.com/edf8b3648e637d8041264e451c4e3321.git",
"fileName": "NASA_Curiosity_copy.xml",
@Octogonapus
Octogonapus / defaultArm.xml
Last active February 28, 2018 21:13 — forked from madhephaestus/defaultFixed.xml
Default Appendages
<root>
<appendage>
<name>DefaultArm</name>
<cadEngine>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<kinematics>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
@Octogonapus
Octogonapus / BB_ARM_2.xml
Created February 28, 2018 18:00
BB_ARM_2 copy of BB_ARM
<root>
<mobilebase>
<cadEngine>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
<file>WalkingDriveEngine.groovy</file>
</driveEngine>