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 / server.ts
Created September 11, 2016 11:08
RateKeeper created & started
import { RateKeeperServer } from './RateKeeperServer';
let grpcServer: RateKeeperServer = new RateKeeperServer();
grpcServer.start();
@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');

Keybase proof

I hereby claim:

  • I am andrewconnell on github.
  • I am andrewconnell (https://keybase.io/andrewconnell) on keybase.
  • I have a public key ASAlriAsYajy03CnnWK6uHxrsJ0Ly246_UxCvDV2OqE2hQo

To claim this, I am signing this object:

@andrewconnell
andrewconnell / drip-blogpost-autotagger.html
Created February 24, 2017 13:31
Drip script snippet used to auto tag visitors
<!-- drip auto-tagger -->
<!--
this script does four things:
1) finds all tags for a blog post & converts to tags in the format: interest-[pascalCasePostTag]
2) converts blog post title to drip tag in the format: read-[pascalCaseBlogPostTitle]
3) sends the tags to drip for the current user
4) registers "Read blog post" drip event on current user
-->
<p>
<script type="text/javascript">
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "apollo"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [

check the version of node you're running

$ node -v

you want to see the results of v6.. or higher...

if not, install the latest LTS / Current version from https://nodejs.org

@andrewconnell
andrewconnell / openssl.conf
Last active February 22, 2025 22:14
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 / docker-compose.yml
Created May 23, 2017 09:36
201705-techorama-office-addins
version: '2'
services:
minicrm-addin-ng:
build: ./minicrm-addin-ng
image: andrewconnell/minicrm-addin-ng:latest
ports:
- "4200:4200"
minicrm-api:
build: ./minicrm-api
image: andrewconnell/minicrm-api:latest
@andrewconnell
andrewconnell / nasa-apollo-missions.json
Created August 17, 2017 16:20
JSON array of NASA Apollo missions
[
{
"id": "AS-201",
"name": "",
"launch_date": "02/26/1966",
"end_date": "",
"image": "as-201.png",
"wiki_href": "https://en.wikipedia.org/wiki/AS-201",
"summary": "First flight of Saturn IB and Block I CSM; suborbital to Atlantic Ocean; qualified heat shield to orbital reentry speed",
"crew": []
@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