Skip to content

Instantly share code, notes, and snippets.

View sebgod's full-sized avatar

Sebastian Godelet sebgod

View GitHub Profile
@dbafromthecold
dbafromthecold / delete_aci-virtualnetwork.azcli
Created October 6, 2018 13:50
delete_aci-virtualnetwork
# https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet
# log into Azure
az login
# Set variables for resource group, virtual network, and subnet
RES_GROUP=containers1
VNET=vnet1
@jbtule
jbtule / AESGCM.cs
Last active October 30, 2023 21:14
I have two code examples that I wrote for best practices encrypting a string in c#. They are both using authenticated encryption. http://stackoverflow.com/a/10366194/637783
/*
* This work (Modern Encryption of a String C#, by James Tuley),
* identified by James Tuley, is free of known copyright restrictions.
* https://gist.github.com/4336842
* http://creativecommons.org/publicdomain/mark/1.0/
*/
using System;
using System.IO;
using System.Text;
@wadewegner
wadewegner / addselftosqlsysadmin.cmd
Created January 25, 2012 18:35
Script to add the current user to the sysadmin role in SQL Server
@echo off
rem
rem ****************************************************************************
rem
rem Copyright (c) Microsoft Corporation. All rights reserved.
rem This code is licensed under the Microsoft Public License.
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.