Skip to content

Instantly share code, notes, and snippets.

View kamui-fin's full-sized avatar
特化せよ。自分の武器に

Kamui kamui-fin

特化せよ。自分の武器に
View GitHub Profile
@kamui-fin
kamui-fin / acatt.md
Last active February 5, 2024 03:16
ACATT WIP Guide

My (intense?) ACATT Roadmap

  1. UNDERSTAND AJATT CORE PHILOSOPHY!!! The following resources are all aimed at Japanese learners, but look closely and you’ll see the fundamental principles still apply. Your goal now is to go through these to understand the why behind this guide.
    1. Read every article in the AJATT TOC!
    2. Read through all of Refold. It’s a bit corporate-y and watered down version of AJATT, but “modernized”. Worth a read.
  2. The owner, Matt vs Japan, used to post incredibly high quality videos on language acquisition and AJATT. Sort videos by oldest and watch the ones related to AJATT philosophy. Or go through the most important ones listed [here](https://gist.github.com/askoufis/e67e637918e5b16d6f4a4da6b0bbe74d#
@kamui-fin
kamui-fin / nextjs-deploy.md
Created July 17, 2022 22:15 — forked from jjsquady/nextjs-deploy.md
Deploying NEXTJS site with nginx + pm2

How to setup next.js app on nginx with letsencrypt

next.js, nginx, reverse-proxy, ssl

1. Install nginx and letsencrypt

$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt

Also enable nginx in ufw

@kamui-fin
kamui-fin / sub_blocker.js
Created April 6, 2021 12:37
Hard coded subtitle blocker for 9anime
// ==UserScript==
// @name Hard Sub Blocker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Script to block hard coded subs
// @author Kamui7
// @match https://mcloud2.to/embed/*
// @match https://streamtape.com/*
// @match https://www.mp4upload.com/*
// @match https://vidstream.pro/*
from random import shuffle
from subprocess import check_call, check_output, call
from pathlib import Path
from glob import glob
from tqdm import tqdm
import os
import shutil
HOME = Path(".")
import os, sys, re
from glob import glob
import pathlib
class substation:
def __init__(self, filepath):
self.filepath = filepath
self.raw_text = self.get_text()
self.full_info = {}
import pathlib
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
LINKS_PATH = "links.txt"
beatmap_file = pathlib.Path(LINKS_PATH)
beatmaps = [x.strip() for x in beatmap_file.read_text("utf-8").split("\n")]
@kamui-fin
kamui-fin / organize_folder.py
Created June 3, 2020 00:02
Script to clean up any folder
from pathlib import Path
from pprint import pprint
from shutil import copyfile
import os
import argparse
import tqdm
import json
"""
usage: main.py [-h] [--outputinfo] [--type TYPE] source destination