Skip to content

Instantly share code, notes, and snippets.

View andrewconnell's full-sized avatar
📺
Building courses for @Voitanos

Andrew Connell andrewconnell

📺
Building courses for @Voitanos
View GitHub Profile
@andrewconnell
andrewconnell / git-commit-message-emoji.md
Created August 21, 2017 13:48
Emoji's I use for commit messages

Suggested Emojis

Emoji Raw Emoji Code Description
🎨 :art: when refactoring format/structure of the code
📝 :pencil: when performing minor changes/fixing the code or language
🐎 :racehorse: when improving performance
📚 :books: when writing docs
@andrewconnell
andrewconnell / openssl.conf
Last active March 8, 2024 07:29
OpenSSL configuration file that uses Alternate Names & Subject Alternate Names
[ req ]
default_bits = 2048
default_keyfile = server-key.pem
distinguished_name = subject
req_extensions = req_ext
x509_extensions = x509_ext
string_mask = utf8only
# The Subject DN can be formed using X501 or RFC 4514 (see RFC 4519 for a description).
# Its sort of a mashup. For example, RFC 4514 does not provide emailAddress.
@andrewconnell
andrewconnell / teams-manifest.json
Created April 24, 2019 20:28
Microsoft Teams Manifest file
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.2/MicrosoftTeams.schema.json",
"manifestVersion": "1.2",
"packageName": "{{SPFX_COMPONENT_ALIAS}}",
"id": "aa3fecf0-1fd0-4751-aba1-12314dc3a22f",
"version": "0.1",
"developer": {
"name": "Parker Porcupine",
"websiteUrl": "https://products.office.com/en-us/sharepoint/collaboration",
"privacyUrl": "https://privacy.microsoft.com/en-us/privacystatement",
@andrewconnell
andrewconnell / SpRestBatchRequestCreate
Last active April 5, 2023 00:58
Sample SharePoint Online REST Batch Request Creating Items & Querying List
POST https://aconn-fe6c88f31b8e0b.sharepoint.com/sites/dev/SpRestBatchSample/_api/$batch HTTP/1.1
Host: aconn-fe6c88f31b8e0b.sharepoint.com
Connection: keep-alive
Content-Length: 1903
Accept: */*
Origin: https://aconn-fe6c88f31b8e0b.sharepoint.com
X-Requested-With: XMLHttpRequest
X-RequestDigest: 0x3F168AD947C57DCB851D5EFF0F7A9D8CFBB1DF3D1F574BC7D0AF2C7E38DF5AF28C9F311B1ADB8447D965F037657B4DF572C1F9DD139D9E6AE3A565B659134FA5,30 Nov 2014 12:55:26 -0000
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36
Content-Type: multipart/mixed; boundary="batch_45473b4e-5ce5-409d-dd5a-3d60082df906"
@andrewconnell
andrewconnell / jest.config_spfx-1.14_ts-3.9.json
Last active July 5, 2022 18:53
Jest configuration (with code coverage) - SEE COMMENT IN FRIST LINE FOR IMPORTANT VERSION DETAILS
// for SPFx <= v1.14 projects & TypeScript <= v3.9
{
"collectCoverage": true,
"coverageDirectory": "<rootDir>/../temp/test",
"coverageReporters": [
"json",
"lcov",
"text-summary"
],
"coverageThreshold": {
@andrewconnell
andrewconnell / SharePoint 2013 SPA UX Template - Header
Created February 18, 2014 10:56
HTML template of the header for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
<div id="s4-titlerow" class="ms-dialogHidden" style="display:block;">
<div id="titleAreaBox" class="ms-noList ms-table ms-core-tableNoSpace">
<div id="titleAreaRow" class="ms-tableRow">
<div id="siteIcon" class="ms-tableCell ms-verticalAlignTop" style="width:180px;">
app logo goes here
</div>
<div class="ms-breadcrumb-box ms-tableCell ms-verticalAlignTop">
<div class="ms-breadcrumb-top">
<div class="ms-breadcrumb-dropdownBox" style="display:none;">
<span id="DeltaBreadcrumbDropdown"></span>
@andrewconnell
andrewconnell / office-ui-fabric-dropdown.html
Last active March 2, 2021 12:21
Office UI Fabric - Sample Dropdown List
<link rel="stylesheet" href="/public/fabric/css/fabric.min.css">
<link rel="stylesheet" href="/public/fabric/css/fabric.components.min.css">
<script src="/public/fabric/components/Dropdown/Jquery.Dropdown.js" type="application/javascript"></script>
<label class="ms-Label">Position</label>
<div class="ms-Dropdown">
<i class="ms-Dropdown-caretDown ms-Icon ms-Icon--caretDown"></i>
<select class="ms-Dropdown-select" data-ng-model="vm.pick.position">
<option value="">Choose a position...</option>
<option value="QB">quarterback</option>
@andrewconnell
andrewconnell / client.ts
Created September 11, 2016 11:09
Creating client to talk to the gRPC server RateKeeper
import * as path from 'path';
let grpc: any = require('grpc');
import {
IPublicCloudMeter, IProtobufTimestamp, IRateKeeperClient, IRateKeeperGetMeterResponse
} from 'voyager-shared';
class RateKeeperClient {
public static createGrpcClient(host: string, port: number): IRateKeeperClient {
let protoPath: string = path.join('[relative-path-to]/ratekeeper.proto');
{{ $s := newScratch }}
{{/* ARCHIVE */}}
{{ $s.Set "archive" slice }}
{{ $s.Set "years" slice }}
{{ range sort (index .Site.Taxonomies "blog/archive") "Page.Title" "desc" }}
{{ $splitted_date := split .Page.Title "/" }}
{{ $year := index $splitted_date 0 }}
{{ $month := index $splitted_date 1 }}
Error in user YAML: (<unknown>): did not find expected node content while parsing a block node at line 1 column 1
---
...
changelog:
  - timestamp: 2007-05-24T18:43:03-04:00
    description: 'This event has been cancelled because the speaker (me) is not available due to illness. We''ve rescheduled the session for our June meeting. See the [JOG website](http://www.jacksonvilleofficegeeks.net) for more information.'
---