Skip to content

Instantly share code, notes, and snippets.

View mikecole's full-sized avatar

Mike Cole mikecole

View GitHub Profile
@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 / 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;
}
jekyll serve --watch
bundle install
gem install bundler
ruby --version
@mikecole
mikecole / gist:f084f86a2afe834e27022f500a4942d7
Last active February 4, 2018 22:47
Install Ruby on Bash On Windows
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io -o rvm.sh
cat rvm.sh | bash -s stable
source ~/.rvm/scripts/rvm
rvm install ruby --default
@mikecole
mikecole / Update-AUPacakges.md
Last active April 26, 2024 18:06
Update-AUPackages Report #powershell #chocolatey