Skip to content

Instantly share code, notes, and snippets.

View tsukumijima's full-sized avatar
📺
DTV

tsukumi tsukumijima

📺
DTV
View GitHub Profile
@K0lb3
K0lb3 / Twitter Guest Search.py
Last active May 3, 2025 17:03
public Twitter search as json
import requests
import re
class Twitter:
def __init__(self):
self.s = requests.Session()
self.get_tokens()
def get_tokens(self):
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.9.119 Kernel Configuration
#
CONFIG_ARM64=y
@book000
book000 / amazon.co.jp-stylus.user.css
Last active August 12, 2021 00:49
Chrome/Firefoxの拡張機能であるStylusを使用して、Amazon上に表示される「住所情報」と「登録名情報」を表示させないCSS
/* ==UserStyle==
@name Delete "Address" and "Name" from Amazon.co.jp
@namespace tomacheese.com
@version 1.0.2
@updateURL https://gist.github.com/book000/37d74006dbffc88f69cd87a8c686518b/raw/amazon.co.jp-stylus.user.css
@description Chrome/Firefoxの拡張機能であるStylusを使用して、Amazon上に表示される「住所情報」と「登録名情報」を表示させないCSS
@author Tomachi (book000)
==/UserStyle== */
@-moz-document domain("amazon.co.jp") {
#nav-global-location-slot {
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
reserving fdt memory region: addr=0 size=30000
reserving fdt memory region: addr=1f000 size=1000
reserving fdt memory region: addr=30000 size=d0000
reserving fdt memory region: addr=3200000 size=b800000
reserving fdt memory region: addr=1b00000 size=400000
reserving fdt memory region: addr=2600000 size=c00000
reserving fdt memory region: addr=1ffe000 size=4000
reserving fdt memory region: addr=11000000 size=9200000
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.1.17 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=18
CONFIG_ARCH_MMAP_RND_BITS_MAX=24
@mikeconley
mikeconley / pip-captions.md
Last active March 17, 2022 21:19
Captions in Picture-in-Picture

Subtitle and caption support for many sites in Firefox's Picture-in-Picture player window is targeted to ship in Firefox 100.

Hi! If you're reading this, then you've asked me about or otherwise expressed interest in supporting captions / subtitles in Firefox's Picture-in-Picture feature.

As of this writing, Firefox does not currently support captions or subtitles in the player window. This is because most sites have invented their own mechanisms for display captions or subtitles. YouTube's captions, for example, are implemented in a completely different way from Netflix's.

This makes it rather difficult for us as a browser to develop a general solution to the subtitles / caption problem.

~Difficult, but not impossible. We're currently working on ways for us to develop site-specific behaviours for Picture-in-Picture. This allows Firefox's Picture-in-Picture feature to be smarter in how it interacts with specific video sites. In theory, this would allow us to detect the subtitles and captions and disp

@berkant
berkant / cloud-init.cfg
Last active September 24, 2025 01:37
Cloud-init config to set up my Ubuntu dev machine.
## template: jinja
#cloud-config
{% if v1.distro_release == 'focal' %}
users:
- name: berkant
shell: /usr/bin/bash
ssh_import_id: gh:berkant
sudo: ALL=(ALL:ALL) NOPASSWD:ALL
@zhuowei
zhuowei / WDBSetWebSecurityEnabled.m
Created September 1, 2020 04:47
Disable same-origin policy on iOS WKWebView with private API.
// Allows disabling Same-Origin Policy on iOS WKWebView.
// Tested on iOS 12.4.
// Uses private API; obviously can't be used on app store.
@import WebKit;
@import ObjectiveC;
void WKPreferencesSetWebSecurityEnabled(id, bool);
@interface WDBFakeWebKitPointer: NSObject
@igorbrigadir
igorbrigadir / BookmarkAPI_en.md
Created August 3, 2020 12:46 — forked from stepney141/BookmarkAPI_en.md
WIP: Twitter Undocumented Endpoints for Bookmark

Twitter Undocumented Bookmark API (WIP)

I found out the endpoints for bookmark with Chrome Developer Tools: GET timeline/bookmark, POST bookmark/entries/remove, POST bookmark/entries/remove. The rate limits below are values returned by an official endpoint GET application/rate_limit_status.

This document is still a work in progress because I got stuck in GET timeline/bookmark. Please let me know if you find how to use it.

Notes

  • It is necessary that x-csrf-token in a request header and ct0 in a cookie are the same value. Twitter uses them to avoid CSRF attacks. I recommend that you extract the values from your browsers.
  • All of the endpoints requires OAuth2 Authorizations. Note that they refuse OAuth2 Bearer tokens obtained from POST oauth2/token.
  • You can easily reach the rate limit and get HTTP 429 Error (too many requests), so you should be careful about how many requests you send.
@nyanshiba
nyanshiba / ffmpegtest.sh
Last active July 25, 2020 11:23
tsエンコ秘伝のタレ
# QSV H.264 LA-ICQ
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -global_quality 25 -c:v h264_qsv -preset:v veryslow -g 300 -bf 6 -refs 4 -b_strategy 1 -look_ahead 1 -look_ahead_depth 60 -color_range tv -color_primaries bt709 -color_trc bt709 -colorspace bt709 -pix_fmt nv12 -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# NVEnc H.264 VBR_MinQP
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -c:v h264_nvenc -preset:v slow -profile:v high -rc:v vbr_minqp -rc-lookahead 32 -spatial-aq 1 -aq-strength 1 -qmin:v 23 -qmax:v 25 -b:v 1500k -maxrate:v 3500k -pix_fmt yuv420p -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# NVEnc H.264 CQP
ffmpeg -y -hide_banner -nostats -analyzeduration