This file contains hidden or 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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains hidden or 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
'use strict'; | |
var userRolesInNewApp = [ | |
{displayName: 'tester', value: 't'}, | |
{displayName: 'hacker', value: 'h'}, | |
{displayName: 'manager', value: 'm'} | |
]; | |
var object = { | |
appRoles: [ |
This file contains hidden or 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
Node.js testing: | |
1. Use the package lab (also code and sinon). | |
npm install lab --save-dev | |
npm install code --save-dev // assertion library | |
npm install sinon --save-dev | |
2. Add the following test script to your package.json |
This file contains hidden or 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
/** | |
* Author: Michael Weibel <[email protected]> | |
* License: MIT | |
*/ | |
var passport = require('passport') | |
, StrategyMock = require('./strategy-mock'); | |
module.exports = function(app, options) { | |
// create your verify function on your own -- should do similar things as |
This file contains hidden or 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
As a workaround, edited file /usr/share/applications/code.desktop | |
Replacing | |
Exec=/usr/share/code/code --unity-launch %U | |
with | |
Exec=/usr/share/code/code --disable-gpu --unity-launch %U |
This file contains hidden or 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
# To build: docker build --force-rm=true -t scimgateway-data:latest . | |
# To run: docker run -d --name scimgateway-data -t scimgateway-data:latest | |
FROM busybox:latest | |
MAINTAINER Jeffrey Gilbert | |
RUN mkdir -p /home/scimgateway/config | |
VOLUME /home/scimgateway/config | |
CMD ["echo", "Data container for scimgateway created and will now shutdown. No need to run again."] |
This file contains hidden or 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
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>AAD JWT decode and validation utilities</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" crossorigin="anonymous"></script> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.4.1/css/foundation.min.css" crossorigin="anonymous" /> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.4.1/js/foundation.min.js" crossorigin="anonymous"></script> |
This file contains hidden or 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
Edit /etc/rsyslog.conf | |
sudo vim /etc/rsyslog.conf | |
Uncomment as needed: | |
# provides UDP syslog reception | |
#module(load="imudp") <== Uncomment | |
#input(type="imudp" port="514") <== Uncomment |
This file contains hidden or 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 node | |
'use stict'; | |
const fetch = require('node-fetch'); | |
const urls = ['http://jsonplaceholder.typicode.com/posts/1', | |
'http://jsonplaceholder.typicode.com/posts/2', | |
'http://jsonplaceholder.typicode.com/posts/3', | |
'http://jsonplaceholder.typicode.com/posts/a', | |
'http://jsonplaceholder.typicode.com/posts/5' |
This file contains hidden or 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
npm install handlebars form-data node-fetch | |
s="'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
const handlebars = require('handlebars'); | |
const source = process.env.source || '.'; | |
const target = process.env.target || '.'; | |
const tokens = { |