Skip to content

Instantly share code, notes, and snippets.

View tsuyoshicho's full-sized avatar

Tsuyoshi CHO tsuyoshicho

View GitHub Profile
@kat0h
kat0h / vim9script4pythondevelopers.md
Last active January 15, 2025 12:26
Vim9 script for Python Developers

Vim9 script for Python Developers

Vim9 scriptはVim scriptとの互換をなくし変数の型縛りを導入したり、コンパイルをすることなどにより、高速化を実現した新しい処理系です。

defコマンドで定義された関数内、またはVim script内でvim9scriptコマンドを使うことで利用できます(vim9scriptコマンドの後ではfunctionコマンドは利用できません)。

この記事は、 https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0 の内容を元にVim(v8.2.2576)上のVim9 scriptで動作するように改変したものです。

Vim9 scriptで動作を確認できなかったもの、まだ実装されていなものはpassと表記し、省略しています。

Cygwin, MSYS, MSYS2, MinGW, mingw-w64, WSL, WSL2 の違い

名称 役割 説明
MinGW コンパイラ Windows 用の GNU ツールチェーン。
とにかく Windows 用の gcc や GNU ld。
"Windows 用" とは、Windows 上で動作したり、Windows 用のアプリが作れたりすること。
要するに Visual C++ や Clang/LLVM みたいなもの。
mingw-w64 コンパイラ MinGW のフォーク。Win64 向けの改良が加わっており、2021 年現在の主流。
Cygwin POSIX 環境 Windows 用の POSIX 環境。cygwin1.
@mala
mala / 202012_smooz.md
Last active October 6, 2022 14:28
Smoozサービス終了に寄せて

Smoozサービス終了に寄せて

前置き

  • この文章と、それに含まれる考察や各サービスへの脆弱性報告などはmala個人の活動であり、所属している企業とは関係ありません。
  • 一方で私は、企業が閲覧履歴を収集して何をしたいのか、所属してる企業や他社事例について、ある程度詳しい当事者でもあります。
  • 一般論として書けることは書けるが、(業務上知り得た知識で開示されてないものなど)個別具体的なことは書けないこともあり、また観測範囲に偏りがある可能性もあります。

Smoozに報告した脆弱性2件

@magurosan
magurosan / xoshiro256.c
Created December 6, 2020 06:46
Multiple instance capable xoshiro256 implementation on C
/*
xoshiro256+/++/* implementation for multiple instances
(C)2020 Masaki Ota. Some rights reserved.
Original codes are written by
2019 by David Blackman and Sebastiano Vigna ([email protected])
*/
#include "xoshiro256.h"
static void jump_common(xoshiro256_t *state, const uint64_t jump_array[4]) {
using System;
namespace foo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
@mala
mala / note_vuln.md
Last active August 12, 2021 08:15
noteとインシデントハンドリングと広報の仕事

noteとインシデントハンドリングと広報の仕事

前提

  • この文章はmalaが書いています。個人の見解であり所属している企業とは関係ありません。
  • noteには知り合いが何人かいるし、中の人と直接コンタクトも取っているし相談もされているが、(10月2日時点で)正規の仕事としては請け負っていない。

10月2日追記

  • 正規の仕事として請け負う可能性もありますが、自身の主張や脆弱性情報の公開に制限が掛かるのであれば引き受けないつもりです。
@niw
niw / swift_corelibs_foundation_windows_build-ja.md
Last active August 28, 2020 09:25
Swift の swift-corelibs-foundation を Windows で手軽にビルドするためのメモ

Swift の swift-corelibs-foundation を Windows で手軽にビルドするためのメモ

ここ に移動しました。

@euske
euske / are-you-an-expert.md
Last active January 27, 2022 10:14
Japanese Translation of "Are You An Expert?" by Jeff Atwood

あなたは専門家か? (Are You An Expert?)

(Original article: https://blog.codinghorror.com/are-you-an-expert/ )

ぼくは権威というものが嫌いらしい。 まず自分自身の過去から始めよう。

ぼくは、人々からアマチュア仲間としてではなく、 何らかの専門家や権威だとみなされることがひどく嫌いである。

@ncw
ncw / README.md
Created July 21, 2020 20:45
Response to File System Interfaces for Go proposal

This is going to be a long reply based in my experiences with rclone: https://rclone.org. Rclone interfaces with 30ish different cloud providers and has some very similar interfaces so I feel like I might have something to contribute!

As part of rclone I have made very similar interfaces. In fact there are two, one lower level more matched to the typical things cloud storage systems can do (eg read as streams, use Range requests, not seek in writes) and one which is more general purpose which can do everything a normal file system can (eg seek while writing, ReadAt,