Skip to content

Instantly share code, notes, and snippets.

View Xiphoseer's full-sized avatar
🦀

Daniel Seiler Xiphoseer

🦀
View GitHub Profile
@Xiphoseer
Xiphoseer / git-fire
Created January 15, 2018 13:30
Yet Another Git Fire Script (YAGFS)
#/bin/bash
git add --all
git checkout -b it-burns-us
git commit -m "In Case Of Fire: git commit; git push; leave building"
git push --set-upstream origin it-burns-us
@Xiphoseer
Xiphoseer / 1-SDO-format.md
Last active August 27, 2020 19:46
Description of the file format used in the Signum! text processor for ATARI ST

The Signum! file format (SDO)

The Signum! word processor was a text editing application from the german software publisher "Application Systems Heidelberg" (ASH), written for the ATARI ST. It was one of the most popular word processors available for that system. This document is as far as I know the only description of that file format that is available online.

The container

Every SDO file starts with the bytes 73 64 6f 63, that is sdoc in most ASCII-compatible

@Xiphoseer
Xiphoseer / github-crate-repo.md
Last active December 17, 2020 00:22
GitHub Crate Repositories

Concept

  1. Create a github repo https://github.com/YOUR_USER_OR_ORG/crates
  2. Set the config.json to something like:
{
    "dl": "https://github.com/YOUR_USER_OR_ORG/{crate}/releases/download/v{version}/package.crate"
}
@Xiphoseer
Xiphoseer / api.yaml
Created July 15, 2024 12:19
OpenAPI schemaMappings generator bug
openapi: 3.0.3
info: { title: "Demo - OpenAPI 3.0", version: 1.0.0 }
servers: [{ url: "http://localhost:8080" }]
paths:
/thing:
get:
summary: Get a thing
responses:
'200':
description: Successful operation
@Xiphoseer
Xiphoseer / SpringSecurityIssue13915Test.java
Last active September 13, 2024 06:28
Text case to illustrate the context of spring-security#13915
package com.example.spring.security;
import org.junit.jupiter.api.Test;
import org.springframework.security.authentication.AnonymousAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.oauth2.client.*;
import org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest;
import org.springframework.security.oauth2.client.registration.ClientRegistration;
import org.springframework.security.oauth2.core.AuthorizationGrantType;