Skip to content

Instantly share code, notes, and snippets.

View Bouhnosaure's full-sized avatar
🎺
Doot Doot !

Alex Bouhnosaure

🎺
Doot Doot !
View GitHub Profile
@andersevenrud
andersevenrud / iframeapi.js
Last active October 9, 2016 18:48
OS.js Iframe Application bi-directional API script
/*!
* OS.js - JavaScript Cloud/Web Desktop Platform
*
* Copyright (c) 2011-2015, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
(function(Application, GUI, Dialogs, Utils, API, VFS) {
'use strict';
/////////////////////////////////////////////////////////////////////////////
// APPLICATION
/////////////////////////////////////////////////////////////////////////////
function ApplicationFooBar(args, metadata) {
Application.apply(this, ['ApplicationFooBar', args, metadata, {
src: 'data/index.html',
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!-- YOUR MARKUP HERE -->
<div>
<button id="Test">Test</button>
</div>
@rolandyoung
rolandyoung / verifyToken.sh
Last active July 8, 2022 11:16
Using openssl to verify a JWT from Keycloak
#!/bin/bash
# tested with OpenSSL 1.0.1e-fips on Centos 6
# Note hardcoded Keycloak URL and credentials.
# Keycloak public key is in ATS-ci.key.pem with -----BEGIN PUBLIC KEY----- (etc)
assert() { if [[ $1 != $2 ]]; then echo "assert" $3; exit; fi }
url=http://192.168.10.221:8088/auth/realms/ATS-ci/protocol/openid-connect/token
resp=$(curl -X POST $url \
#!/bin/bash
PID_FILE=/var/run/mailcatcher.pid
NAME=mailcatcher
PROG="/usr/bin/env mailcatcher"
USER=mailcatcher
GROUP=mailcatcher
start() {
echo -n "Starting MailCatcher"