Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

<?php
$compressed = array(
".0" => "Hacha Split Archive File",
".000" => "DoubleSpace Compressed File",
".7z" => "7-Zip Compressed File",
".7z.001" => "7-Zip Split Archive Part 1 File",
".7z.002" => "7-Zip Split Archive Part 2 File",
".a00" => "ALZip Second Split Archive File",
".a01" => "ALZip Third Split Archive File",
@mitsuruog
mitsuruog / index.md
Last active January 24, 2025 02:47
express実践入門

express実践入門


自己紹介

小川充

  • mitsuruog
@rokugasenpai
rokugasenpai / how_to_download_streaming_jp.md
Last active December 17, 2023 09:50
各ストリーミング配信のダウンロード方法(要curl・ffmpeg・rtmpdump・chrome・limechat・wireshark)

ツイキャス

@joepie91
joepie91 / random.md
Last active August 18, 2025 08:57
Secure random values (in Node.js)

Not all random values are created equal - for security-related code, you need a specific kind of random value.

A summary of this article, if you don't want to read the entire thing:

  • Don't use Math.random(). There are extremely few cases where Math.random() is the right answer. Don't use it, unless you've read this entire article, and determined that it's necessary for your case.
  • Don't use crypto.getRandomBytes directly. While it's a CSPRNG, it's easy to bias the result when 'transforming' it, such that the output becomes more predictable.
  • If you want to generate random tokens or API keys: Use uuid, specifically the uuid.v4() method. Avoid node-uuid - it's not the same package, and doesn't produce reliably secure random values.
  • If you want to generate random numbers in a range: Use random-number-csprng.

You should seriously consider reading the entire article, though - it's

@toenobu
toenobu / __neovim__.markdown
Last active September 21, 2017 12:17
neovimへ移行したい
@okapies
okapies / mastodon-client.md
Last active October 3, 2023 10:18
Mastodon API の叩き方

Mastodon の API を叩くには以下の手順を踏む必要がある:

  1. OAuth2 クライアントを登録する
  2. アクセストークンを取得する
  3. アクセストークンを Authorization ヘッダに指定して API にアクセスする

OAuth2 クライアント登録

Mastodon の Apps API に登録情報を送ってクライアントを払い出してもらう(一度だけやれば OK).

@kawabata
kawabata / criminal_jc.md
Last active June 28, 2022 07:04 — forked from shunirr/criminal_jc.md
女子中学生チケット詐欺事件

criminal_jc

@pnlybubbles
pnlybubbles / quine-inu.rb
Created January 1, 2018 02:08
あけましておめでとうございます。書き初めです。戌Quineです。
eval$s=%w'b="BAhsKwIAAf////////////////////////////////////////////////////////////////8B/P
///////////w8A+D8A8P///////wMA/wAA+P//////PwDgPwDA////////BwD/HwD+//////9/APj/APj///////8Hg
P8B/////////38AvAP//////////wdAAPj/////////fwAAAP7/////////AAAA8P///////x8AAACA///////wAQAA
APz//////wMAAACA////////HwAAwAP8////////AAD4HwDg//////8H8P//AADg/////z+A/z8AAAD8/////wH8HwA
AAsD/////B+APAA8AAP////8/AAcA /gAA/P////8BAAD+DwDg/////w8AAPz/AMD/////fwAA+P8PAP///
///AQDw/x8A/P////8PwOH/PwDg// z//38A//9/A AD+w////wH4/38AAMA//P/
/D8D/HwDAAfzB//8/AP7/AOAfgA/8//8 A+P///f8 BcMD//wfA/////z8AA
vz/fwD+/////wMA4P//A/D/////PwAA/v 8/gP///// /AwDw//8D/v////9/A
ID//3/4//////8PAPz///////////8A4P// /////////z/A/ //////////////////
///////////9/";n=Marshal.load(b.unpa ck("m")[0]);e ="eval$s=%w"<<39<<(
@tanish-kr
tanish-kr / vim_macro.md
Created March 30, 2018 06:03
vim マクロ 練習

マクロの基礎

マクロとは

Vimでの一連の操作を記録し、記録した操作を繰り返し再生出来る機能

マクロの記録

  • q{0-9a-zA-Z"}