Skip to content

Instantly share code, notes, and snippets.

View 5S's full-sized avatar

5S

  • Tokyo, Japan
  • 12:54 (UTC +09:00)
  • X @HCl
View GitHub Profile
@5S
5S / diff.py
Created February 2, 2017 11:42
取得済みの manifest を比較して差分をダウンロードするやつ 現時点では b のインストゥルメンタルのみ対応
import os
import sqlite3
import sys
import threading
import urllib2
BASEURL = "http://storage.game.starlight-stage.jp"
def write_file(dest, data):
with open(dest, "w") as fd:
@5S
5S / dec_enc.py
Last active February 2, 2017 13:47
パケットを復号化したり暗号化したりするやつ
import base64
import json
import msgpack
import os
import rijndael
def new_key():
return base64.b64encode(os.urandom(24))
def clean_udid(s):
@5S
5S / AutoLogin.py
Created June 15, 2017 01:30
某大学の WiFi スポットに自動でログインするやつ
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import requests
username = 'sXXXXXXX'
password = 'PASSWORD'
print('Signing in to TGWIFI...')
@5S
5S / LINEThemeDownloader.js
Created September 14, 2017 15:22
LINE STORE で配布されているテーマを .zip 形式でダウンロードするボタンを追加する Greasemonkey 用スクリプト
// ==UserScript==
// @name LINE Theme Downloader
// @namespace https://twitter.com/A90
// @version 0.1
// @description Add download button to LINE STORE
// @author LOZTPX
// @match https://store.line.me/themeshop/product/*
// @grant none
// ==/UserScript==
@5S
5S / TempMail.php
Created April 7, 2018 03:51
temp-mail.org で利用できる捨てアドサービスの API ラッパー
<?php
/**
* PHP API Wrapper for temp-mail.org service
*
* Copyright (c) 2018 LOZTPX
*
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a
@5S
5S / download_manifest.py
Last active August 19, 2018 12:50
starlight.kirara.ca から現在の res_ver を拾ってきて最新版の manifest を落とすやつ
import lz4
import re
import StringIO
import struct
import urllib2
BASEURL = "http://storage.game.starlight-stage.jp"
def fetch_res_ver():
response = urllib2.urlopen("https://starlight.kirara.ca/")
@5S
5S / tempmail.py
Created January 31, 2019 17:11
temp-mail.org で利用できる捨てアドサービスの API ラッパー
# -*- coding: utf-8 -*-
import hashlib
import json
import requests
import random
import string
class TempMail:
@5S
5S / diff.patch
Created February 2, 2019 05:57
discord.py 1.0.0a で discord.py 0.16.12 まで使えていたログイン方法を復活させるパッチ 使用方法: git apply diff.patch
diff --git a/client.py b/client.py
index f832efc..18e44e0 100755
--- a/client.py
+++ b/client.py
@@ -117,6 +117,7 @@ class Client:
"""
def __init__(self, *, loop=None, **options):
self.ws = None
+ self.email = None
self.loop = asyncio.get_event_loop() if loop is None else loop
@5S
5S / expression.md
Last active March 8, 2020 06:25
エントリーシートを書くときに気をつけたい文章表現

ESで気をつけたい文章表現

1. 「である調」と「ですます調」

全体で統一されていればどちらでもよい。

「である調(常体)」の語尾は簡潔で説得力を持っている。
「ですます調(敬体)」は、柔らかく丁寧な印象を与える。
文字数に差が出るので、文字数制限内でよりPRしたければ常体を使うという手もある。

統一しなければならないのは文体に限らず、名詞や動詞においても同じことが言える。

@5S
5S / Twitter-Account-Generate-API.txt
Created February 2, 2017 10:03
Undocumented Twitter Account Generate API
/*
非公式 Twitter アカウント生成 API
Twitter も廃れ始め、そろそろ潮時だと考えたため公開します。
某氏が公開した API 1.0 の account/generate のほか、独自に発見した API 1.1 の account/create と
認証不要の mobile_client_api/signup もまとめてあります。
何かの役に立つかもしれません。
mobile_client_api/signup については最近テストしていないので、使えないかもしれません。
その場合は情報のみということで。