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
Set-ExecutionPolicy Bypass -Scope Process -Force | |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |
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
# Purpose: | |
# Manually create the appspace service principal and grant appropriate oauth2 permissions without giving the appspace | |
# functional app any Admin privileges like application administrator. All the commands below are run by a global admin or at least | |
# someone with the proper azure and Graph API permissions. | |
# Perfect for environments where granting anyone admin privileges even temporarily is not tolerated. | |
# Modules required | |
# install-module azure-ad | |
# install-module microsoft.graph.authentication |
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 { customNsTestBedAfterEach, customNsTestBedBeforeEach } from './setup'; | |
import { Injectable } from '@angular/core'; | |
import { TestBed } from '@angular/core/testing'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class TestService { | |
hello(): string { |
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
module.exports = function (config) { | |
const options = { | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
// frameworks to use | |
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | |
frameworks: [ 'jasmine' ], |
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 { Component } from '@angular/core'; | |
import { TestBed } from '@angular/core/testing'; | |
import { customNsTestBedAfterEach, customNsTestBedBeforeEach } from './setup'; | |
@Component({ | |
selector: 'test-comp', | |
template: '' // template is blank, because code does not have NO_ERRORS_SCHEMA and also we don't care. only testing functions in component | |
}) | |
class TestComponent{ | |
hello(): string { return 'hello'; } |
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
/* eslint-disable @typescript-eslint/restrict-template-expressions */ | |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ | |
/* eslint-disable @typescript-eslint/no-unsafe-call */ | |
/* eslint-disable @typescript-eslint/no-unsafe-return */ | |
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ | |
/* eslint-disable no-console */ | |
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ | |
/* PATH /src/tests/setup.ts */ |
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
{ | |
"name": "Test App", | |
"main": "main.js", | |
"displayName": "Navigation Drawer", | |
"templateType": "App template", | |
"version": "7.0.6", | |
"description": "NativeScript Application", | |
"author": "NativeScript Team <[email protected]>", | |
"license": "SEE LICENSE IN <your-license-filename>", | |
"publishConfig": { |
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
--- | |
- hosts: mylist | |
gather_facts: no | |
pre_tasks: | |
- name: get file name | |
set_fact: | |
fake_vault_file: "{{ inventory_hostname}}.txt" | |
- name: get host specific creds from "fake" password vault | |
set_fact: | |
creds: "{{ lookup('file', fake_vault_file) | from_yaml }}" |
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
tower_package_name: 'ansible-tower' | |
tower_package_version: '3.2.1' | |
tower_package_release: '1' | |
# BEGIN ANSIBLE MANAGED BLOCK | |
admin_password: "tower" | |
pg_host: "postgres1" | |
pg_port: '5432' |
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
INFO global: Vagrant version: 2.0.0 | |
INFO global: Ruby version: 2.3.4 | |
INFO global: RubyGems version: 2.5.2.1 | |
INFO global: VAGRANT_OLD_ENV_NVM_IOJS_ORG_MIRROR="https://iojs.org/dist" | |
INFO global: VAGRANT_OLD_ENV_GTK_IM_MODULE="ibus" | |
INFO global: VAGRANT_OLD_ENV_JAVA_HOME="/usr/lib/jvm/java-8-oracle" | |
INFO global: VAGRANT_OLD_ENV__system_version="16.04" | |
INFO global: VAGRANT_OLD_ENV_RUBY_VERSION="ruby-2.3.3" | |
INFO global: VAGRANT_OLD_ENV_CLUTTER_IM_MODULE="xim" | |
INFO global: VAGRANT_OLD_ENV_XDG_MENU_PREFIX="gnome-" |
NewerOlder