Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""
Twitterのデータエクスポートから取得したtweets.jsファイルを解析して
1ツイート1行のテキストファイルとして出力するスクリプトです
使い方の例
python export_tweets.py tweets.js
python export_tweets.py tweets.js -o output.txt
tweets.jsはエクスポートしたZIPファイルの中の data/tweets.js にあります
@fa0311
fa0311 / twitter-inject-request.md
Last active February 3, 2026 13:56
twitter-inject-request

WebDriverで使えるhookスクリプト

// 初期化
const __origApply = Function.prototype.apply;
const client = await new Promise((resolve) => {
    Function.prototype.apply = function (thisArg, argsArray) {
        if (thisArg && typeof thisArg === 'object' && thisArg.dispatch === this) {
            __origApply.call(console.log, console, ['[dispatch.apply]', thisArg, argsArray]);
            resolve(thisArg);
@yuito-it
yuito-it / seccamp_items_list.md
Last active August 16, 2025 14:24
セキュリティキャンプ 準備リスト

This is typescript environment setup guide for LLM and humans

Baseline

Always setup baseline settings

  • pnpm
  • typescript
  • vitest
@hackermondev
hackermondev / research.md
Last active February 13, 2026 04:32
Unique 0-click deanonymization attack targeting Signal, Discord and hundreds of platform

hi, i'm daniel. i'm a 15-year-old high school junior. in my free time, i hack billion dollar companies and build cool stuff.

3 months ago, I discovered a unique 0-click deanonymization attack that allows an attacker to grab the location of any target within a 250 mile radius. With a vulnerable app installed on a target's phone (or as a background application on their laptop), an attacker can send a malicious payload and deanonymize you within seconds--and you wouldn't even know.

I'm publishing this writeup and research as a warning, especially for journalists, activists, and hackers, about this type of undetectable attack. Hundreds of applications are vulnerable, including some of the most popular apps in the world: Signal, Discord, Twitter/X, and others. Here's how it works:

Cloudflare

By the numbers, Cloudflare is easily the most popular CDN on the market. It beats out competitors such as Sucuri, Amazon CloudFront, Akamai, and Fastly. In 2019, a major Cloudflare outage k

@n0samu
n0samu / web-archival-guide.md
Last active February 2, 2026 07:37
Essential tips for web archiving.

In this brief guide, I will share what I've learned about archiving live webpages and recovering deleted webpages using various archive services.

Before you start

I highly recommend installing the Web Archives extension in your web browser (Chrome, Firefox). It provides quick access to archive services and search engine caches.

Overview of archive services & caches

  • Wayback Machine: Best and largest webpage archive. You probably already use it. Wayback Machine is the only archival service that also performs automated crawling, so its coverage is much better than other archives. See usage tips on Wikipedia.
  • Archive.today (also known as Archive.is): A mid-sized service that takes
@kishida
kishida / Llama.java
Last active May 14, 2025 22:17
Llama2.java with FFM API
// based on https://github.com/karpathy/llama2.c/commit/411c5bd2db9a87e94e1bd1a6c7b7ca117adc4b01
// at Sep 14, 2023
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.io.UnsupportedEncodingException;
import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
@mst-mkt
mst-mkt / nabeatsu.d.ts
Last active September 6, 2024 04:32
TypeScriptの型で世界のナベアツ
type Natural = 0[];
type Zero = [];
type One = [0];
type AhoSuffix = '(アホ)';
type Length<Array extends unknown[]> = Extract<Array['length'], number>;
type Add<N1 extends Natural, N2 extends Natural> = [...N1, ...N2];
type AddNum<N1 extends number, N2 extends number> = Length<[...NumToNat<N1>, ...NumToNat<N2>]>;
type Sub<N1 extends Natural, N2 extends Natural> = N1 extends [...N2, ...infer M]
? M
@euske
euske / tweets.html
Created August 10, 2023 05:57
Tweets by mootastic (2021-03-19 ~ 2023-08-06)
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<head><meta charset="UTF-8">
<title>Tweets by mootastic</title>
</head><body>
<h1>Tweets by mootastic</h1>
<ol>
<li id="1372720610531450884"><strong>2021-03-19 01:32 (Fri) +0900</strong>
<p>「なぜ宇宙飛行士はLinuxを使うのかって? そりゃ宇宙じゃウインドウを開けないからさ!」 <a href="http://pbs.twimg.com/media/EwziGW0VcAIyN2K.png">http://pbs.twimg.com/media/EwziGW0VcAIyN2K.png</a>
<li id="1372723374141501440"><strong>2021-03-19 01:31 (Fri) +0900</strong>
@sheepla
sheepla / dmenu-websearch.sh
Last active July 16, 2023 23:49
dmenu-websearch.sh - creating tiny web-search menu on Linux desktop
#!/bin/sh
_err() {
echo "[ \e[31;1mERROR\e[m ] ${1}" 2>&1
}
_has() {
command -v "${1}" &>/dev/null
}