Skip to content

Instantly share code, notes, and snippets.

View tkgstrator's full-sized avatar
🌍
Working from home

tkgstrator tkgstrator

🌍
Working from home
View GitHub Profile
@tkgstrator
tkgstrator / 310.pchtxt
Last active December 4, 2021 12:49
DbgSetting for Splatoon 2 (3.1.0)
@nsobid-034C8FA7A63B7A87F96F408B2AEFFF6C
@flag offset_shift 0x100
/ ********************************************************************
/
/ (c) 2018 OatmealDome and contributors
/ Licensed under GPLv3, please visit the following URL for more info:
/ https://www.gnu.org/licenses/gpl-3.0.en.html
/
# Splatoon 2 3.1.0 Patches
@tkgstrator
tkgstrator / ServerList.json
Last active May 20, 2022 12:08
SwitchLanPlay-ServerList
[
{
"Name": "Japan",
"Host": "lanplay.splatnet2.com",
"Location": "JP"
},
{
"Name": "Taiwan",
"Host": "lanplay.cpalm.org",
"Location": "TW"
@tkgstrator
tkgstrator / Salmonia2.js
Last active February 4, 2021 11:14
Salmonia for GAS
function Salmonia() {
const iksmSessions= JSON.parse(PropertiesService.getScriptProperties().getProperty('IKSM_SESSION'))
const apiToken = PropertiesService.getScriptProperties().getProperty('API_TOKEN')
let jobNum = JSON.parse(PropertiesService.getScriptProperties().getProperty('JOB_NUM'))
iksmSessions.forEach(function(iksm_session, index) {
const present = getJobNumFromSplatNet2(iksm_session)
const preview = Math.max(parseInt(jobNum[index]), present - 49)
Logger.log(iksm_session, present, preview)
@tkgstrator
tkgstrator / Makefile
Created October 13, 2020 20:32
C++ Library in Swift
.PHONY = clean
CC = `xcrun -find clang++`
CFLAGS = -Wall -O3 -fembed-bitcode -isysroot `xcrun -sdk iphonesimulator --show-sdk-path`
# iOS13以降のみをサポート
CFLAGS += -mios-simulator-version-min=13.0 -mios-version-min=13.0
SOURCES = $(wildcard *.cpp)
UNIVERSAL_OBJECTS = $(SOURCES:%.cpp=%.o)
[config]
autoboot=0
autoboot_list=0
bootwait=1
verification=1
backlight=100
autohosoff=0
autonogc=1
{AtlasNX/Kosmos w/ nosigchk}
@tkgstrator
tkgstrator / Dockerfile
Last active February 3, 2021 17:29
debkitA64
FROM ubuntu:18.04
MAINTAINER @tkgling
# Environment
ENV USER devkit
ENV SHELL /bin/bash
ENV HOME /home/${USER}/devkita64
ENV DEVKITPRO=/opt/devkitpro
ENV PATH=${DEVKITPRO}/tools/bin:$PATH
@tkgstrator
tkgstrator / genHash32.py
Created February 28, 2021 11:06
パラメータをハッシュに変換したり、XMLをJSONに置換したりするコード
import zlib
with open("params-filter-nodup.txt", mode="r") as f:
with open("param.csv", mode="w") as w:
for line in f:
param = line.strip()
hash = format(zlib.crc32(param.encode("ascii")) & 0xFFFFFFFF, "x")
param = param.split(".")
w.write(f"{hash},{param[0]}\n")
@tkgstrator
tkgstrator / callback.php
Last active March 18, 2021 10:49
Twitter OAuth
<?php
require "vendor/autoload.php";
use Abraham\TwitterOAuth\TwitterOAuth;
session_start();
$CONSUMER_KEY = "";
$CONSUMER_KEY_SECRET = "";
@tkgstrator
tkgstrator / coop.json
Last active May 12, 2021 02:01
Salmon Run Schedule for Google Calendar API
[
{
"end_time": 1500696000,
"rare_weapon": 20000,
"stage_id": 5000,
"start_time": 1500616800,
"weapon_list": [
10,
5010,
1010,
@tkgstrator
tkgstrator / product.py
Last active August 9, 2021 22:46
Amazonのカテゴリ別上位50件を取得する
from glob import escape
from optparse import Option
from urllib import request
import requests
from bs4 import BeautifulSoup
import re
import time
import json
from selenium import webdriver
from selenium.webdriver.chrome.options import Options