Skip to content

Instantly share code, notes, and snippets.

View twaldecker's full-sized avatar

Thomas Waldecker twaldecker

  • Starnberg, Germany
View GitHub Profile
@twaldecker
twaldecker / TokenValidator.cs
Last active August 5, 2020 19:58 — forked from anonymous/TokenValidator.cs
Validate JSON Web Token (JWT) With .NET JWT Library
using Microsoft.IdentityModel.Tokens;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Net.Http;
using System.Security.Claims;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
@twaldecker
twaldecker / sendRawEth.c
Created September 22, 2012 08:13 — forked from austinmarton/sendRawEth.c
Send a raw Ethernet frame in Linux
/*
* Added the command line arguments for interface and MAC Address
*
* Based on raw Ethernet from austinmarton: https://gist.github.com/1922600
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/