Skip to content

Instantly share code, notes, and snippets.

@na2hiro
na2hiro / Remix-request-cheatsheet.md
Last active March 18, 2024 02:42
Remix request cheatsheet
@jacob-ebey
jacob-ebey / image.ts
Last active February 29, 2024 05:25
Remix Image Component
import { createHash } from "crypto";
import fs from "fs";
import fsp from "fs/promises";
import path from "path";
import https from "https";
import { PassThrough } from "stream";
import type { Readable } from "stream";
import type { LoaderFunction } from "remix";
import sharp from "sharp";
import type { Request as NodeRequest } from "@remix-run/node";
@katai5plate
katai5plate / rar.md
Last active April 17, 2020 01:38
react-app-rewired 動作原理メモ

codes

index

  • paths に加え scriptVersion, configOverrides, customScriptsIndex を返す
1. index.js
  2. scripts/utils/path.js
    3. <prj>/package.json から config-overrides-path を取得
    4. <react-scripts>/config/paths.js から paths を取得

start

How to setup a practically free CDN using Backblaze B2 and Cloudflare

⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,

@kenmori
kenmori / TypeScriptPractice.md
Last active March 16, 2024 12:15
TypeScript 練習問題集
@tbutts
tbutts / tmux-migrate-options.py
Last active February 29, 2024 08:11
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#
@atsunoda
atsunoda / text_injection.md
Last active September 2, 2022 22:37
脆弱性報奨金制度で認定されづらいテキストインジェクション

2018年4月でもって株式会社Fablicを退職します

3行要約

  • 2017-01 〜 2018-04までの1年ちょい、Fablic社でFRIL開発してたよ
  • そこでの体験は最高だったよ
  • 来年Vancouverに戻るまでの間の予定は現時点で未定だよ

これまで何をやってきたか

@bissy
bissy / android-default-browser.js
Created October 18, 2017 11:55
useragentを使ってAndroid標準ブラウザ判定
var ua = navigator.userAgent;
if ((/Android/.test(ua) && /Linux; U;/.test(ua) && !/Chrome/.test(ua)) ||
(/Android/.test(ua) && /Chrome/.test(ua) && /Version/.test(ua)) ||
(/Android/.test(ua) && /Chrome/.test(ua) && /SamsungBrowser/.test(ua))) {
// Android標準ブラウザだったときの処理
$('html').addClass('android-default');
}
This file has been truncated, but you can view the full file.
9254835974458887629672873635789957411886024698554157393849494864228024962939550688297074527198420261051675205999609689838587412
7948702662533481896767559573369920938242346354580061545409242090168773727371802699309443935396635866263937828773324526334321892
7929250312741837331511829643632683169694074912332726993582394725302853411901337696207186358524323117172520907433878952968176465
9486937364148093931718552300016332142708943190856638524388888569011747617956915519539025796115901484762122047712200094207683584
0703675740855407318047361595661595146837376373951978537785605481083388906490085533348547865459237835407372374738389274773789264
3524314516560200536698529022539598732463389124803873184044464663165630452635665559603483233341839268186056673186867104904449866
3388466377320953222057779182433549144340237502432464295061371141084500222833875925546082542869030852833895137466510262849050187
2359980877010447170873386178573828860442255448874794721230413368694441497441338856684036949118353204002591974711928301953002372