Skip to content

Instantly share code, notes, and snippets.

View jholt456's full-sized avatar

Joshua Holt jholt456

  • WellDatabase
  • Houston, TX
View GitHub Profile
@jholt456
jholt456 / cleanup.sh
Last active January 21, 2021 20:51 — forked from superseb/cleanup.sh
Cleanup host added as custom to Rancher 2.0
#!/bin/bash
user=$EUID
if [ "${user}" != "0" ]; then
echo
echo "$0 must be run as root - you are running as $EUID"
echo
exit 1
fi
echo
echo "About to destroy Rancher 2.x install"
@jholt456
jholt456 / SqlDbType2DbType.cs
Created January 28, 2019 03:57 — forked from tecmaverick/SqlDbType2DbType.cs
Convert .Net Type to SqlDbType or DbType and vise versa
//Convert .Net Type to SqlDbType or DbType and vise versa
//This class can be useful when you make conversion between types .The class supports conversion between .Net Type , SqlDbType and DbType .
using System;
using System.Collections;
using System.Data;
namespace Devintelligence.Common.Data
{
/// <summary>