Skip to content

Instantly share code, notes, and snippets.

Stefan Schlesinger sts

Block or report user

Report or block sts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d71b31683902583660af0119ee0f8f1b
### Keybase proof
I hereby claim:
* I am sts on github.
* I am sschlesi (https://keybase.io/sschlesi) on keybase.
* I have a public key ASAV9NSsFHu01baGfgmWptTbljOwbe3XnM8Ixui27GnkYAo
To claim this, I am signing this object:
@sts
sts / openidc_otp_validation.sh
Last active Jun 21, 2019
Keycloak OTP Validation API
View openidc_otp_validation.sh
BASE_URL=https://localhost:8081/auth
CLIENT_ID=curl-test
CLIENT_SECRET=
USERNAME=
PASSWORD=
REALM=validation-test
OTP_CODE=027253
# OpenID Access Token via "Resource Owner Password Credentials Grant"
@sts
sts / usr_bin_app
Created Dec 13, 2016
Deploy Ruby CLI with Bundler
View usr_bin_app
#!/usr/bin/env bash
set -e
export BUNDLE_GEMFILE=/usr/share/app/Gemfile
export BUNDLE_PATH=/usr/share/app/vendor
unset BUNDLE_IGNORE_CONFIG
#Test: bundle install --verbose --deployment
exec /usr/bin/ruby -rbundler/setup /usr/share/app/bin/app.rb $@
View gist:fc11968ff96aacf44a4f249b70d3ab24
distribution=$distribution
export REPOS=$distribution
export DIST=$distribution
export USE_FREIGHT=true
export FREIGHT_BASE=/srv/freight
export FREIGHT_REPOSITORY=managed
export KEY_ID=DEADBEEF # please adjust, or edit /etc/freight.conf
/usr/bin/build-and-provide-package
# Creates:
@sts
sts / hp-health.init
Created Nov 3, 2016
hp-health init script
View hp-health.init
#!/bin/bash
#
# © Copyright 2015 Hewlett Packard Enterprise Development LP.
#
# See "man chkconfig" for information on next two lines (Red Hat only)
# chkconfig: 2345 91 2
# description: hp System Health Monitor and Command line Utility Package.
#
#
# Following lines are in conformance with LSB 1.2 spec
View app_routes_album.js
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
View app_routesalbum.js
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
View app_routesalbum.js
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
View app_routesalbum.js
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
View app_routesalbum.js
import Ember from 'ember';
import Ember from 'ember';
export default Ember.Route.extend({
isEditing: true,
model(params) {
return this.get('store').findRecord('album', params.album_id);
},
You can’t perform that action at this time.