Skip to content

Instantly share code, notes, and snippets.

@eimajtrebor
eimajtrebor / nightscout-on-azure.md
Last active Oct 3, 2022
Running Nightscout on Azure App Service
View nightscout-on-azure.md

Running Nightscout on Azure App Service

These instructions assume the following:

Create an App Service Plan

  • Create a new App Service Plan resource
@eimajtrebor
eimajtrebor / bash-cheatsheet.sh
Created May 17, 2020 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
View bash-cheatsheet.sh
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@eimajtrebor
eimajtrebor / web.config.xml
Last active Aug 17, 2018
React Web.Config for Azure App Service Deployment using Easy Auth
View web.config.xml
<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="React Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@eimajtrebor
eimajtrebor / gitflow-breakdown.md
Created May 30, 2018 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.
View gitflow-breakdown.md

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@eimajtrebor
eimajtrebor / index.js
Created Jun 4, 2017 — forked from itaysk/index.js
Securing Single Page Applications with Azure AD
View index.js
var aadTenant = "yourTenant.onmicrosoft.com",
spaClientId = "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}", //AAD app client id for this app
serviceClientId = "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}", //AAD app client id for the service API app
var serviceUrl = "http://localhost:8081/api/doSomething"; // the service API endpoint
var authContext = new AuthenticationContext({
instance: 'https://login.microsoftonline.com/',
tenant: aadTenant,
clientId: spaClientId,
postLogoutRedirectUri: window.location.origin,
@eimajtrebor
eimajtrebor / darktable-workflow.md
Last active May 19, 2021
My Darktable Workflow
View darktable-workflow.md

My Darktable Workflow

Basic workflow

  • Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
  • Import the film roll into Darktable.
  • Review the images using lighttable mode and remove any images that are beyond repair.
  • Take a snapshot of the image so we can do a before and after comparison.
  • Adjust the white balance.
  • Exposure compensation and recovery.