Skip to content

Instantly share code, notes, and snippets.

View aaronsb's full-sized avatar

Aaron Bockelie aaronsb

  • Wichita, KS
View GitHub Profile
@aaronsb
aaronsb / readme.md
Last active April 5, 2024 12:04
Rhino3D 7 on Linux

Install Rhino 7 on Ubuntu based OS (KDE on Jammy in this case)

This assumes a non existant wine prefix or even a wine installation. If you have an existing wine prefix there may be things that interfere with this guide.

  • Start by installing wine and some required adjacent libraries.

sudo apt install wine wine32 winetricks mono-complete winbind

  • Initialize your default Wine environment (which will be located under ~/.wine
@aaronsb
aaronsb / Configure-RasPhoneDNSConfig.ps1
Created October 28, 2021 18:41
Simple configuration file editor for parameter = value config file.
function Configure-RasPhoneDNSConfig {
[CmdletBinding()] #we want to use verbose, so add cmdlet binding
param ([string]$path = (Get-Location).path,
[string]$vpnConfigName = "rasphone.pbk",
[string]$configParam = "IpDnsFlags",
[string]$configValue = "1")
#path defaults to current path or another path location.
#vpnconfigname is the name of the file to configure, defaults to rasphone.pbk
#configparam is the parameter we're updating. override it to look for another file name
#configvalue is defaulting to 1
#import some stuff
@("psreadline","posh-git","oh-my-posh","JiraPS","ConfluencePS","Microsoft.PowerShell.ConsoleGuiTools") | %{Import-Module $_}
# Shows navigable menu of all options when hitting Tab
#Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# Autocompletion for arrow keys
#Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
#Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
@aaronsb
aaronsb / hostseditor.ps1
Last active July 7, 2020 18:58
Hosts management tool for linux and windows
<#
Hosts file editor: 🄯2020 Aaron Bockelie
Host Editor works on linux and windows, since my default environment is pscore on linux.
The fastest way to use this is copy-pasta the script into a ps1 file and dot source it in your session.
Get-HostEntries: Lists the host entries as objects
Remove-HostEntry: Removes a host entry by hostname or line number (use Get-HostEntries to get the line numbers)
Add-HostEntry: Appends a host entry to hosts
Notes:
@aaronsb
aaronsb / ASRock_Z390m.conf
Created June 30, 2020 03:12
lm-sensors configuration file for an ASRock Z390M-ITX/ac
# Board: ASRock Z390M-ITX/ac
# Processor: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (6/158/10)
# Board has connectors for buzzer and 3 fans (2 case + 1 CPU)
# board does not have a connector for intrusion detection
# dmesg: "nct6775: Found NCT6793D or compatible chip at 0x2e:0x290"
chip "nct6793-*"
# Cross referenced with ASRock A-Tuning Application
# Install in Windows and see /Program Files (x86)/ASRock Utility/A-Tuning/Conf/Z390MITX.xml
@aaronsb
aaronsb / profile.ps1
Created June 12, 2020 21:22
powershell profile
# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
@aaronsb
aaronsb / powershell-ubuntu-2004.txt
Last active September 21, 2020 17:26
powershell on ubuntu 20.04
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt install liblttng-ust0
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu60_60.2-3ubuntu3.1_amd64.deb
sudo dpkg -i libicu60_60.2-3ubuntu3.1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.4_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.4_amd64.deb
sudo apt-get install -y powershell
@aaronsb
aaronsb / ve-venus-gui.txt
Last active May 12, 2020 00:22
Victron Energy Venus GUI notes
Hey everyone, I've moved this to a more formal markdown file under the venus support
https://github.com/aaronsb/victronvenussupport/blob/master/venus_rpi_enablement.md