Skip to content

Instantly share code, notes, and snippets.

@ebell451
ebell451 / installdew.ps1
Last active October 26, 2023 16:39
Install Docker Engine on Windows
<#
==================================================================================================================
Script to Install Docker Engine on Windows
==================================================================================================================
Created: 05/19/2023
Author: Ethan Bell
GitHub: ebell451
==================================================================================================================
Purpose: This script will either install or update Docker Engine on a Windows machine.
The folder you specify to download the artifacts must already exist.

Install Zsh and Oh-my-zsh on Rocky Linux

Based on this article

ALL INSTALLATIONS ASSUME YES WHEN PROMPTED, that's what -y does

This script can be copy paste to ssh as is. No hands installation. :-)

yum install zsh -y
@ebell451
ebell451 / SP_SearchTables.sql
Last active May 19, 2023 18:15 — forked from chrispret/SP_SearchTables.sql
Search SQL Tables for text with filters for tables, columns, and schema
-- Originally found here: https://gallery.technet.microsoft.com/scriptcenter/c0c57332-8624-48c0-b4c3-5b31fe641c58
-- Modified to include column filter
IF OBJECT_ID('SP_SearchTables','P') IS NOT NULL
DROP PROCEDURE SP_SearchTables
GO
CREATE PROCEDURE SP_SearchTables
@Tablenames VARCHAR(500)
,@Columnnames VARCHAR(500)
,@IgnoreColumnForTextSearch Bit = 0
,@SearchStr NVARCHAR(500) = '%9000%'

Keybase proof

I hereby claim:

  • I am ebell451 on github.
  • I am ebell451 (https://keybase.io/ebell451) on keybase.
  • I have a public key ASCHiESbTfUwWrzgEOl_mHeXepCGmj9TE8Ig256F6Cdjpwo

To claim this, I am signing this object:

@ebell451
ebell451 / killDocker.md
Created October 27, 2022 03:50 — forked from nicolaskopp/killDocker.md
How to delete `C:\ProgramData\Docker` and fixing "Access denied" errors

Still an issue in May 2021. Welcome to the future of web development. Take this Gist to rest and calm down.

Here is how to delete C:\ProgramData\Docker.

  1. Uninstall docker the normal way (yeah you may have already done that)
  2. Copy this:
    # Leave swarm mode (this will automatically stop and remove services and overlay networks)
 docker swarm leave --force