Skip to content

Instantly share code, notes, and snippets.

View mathewthe2's full-sized avatar
🎯
Focusing

Mathew Chan mathewthe2

🎯
Focusing
View GitHub Profile
@mathewthe2
mathewthe2 / snapshot_generator.py
Last active February 25, 2022 04:36
Regenerate snapshots for subs2srs decks
import os
import re
import json
import subprocess
from distutils.spawn import find_executable
adjustment = 0
if '/usr/local/bin'not in os.environ['PATH'].split(':'):
# https://docs.brew.sh/FAQ#my-mac-apps-dont-find-usrlocalbin-utilities
@mathewthe2
mathewthe2 / splatnet2.js
Created July 22, 2020 15:47
SplatNet2 Updated
const request2 = require('request-promise-native');
const crypto = require('crypto');
const base64url = require('base64url');
const { v4: uuidv4 } = require('uuid');
const log = require('electron-log');
const { app } = require('electron');
const Memo = require('promise-memoize');
const userAgentVersion = `1.6.1.2`;
const userAgentString = `com.nintendo.znca/${userAgentVersion} (Android/4.4.2)`;
@mathewthe2
mathewthe2 / gmail
Created June 18, 2019 01:53
Swift Mailer SMTP Gmail Config
Mail Domain Name:
SMTP Server: smtp.gmail.com
SMTP Username: [username]
SMTP Password: [password]
Encryption: SSL
Port: 465
@mathewthe2
mathewthe2 / ifcfg-eth0
Created June 18, 2019 01:48
ifcfg-eth0 adding IPv6
IPV6INIT=yes
IPV6ADDR=primary_ipv6_address/64
IPV6_DEFAULTGW=ipv6_gateway
IPV6_AUTOCONF=no
DNS1=2001:4860:4860::8844
DNS2=2001:4860:4860::8888
DNS3=209.244.0.3