This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
repos=(repository1 repository2) | |
githubName="joshghent" | |
for repo in "${!repos[@]}" | |
do | |
reponame=${repos[repo]} | |
git clone [email protected]:${githubName}/${reponame}.git | |
cd ${reponame} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Run the following | |
$ python3 empty.py | |
You need to install boto3 before by running `pip install boto3 --user` | |
""" | |
from __future__ import print_function | |
import argparse |
I hereby claim:
- I am joshghent on github.
- I am joshghent (https://keybase.io/joshghent) on keybase.
- I have a public key whose fingerprint is 0176 A8D5 896D F7FC CEDD 22B2 F8F3 7646 1CCA 4B50
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
description: "The SMS API is designed for integration partners to be able to send SMS messages and perform other actions related to SMS through the CloudCall platform" | |
version: "1.0.0" | |
title: "SMS API" | |
contact: | |
email: "[email protected]" | |
servers: | |
- url: https://ng-api.{platform}.cloudcall.com/v3/sms | |
variables: |
◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️◻️:white_medium_sq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Client } from "node-statsd-client"; | |
import { IGraphiteController } from "../interfaces"; | |
const PREFIX = "MY-API-NAME"; | |
export default class GraphiteController implements IGraphiteController { | |
private _client: any; | |
// the graphite port will always be this for every environment | |
private _port: number = 8125; | |
private static _instance: GraphiteController; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Router } from "express"; | |
import { Config } from "./configuration"; | |
// Import or require the graphite controller and activity labels | |
import { GraphiteController, GraphiteLabel } from "../graphite"; | |
const router = Router() as Router; | |
// Load your config | |
const config = Config.getConfig(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Client } from "node-statsd-client"; | |
import { IGraphiteController } from "../interfaces"; | |
const PREFIX = "MY-API-NAME"; | |
export default class GraphiteController implements IGraphiteController { | |
private _client: any; | |
// the graphite port will always be this for every environment | |
private _port: number = 8125; | |
private static _instance: GraphiteController; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$string = "floccinaucinihilipilification"; | |
// First split the string to an array and then get the unique characters so we don't double count | |
$characters = array_unique(str_split($string)); | |
$count = []; | |
// Iterate through the characters list and create an associative array of the characters and their count | |
foreach($characters as $char) { | |
$count[$char] = substr_count($string, $char); |