Skip to content

Instantly share code, notes, and snippets.

View wolfspelz's full-sized avatar
💭
529eafcbe72e5d50c91f018f8e206029fea71f5a969006e079677e603a7837a5

Heiner Wolf wolfspelz

💭
529eafcbe72e5d50c91f018f8e206029fea71f5a969006e079677e603a7837a5
View GitHub Profile
@wolfspelz
wolfspelz / JIRA-Taskboard-Reduce-Size-of-Task-Zettel.txt
Last active December 16, 2019 17:32
JIRA Taskboard: Reduce Size of Task Zettel
// ==UserScript==
// @name JIRA taskboard (seven2one)
// @namespace http://wolfspelz.de/
// @version 0.2
// @description Reduce size of task Zettel
// @author Heiner Wolf
// @match https://servicedesk.seven2one.de/secure/RapidBoard.jspa*
// @grant 2019+, wolfspelz
// ==/UserScript==
// ==UserScript==
// @name visualstudio build
// @namespace http://wolfspelz.de/
// @version 0.1
// @description Color blind bars
// @match https://*.visualstudio.com/DefaultCollection/*/_build/*
// @copyright 2015+, wolfspelz
// ==/UserScript==
function style(css) {
// ==UserScript==
// @name visualstudio taskboard
// @namespace http://wolfspelz.de/
// @version 0.1
// @description Restore white background
// @match https://*.visualstudio.com/DefaultCollection/*/_backlogs/*ask*oard/*
// @copyright 2015+, wolfspelz
// ==/UserScript==
function style(css) {
@wolfspelz
wolfspelz / _tsconfig.json
Last active January 25, 2016 18:45
Compile on Save for Typescript in Visual Studio with Gulp
{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "amd",
"inlineSources": true,
"outFile": "../wwwroot/js/ts/scripts.js"
@wolfspelz
wolfspelz / Picasa Slideshow
Last active January 17, 2016 16:10
Picasa Slideshow
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Google AJAX Feed API - AJAX Slide Show Sample</title>
</head>
<body style="margin:0; padding:0; background-color:#000000">
<iframe style="display:block; position:absolute; top:0; left: 0; width:100%; height:100%; overflow:hidden; border:0;" frameborder="0" src="http://www.gmodules.com/gadgets/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/108621208120033273647/picasa-slideshow.xml&up_FEED=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fbase%2Fuser%2F113350798902117513683%2Falbumid%2F6238884403702106369%3Falt%3Drss%26kind%3Dphoto%26authkey%3DGv1sRgCOLDi_eL_ICB3QE%26hl%3Den_US%26imgmax%3D1600u%26max-results%3D10000&up_PWH=960&up_PHT=580&up_LNK=&up_TIT=Saxå%20Golfklubb&up_DTime=6000&up_TTime=100&up_RND=Yes&up_NAB=Yes&up_CLP=No&up_LCOL=%23000000&up_TCOL=%23000000&up_SCOL=%23000000&up_BCOL=%23000000&up_CCOL=%23000000" allowTransparency=
@wolfspelz
wolfspelz / Notes
Last active January 12, 2016 18:18
https://goo.gl/photos/mMy4wbYgmQogXXbQ7
https://picasaweb.google.com/113350798902117513683/15Texico?authkey=Gv1sRgCOLDi_eL_ICB3QE&feat=directlink#slideshow/6238884406298921106
// ==UserScript==
// @name ZEIT
// @namespace http://wolfspelz.de/
// @version 0.1
// @description Restore white background
// @match http://www.zeit.de/*
// @copyright 2015+, wolfspelz
// ==/UserScript==
function addGlobalStyle(css) {
@wolfspelz
wolfspelz / . C# WebApi: use [Authorize] attribute with HTTP token
Last active August 29, 2015 14:06
Use [Authorize] Attribute with Token
WTF:
===
- AuthorizeAttribute checks roles of HttpContext.User.
- TokenAuthenticationHandler sets IPrincipal of HttpContext.
- Cookie, HTTP header, query are evaluated by TokenAuthenticationHandler.
- TokenAuthenticationHandler fetches IPrincipal from PrincipalFromTokenCallback.
- Accessing /api/Account/LogOn with a token in query, HTTP header (or Cookie) creates a cookie.
Setup
=====