Skip to content

Instantly share code, notes, and snippets.

View mikecole's full-sized avatar

Mike Cole mikecole

View GitHub Profile
@mikecole
mikecole / Update-AUPacakges.md
Last active May 21, 2024 17:06
Update-AUPackages Report #powershell #chocolatey
@mikecole
mikecole / gist:e09de696766e6a3e16cc0017d0136936
Last active October 5, 2021 19:24
Upload a file to Azure Blob Stage
public async Task CreateBlobAsync(string connectionString, string containerName, string blobName, string content, string contentType = null)
{
var container = new BlobContainerClient(connectionString, containerName);
await container.CreateIfNotExistsAsync();
var blob = container.GetBlobClient(blobName);
await blob.DeleteIfExistsAsync();
using var stream = new MemoryStream(Encoding.Default.GetBytes(content), false);
@mikecole
mikecole / gist:3b4c81222f0312ee1868848d64e85ccc
Created August 25, 2016 16:12
Chocolatey Community Package Maintainers Update - August 2016
Chocolatey Community Package Maintainers Update - August 2016
Welcome to the inaugural email update for Chocolatey community package maintainers. We need a way to provide important information to the community maintainers, so we created this list. If you are no longer maintaining packages on Chocolatey.org, simply unsubscribe from future emails at the bottom of this list. Also, you can respond directly to the email if you have questions or concerns.
Checksums Required For All Future Package Approvals
tl;dr - Moving forward packages will not be approved without checksums if they download remote resources (exact date to be determined). This includes trusted packages.
In July 2014 Chocolatey added the ability for package maintainers to provide checksums for downloads. Over the last two years many of you have added checksums to your packages to provide an additional layer of protection for the community, thank you so much for that! We've been planning a move to requiring checksums and were hoping for a gradual
@mikecole
mikecole / Context.tt
Created November 15, 2013 22:43
Context T4 template used by Reverse Engineer Code First - After
<#@ template hostspecific="true" language="C#" #>
<#@ include file="EF.Utility.CS.ttinclude" #><#@
output extension=".cs" #><#
var efHost = (EfTextTemplateHost)Host;
var code = new CodeGenerationTools(this);
#>
using System.Data.Entity;
using <#= code.EscapeNamespace(efHost.MappingNamespace) #>;
@mikecole
mikecole / webpack.common.js
Created February 12, 2019 21:10
webpack setup
const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = {
entry: {
login: './Scripts/apps/login.jsx',
'mass-update': './Scripts/apps/mass-update/app.jsx',
},
module: {
rules: [
@mikecole
mikecole / package.json
Created February 12, 2019 20:59
npm script
{
"name": "the-project",
"version": "1.0.0",
"private": true,
"dependencies": {
"axios": "^0.18.0",
"babel-polyfill": "^6.26.0",
"evergreen-ui": "^4.6.0",
"react": "^16.4.1",
"react-bootstrap": "^0.32.4",
@mikecole
mikecole / style.css
Created July 20, 2018 21:04
Style to fix Vuetify data-table header icon spinning
...
<v-icon class='no-rotate' small>filter_list</v-icon>
...
.v-datatable thead th.column.sortable.active.desc .no-rotate {
transform: none !important;
}
@mikecole
mikecole / Mapping.tt
Created November 15, 2013 22:50
Reverse Engineer Code First Mapping template
<#
// Simplifying assumptions based on reverse engineer rules
// - No complex types
// - One entity container
// - No inheritance
// - Always have two navigation properties
// - All associations expose FKs (except many:many)
#>
<#@ template hostspecific="true" language="C#" #>
<#@ include file="EF.Utility.CS.ttinclude" #><#@
jekyll serve --watch
bundle install