Skip to content

Instantly share code, notes, and snippets.

Jason Farrell xximjasonxx

View GitHub Profile
@xximjasonxx
xximjasonxx / main.tf
Created Mar 26, 2019
Complete TF file
View main.tf
provider "azurerm" {
version = "=1.22.0"
}
terraform {
backend "azurerm" {
resource_group_name = "ListApp-General"
storage_account_name = "listapptfstatestorage"
container_name = "tfstate"
key = "listapp-feedservice"
@xximjasonxx
xximjasonxx / main.tf
Created Mar 26, 2019
Portion of Terraform file that dictates provider and backend storage of state
View main.tf
provider "azurerm" {
version = "=1.22.0"
}
terraform {
backend "azurerm" {
resource_group_name = "ListApp-General"
storage_account_name = "listapptfstatestorage"
container_name = "tfstate"
key = "listapp-feedservice"
View edi.json
[{"WorkOrderLineItems":[],"Record":{"attributes":{"type":"WorkOrder","url":"/services/data/v45.0/sobjects/WorkOrder/0WO3D00000015cvWAA"},"Id":"0WO3D00000015cvWAA","OwnerId":"00G3D000000rqtVUAQ","IsDeleted":false,"WorkOrderNumber":"WO-4698","RecordTypeId":"0123D000000N4laQAC","CreatedDate":"2018-11-06T21:51:53.000+0000","CreatedById":"0051W000004sGPGQA2","LastModifiedDate":"2019-01-28T19:31:25.000+0000","LastModifiedById":"0053D000000wQuXQAU","SystemModstamp":"2019-01-28T19:31:25.000+0000","Address":null,"RootWorkOrderId":"0WO3D00000015cvWAA","Status":"Received","Priority":"Low","Subtotal":0.00,"TotalPrice":0.00,"LineItemCount":6,"Discount":0.00,"GrandTotal":0.00,"IsClosed":false,"DurationType":"Hours","ServiceAppointmentCount":0,"StatusCategory":"New","IsGeneratedFromMaintenancePlan":false,"FSL__IsFillInCandidate__c":true,"FSL__Prevent_Geocoding_For_Chatter_Actions__c":false,"FSL__Scheduling_Priority__c":4,"Market__c":"0Hh3D00000000zrSAA","WorkOrderNumberExternalID__c":"WO-4698","PickupClientLocationName__c":
@xximjasonxx
xximjasonxx / main.tf
Created Feb 24, 2019
Terraform - Project01 - Azure App Service Def
View main.tf
resource "azurerm_app_service" "test" {
name = "test-service123456789"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
app_service_plan_id = "${azurerm_app_service_plan.test.id}"
app_settings {
WEBSITES_ENABLE_APP_SERVICE_STORAFE = false
DOCKER_REGISTRY_SERVER_URL = "${data.azurerm_container_registry.test.login_server}"
DOCKER_REGISTRY_SERVER_USERNAME = "${data.azurerm_container_registry.test.admin_username}"
@xximjasonxx
xximjasonxx / development.yaml
Created Dec 23, 2018
Sample Deployment YAML
View development.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: feed-api-deployment
labels:
app: giftlist-feedapi
spec:
replicas: 2
selector:
matchLabels:
View CartesianView.cs
public ObservableCollection<TemperatureReading> ChartDataSource
{
get { return _datasource; }
set
{
if (value != null)
{
if (value.Count == 0)
{
_datasource = value;
@xximjasonxx
xximjasonxx / 0_reuse_code.js
Created Jan 28, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:b54a220d3665cb84e1c4
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.good.gd"
android:versionCode="1"
android:versionName="1.0">
<!-- GD SDK supports a minimum of Android API level 14 -->
<uses-sdk android:minSdkVersion="14"/>
<uses-permission android:name="android.permission.INTERNET"/>
View gist:83e568c6757b4a25696f
var Q = require("q");
exports.get = function(request, response) {
var userId = request.user.userId;
var weekOf = request.query.weekForDate;
// make a query to get the total points for the user for the week
var weekDataPromise = getWeekFor(weekOf);
weekDataPromise.then(function(result) {
View gist:d5a8f36f9631e8ff0141
<?xml version="1.0" encoding="utf-8"?>
<!-- File created by the Android Action Bar Style Generator
Copyright (C) 2011 The Android Open Source Project
Copyright (C) 2012 readyState Software Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
You can’t perform that action at this time.