Skip to content

Instantly share code, notes, and snippets.

View kphrx's full-sized avatar

kPherox kphrx

View GitHub Profile
@kphrx
kphrx / twitter_userid_crawl.sh
Created April 7, 2021 13:44
ツイッターのユーザーID収集。一回の実行で90000の範囲を探すのに10分ぐらいかかる
#!/bin/bash
# ##Requirements
# - twurl
# - Ruby
# - SQLite 3
set -e
# cronとかで使えるようにsqliteとruby、ruby gemsのパスを通す。これはmacOSのHomebrewで入れた場合
@kphrx
kphrx / feelcycle-diff-sheet.user.js
Last active May 14, 2021 12:37 — forked from owatan/feelcycle-diff-sheet.js
FEELCYCLE の予約ページで難易度を表示する userscript
// ==UserScript==
// @name feelcycle-diff-sheet.js
// @namespace http://tampermonkey.net/
// @version 0.3
// @description FEELCYCLE の予約ページで難易度を表示する userscript
// @author owatan
// @match https://m.feelcycle.com/reserve
// @icon https://m.feelcycle.com/favicon.png
// @grant none
// ==/UserScript==
echo 'APT::Install-Recommends "false";
APT::Install-Suggests "false";' | sudo tee /etc/apt/apt.conf.d/00install-recommends > /dev/null
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce nftables
sudo update-alternatives --set iptables $(which iptables-nft)
sudo update-alternatives --set ip6tables $(which ip6tables-nft)
sudo usermod -aG docker $(whoami)

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

// ==UserScript==
// @name Amazon Prime Video auto hide the next up card
// @namespace https://kpherox.dev/
// @version 1.4.0
// @author kPherox
// @match https://www.amazon.co.jp/gp/video/*
// @match https://www.amazon.co.jp/Amazon-Video/*
// @updateURL https://gist.github.com/kphrx/2d7c91067c42453ec88a65e2202c2144/raw/primevideo-autohide-nextupcard.user.js
// @downloadURL https://gist.github.com/kphrx/2d7c91067c42453ec88a65e2202c2144/raw/primevideo-autohide-nextupcard.user.js
// @grant none
#!/usr/bin/env perl
my $current = `docker buildx version`;
use POSIX qw(uname);
my @uname = uname();
my $os = lc($uname[0]);
my $arch = $uname[4];
my %arch_map = (
aarch64 => 'arm64',

Cloudflare domains pricing

TLD Old Pricing New Pricing Updated at
.com $8.57 $9.15 2022-09-01
.biz $12.81 $13.68 2022-09-01
.design $33.18 $35.18 2022-09-01
.xyz $8.74 $9.33 2022-09-01
.academy $21.68 $25.18 2022-10-04
.accountants $66.18 $70.18 2022-10-04
#!/bin/sh
if [ -s plc.jsonl ]; then
LATEST=$(tail -n1 plc.jsonl | jq -r '.createdAt')
echo "From: $LATEST; $(jq -s 'unique_by(.did) | length' plc.jsonl)"
curl -s https://plc.directory/export\?after\=$LATEST >> plc.jsonl
else
curl -s https://plc.directory/export >> plc.jsonl
fi
{"label":"TCK tests","message":"9 / 13","schemaVersion":1,"color":"hsl(83, 100%, 40%)"}