Skip to content

Instantly share code, notes, and snippets.

View grantcarthew's full-sized avatar
🙂
Coding

Grant Carthew grantcarthew

🙂
Coding
View GitHub Profile
@grantcarthew
grantcarthew / README.md
Last active August 27, 2015 23:50 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync
{
"firstName": "John",
"lastName": "Smith",
"age": 25,
"address":
{
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
@grantcarthew
grantcarthew / Initialize-SPWeb.ps1
Last active December 25, 2015 15:59
Invokes a standard web request against all the sites in SharePoint. http://uglygizmo.blogspot.com.au/
<#
.Synopsis
Invokes a standard web request against all the sites in SharePoint.
.Description
There are some dependencies to run this script as follows;
The account used to run this script will need read access to all
sites for the initialization to fully succeed.
@grantcarthew
grantcarthew / BaseBoxstarter
Last active October 24, 2016 01:41
Base Image Bootstrap Script for Boxstarter.
Update-ExecutionPolicy -Policy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableExpandToOpenFolder -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess
Set-StartScreenOptions -EnableBootToDesktop
Set-TaskbarOptions -Combine Never
Enable-RemoteDesktop
Disable-InternetExplorerESC
Disable-UAC
Disable-BingSearch
Disable-GameBarTips
@grantcarthew
grantcarthew / Projects.md
Last active March 13, 2017 04:56
GitHub Project of Interest

GitHub Projects of Interest

  • streama - It's like Netflix, but self-hosted!
  • redash - Make Your Company Data Driven. Connect to any data source, easily visualize and share your data.
  • eme - ✏️ Elegant Markdown Editor.
  • Emby - Emby Server is a personal media server with apps on just about every device.
  • roll-call - 📞 Free and reliable audio calls for everyone w/ browser p2p.
  • hubzilla - build community websites that can interact with one another.
  • nuclear - An Electron-based, multiplatform music player app that streams from multiple sources.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Mongoose Code Snippets

Targeted Version: 5.1.6

Find Or Create

This will update the document on every call. Not the best option however it is atomic.

Ref: findOneAndUpdate

@grantcarthew
grantcarthew / settings.json
Last active November 29, 2018 03:26
VSCode Settings Backup
{
"workbench.colorTheme": "Solarized Light",
"workbench.editor.closeEmptyGroups": false,
"explorer.openEditors.visible": 0,
"explorer.autoReveal": false,
"editor.tabSize": 2,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
@grantcarthew
grantcarthew / jest.config.js
Last active March 1, 2019 03:48
medium-jest.config.js
// jest.config.js
module.exports = {
clearMocks: true,
globalSetup: '<rootDir>/tests/setup/global-setup.js',
globalTeardown: '<rootDir>/tests/setup/global-teardown.js',
testEnvironment: '<rootDir>/tests/setup/mongo-environment.js'
}