Skip to content

Instantly share code, notes, and snippets.

View Frisch12's full-sized avatar

Dennis Fricke Frisch12

View GitHub Profile
@Frisch12
Frisch12 / Program.cs
Created December 8, 2020 09:43
AuthorizationHandler becomes no Endpoint resource
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Security.Claims;
using System.Text;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
@Frisch12
Frisch12 / !REACT_WEB_TEMPLATE.md
Last active July 9, 2019 07:06
React webpack template

React webpack template

#!/bin/bash
if [ -z ${2+x} ]; then
day=$(date +%d)
day=$(echo $day | sed 's/^0*//')
else
day=$2
if [ "$day" = "all" ]; then
today=$(date +%d)
for i in $(seq $today); do
$0 $1 $i
@Frisch12
Frisch12 / CaH-BBG.csv
Created November 28, 2016 20:25
Cards against Humanity
QorA Value Keep Draw Pick Source
Question \34\Watson!\34\ Holmes exclaimed, \34\This man was obviously killed by _____!\34\ Yes BBG Suggestions
Question _____ ain't nothin' to fuck with. Yes BBG Suggestions
Question _____ gives a whole new meaning to _____. Yes 1 2 BBG Suggestions
Question _____ good to the last drop. Yes BBG Suggestions
Question _____ in the front seat; _____ in the back seat; gotta make my mind up, which seat do I take? Yes 1 2 BBG Suggestions
Question _____ in the morning, sailors take warning. Yes BBG Suggestions
Question _____ is a classic case of _____. Yes 1 2 BBG Suggestions
Question _____ is a gateway to _____. Yes 1 2 BBG Suggestions
Question _____ is a time-saving godsend for busy housewives. Yes BBG Suggestions
@Frisch12
Frisch12 / LibraryReflectionUtil.java
Created April 25, 2016 16:09
Reflection util for IntelliJ plugins to reflect over project libraries
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.libraries.LibraryUtil;
import com.intellij.util.containers.WeakHashMap;
import java.lang.annotation.Annotation;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Arrays;
import java.util.List;
@Frisch12
Frisch12 / GoogleMusicDownloader.py
Created July 17, 2015 14:09
Google Music All Access Downloader
# -*- coding: utf-8 -*-
import argparse
import time
import urllib2
import os
from PIL import Image
import shutil
from gmusicapi import Mobileclient, Webclient, CallFailure
from mutagen.id3._frames import *