Skip to content

Instantly share code, notes, and snippets.

View WillSams's full-sized avatar
🚀

Will Sams WillSams

🚀
View GitHub Profile
@WillSams
WillSams / vimrc
Last active February 25, 2024 12:06
My Linux Mint Vimrc
"'if filereadable("/etc/vim/vimrc")
" source /etc/vim/vimrc
"endif
filetype off
filetype plugin indent on
runtime! plugin/sensible.vim
if has('mouse')
@WillSams
WillSams / vim-in-gitbash.sh
Last active February 14, 2024 23:11
Setting up Vim in Git Bash
#/bin/sh
# https://www.linuxfordevices.com/tutorials/linux/turn-vim-into-an-ide
echo '" Setting some decent VIM settings for programming
" This source file comes from git-for-windows build-extra repository (git-extra/vimrc)
ru! defaults.vim
if has("syntax")
syntax on
@WillSams
WillSams / config.lua-20231005
Last active October 24, 2023 11:22
My LunarVim Config
-- GODOT CONFIGURATION --------------------------------------------
local dap = require('dap')
dap.adapters.godot = {
type = "server",
host = '127.0.0.1',
port = 6008,
}
dap.configurations.gdscript = {
{
@WillSams
WillSams / openplc_install.sh
Last active September 19, 2023 15:27
Open PLC Install
# Open PLC Install
# Editor and runtime
mkdir temp && cd $_
git clone https://github.com/thiagoralves/OpenPLC_v3.git
cd OpenPLC_v3
sudo bash -c "./install.sh linux"
cd ../..
@WillSams
WillSams / will-unity-editor-layout.wlt
Created September 1, 2023 09:34
My Unity Editor Layout
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
@WillSams
WillSams / openplc_modbus_examples.json
Last active June 21, 2023 10:06
Node Red / OpenPLC / Modbus
[
{
"id": "bf767ff1cdc5fa2f",
"type": "tab",
"label": "Getting Started",
"disabled": false,
"info": "",
"env": []
},
{
#!/bin/bash
# Discussion, issues and change requests at:
# https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 16.x repo onto a
# Debian or Ubuntu system.
#
# Run as root or insert `sudo -E` before `bash`:
#
ARG ARCH=""
FROM ${ARCH}node:16.20.0-alpine3.17
# Install Node.js and Node-RED
RUN apk add --no-cache \
python3 && \
apk add --no-cache --virtual .build-deps \
build-base gcc abuild binutils binutils-doc gcc-doc \
&& npm install -g npm \
@WillSams
WillSams / argocd_github_actions.md
Last active March 15, 2023 13:22
Further Improving the Developer Experience with Argo CD and GitHub Actions

Further Improving the Developer Experience with Argo CD and GitHub Actions

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. With Argo CD, you can define your application deployment as a code, store it in a Git repository and use Argo CD to keep the deployed application in sync with the state specified in the Git repository. Your GitHub repository is the source of truth for your application deployment. Argo CD continuously monitors your Git repository and automatically deploys your application whenever a change is detected. The flow looks like this:

        ---> Merge PR Request ---> Image Tag/Push to Registry     

Developer

        -------------------------> Argo Sync ---> Argo CD ---> Kubernetes Cluster

Prerequisites

@WillSams
WillSams / windows-dev-install.ps1
Last active March 8, 2023 19:20
Windows Dev Install
echo "************************************************************"
echo "* WINDOWS-DEV-INSTALLER SRCIPT *"
echo "* this script should be executed with admin privileges *"
echo "************************************************************"
echo "* STEP 1 - Install Chocolatey ******************************"
mkdir C:\ProgramData\chocoportable
"# Set directory for installation - Chocolatey does not lock