Skip to content

Instantly share code, notes, and snippets.

AndreaMinato / auth.ts
Last active June 20, 2023 00:55
Typescript Vuex Module
View auth.ts
import axios, { AxiosRequestConfig } from "axios";
import router from "@/router"; //shortcut to src
import { Module } from "vuex";
const authModule: Module<any, any> = {
state: {
loggedIn: false,
loginError: null,
username: null
troyfontaine /
Last active February 21, 2024 11:44
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in to reflect my findings.

ZipFile / Pixiv App API.yaml
Last active April 28, 2023 01:31
Unofficial API specification extracted from Pixiv Android App
View Pixiv App API.yaml
swagger: '2.0'
title: "Pixiv App API"
description: "Unofficial API specification extracted from Pixiv Android App v5.0.17"
version: "1.0"
- https